summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2024-07-27 14:03:35 +0000
committerGitHub <noreply@github.com>2024-07-27 14:03:35 +0000
commit90312d2d67c0fea7497dad7d4a8b416df8345602 (patch)
tree6373cca254ff04de92b641f5c8f49b4f6c49bd2d
parent0f40dd7554cabe9bdc8066dda5e18aeda421120f (diff)
parent0963e43860e2c8e41c0821e2bc442bdd337a0ded (diff)
Merge pull request #1655 from Crypt-iQ/bip324_aad
BIP 324: fix python aad in complete_handshake
-rw-r--r--bip-0324.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0324.mediawiki b/bip-0324.mediawiki
index 2119a85..941d96e 100644
--- a/bip-0324.mediawiki
+++ b/bip-0324.mediawiki
@@ -384,7 +384,7 @@ def complete_handshake(peer, initiating, decoy_content_lengths=[]):
if received_garbage[-16:] == peer.recv_garbage_terminator:
# Receive, decode, and ignore version packet.
# This includes skipping decoys and authenticating the received garbage.
- v2_receive_packet(peer, aad=received_garbage)
+ v2_receive_packet(peer, aad=received_garbage[:-16])
return
else:
received_garbage += recv(peer, 1)