Remove FIXME

This commit is contained in:
Pedro Ferreira 2017-07-30 11:16:07 +02:00
parent 18489de6d4
commit eb6f9413bd

View File

@ -74,9 +74,6 @@ class BoxStream(object):
self.nonce = nonce self.nonce = nonce
def write(self, data): def write(self, data):
# XXX: This nonce logic is almost for sure wrong
for chunk in split_chunks(data, MAX_SEGMENT_SIZE): for chunk in split_chunks(data, MAX_SEGMENT_SIZE):
body = self.box.encrypt(chunk, inc_nonce(self.nonce))[24:] body = self.box.encrypt(chunk, inc_nonce(self.nonce))[24:]
header = struct.pack('>H', len(body) - 16) + body[:16] header = struct.pack('>H', len(body) - 16) + body[:16]