From eb6f9413bdb8748f265904c4eb900243261464ef Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Sun, 30 Jul 2017 11:16:07 +0200 Subject: [PATCH] Remove FIXME --- secret_handshake/boxstream.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/secret_handshake/boxstream.py b/secret_handshake/boxstream.py index b4739b3..9df3891 100644 --- a/secret_handshake/boxstream.py +++ b/secret_handshake/boxstream.py @@ -74,9 +74,6 @@ class BoxStream(object): self.nonce = nonce def write(self, data): - - # XXX: This nonce logic is almost for sure wrong - for chunk in split_chunks(data, MAX_SEGMENT_SIZE): body = self.box.encrypt(chunk, inc_nonce(self.nonce))[24:] header = struct.pack('>H', len(body) - 16) + body[:16]