mirror of https://github.com/nucypher/nucypher.git
Read chunk_size + PADDING_LENGTH as ciphertext
parent
845dcdd098
commit
ca5dc95578
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue