From eb9f35c8b435f88f995ef41a0e19fb75cab504a4 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 25 Jul 2016 22:18:01 -0700 Subject: [PATCH] bip151: set aad again. --- lib/bcoin/bip151.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bcoin/bip151.js b/lib/bcoin/bip151.js index 8ae82ea0..54f4e798 100644 --- a/lib/bcoin/bip151.js +++ b/lib/bcoin/bip151.js @@ -106,6 +106,7 @@ BIP151Stream.prototype.sequence = function sequence() { this.seq++; this.chacha.init(null, this.iv()); this.aead.init(null, this.iv()); + this.aead.aad(this.sid); }; BIP151Stream.prototype.iv = function iv() {