mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-12-27 00:19:29 -05:00
Work on tunnels
This commit is contained in:
parent
8b8d4410ef
commit
1da8a0c8f1
@ -929,6 +929,7 @@ class Transport:
|
|||||||
RNS.log("Tunnel synth for "+str(interface))
|
RNS.log("Tunnel synth for "+str(interface))
|
||||||
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(tunnel_id))
|
||||||
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))
|
||||||
|
|
||||||
@ -946,6 +947,7 @@ class Transport:
|
|||||||
|
|
||||||
if len(data) == expected_length:
|
if len(data) == expected_length:
|
||||||
public_key = data[:RNS.Identity.KEYSIZE//8]
|
public_key = data[:RNS.Identity.KEYSIZE//8]
|
||||||
|
interface_hash = data[RNS.Identity.KEYSIZE//8:RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8]
|
||||||
tunnel_id_data = data[:RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH]
|
tunnel_id_data = data[:RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH]
|
||||||
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:RNS.Identity.KEYSIZE//8+RNS.Identity.HASHLENGTH//8+RNS.Reticulum.TRUNCATED_HASHLENGTH//8]
|
||||||
@ -957,6 +959,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("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