From e4390859d105213daebec647796f2e1fcbd5ca8d Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 19 Feb 2015 23:56:56 -0800 Subject: [PATCH] transit: switch to proper handshakes, with keyid --- src/wormhole/blocking/transit.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wormhole/blocking/transit.py b/src/wormhole/blocking/transit.py index 1421ff3..7fc6fd8 100644 --- a/src/wormhole/blocking/transit.py +++ b/src/wormhole/blocking/transit.py @@ -38,12 +38,10 @@ class TransitError(Exception): # "go\n" or "nevermind\n"+close(). def build_receiver_handshake(key): - return "rx\n\n" hexid = HKDF(key, 32, CTXinfo=b"transit_receiver") return "transit receiver %s ready\n\n" % hexlify(hexid) def build_sender_handshake(key): - return "tx\n\n" hexid = HKDF(key, 32, CTXinfo=b"transit_sender") return "transit sender %s ready\n\n" % hexlify(hexid)