Remove FIXME
This commit is contained in:
parent
18489de6d4
commit
eb6f9413bd
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user