Read chunk_size + PADDING_LENGTH as ciphertext

pull/52/head
tuxxy 2017-09-20 09:57:59 -07:00
parent 845dcdd098
commit ca5dc95578
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class EncryptedFile(object):
:return: Decrypted/Authenticated chunk
:rtype: Bytes
"""
ciphertext = self.file_obj.read(chunk_size)
ciphertext = self.file_obj.read(chunk_size + PADDING_LENGTH)
return self.cipher.decrypt(ciphertext, nonce=nonce)
def read(self, num_chunks=0):