Skip to content

Commit

Permalink
Remove FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
pferreir committed Jul 30, 2017
1 parent 18489de commit eb6f941
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions secret_handshake/boxstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ def __init__(self, writer, key, nonce):
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]
Expand Down

0 comments on commit eb6f941

Please sign in to comment.