mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-16 02:40:14 +00:00
Work on tunnels
This commit is contained in:
parent
3b57b0013b
commit
6b3cc07740
@ -930,7 +930,7 @@ class Transport:
|
|||||||
RNS.log("Transport ID : "+str(Transport.identity))
|
RNS.log("Transport ID : "+str(Transport.identity))
|
||||||
RNS.log("Tunnel ID : "+RNS.hexrep(tunnel_id))
|
RNS.log("Tunnel ID : "+RNS.hexrep(tunnel_id))
|
||||||
RNS.log("IF hash : "+RNS.hexrep(interface_hash))
|
RNS.log("IF hash : "+RNS.hexrep(interface_hash))
|
||||||
RNS.log("Rnd has : "+RNS.hexrep(random_hash))
|
RNS.log("Rnd hash : "+RNS.hexrep(random_hash))
|
||||||
RNS.log("Public key : "+RNS.hexrep(public_key))
|
RNS.log("Public key : "+RNS.hexrep(public_key))
|
||||||
RNS.log("Signature : "+RNS.hexrep(signature))
|
RNS.log("Signature : "+RNS.hexrep(signature))
|
||||||
|
|
||||||
@ -951,7 +951,7 @@ class Transport:
|
|||||||
interface_hash = data[RNS.Identity.KEYSIZE//8:RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8]
|
interface_hash = data[RNS.Identity.KEYSIZE//8:RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8]
|
||||||
tunnel_id_data = public_key+interface_hash
|
tunnel_id_data = public_key+interface_hash
|
||||||
tunnel_id = RNS.Identity.full_hash(tunnel_id_data)
|
tunnel_id = RNS.Identity.full_hash(tunnel_id_data)
|
||||||
random_hash = data[RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH:RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8+RNS.Reticulum.TRUNCATED_HASHLENGTH//8]
|
random_hash = data[RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8:RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8+RNS.Reticulum.TRUNCATED_HASHLENGTH//8]
|
||||||
|
|
||||||
signature = data[RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8+RNS.Reticulum.TRUNCATED_HASHLENGTH//8:expected_length]
|
signature = data[RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8+RNS.Reticulum.TRUNCATED_HASHLENGTH//8:expected_length]
|
||||||
signed_data = tunnel_id_data+random_hash
|
signed_data = tunnel_id_data+random_hash
|
||||||
@ -962,7 +962,7 @@ class Transport:
|
|||||||
RNS.log("Transport ID : "+str(Transport.identity))
|
RNS.log("Transport ID : "+str(Transport.identity))
|
||||||
RNS.log("Tunnel ID : "+RNS.hexrep(tunnel_id))
|
RNS.log("Tunnel ID : "+RNS.hexrep(tunnel_id))
|
||||||
RNS.log("IF hash : "+RNS.hexrep(interface_hash))
|
RNS.log("IF hash : "+RNS.hexrep(interface_hash))
|
||||||
RNS.log("Rnd has : "+RNS.hexrep(random_hash))
|
RNS.log("Rnd hash : "+RNS.hexrep(random_hash))
|
||||||
RNS.log("Public key : "+RNS.hexrep(public_key))
|
RNS.log("Public key : "+RNS.hexrep(public_key))
|
||||||
RNS.log("Signature : "+RNS.hexrep(signature))
|
RNS.log("Signature : "+RNS.hexrep(signature))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user