(v1.10) Fixed Crypto.Hash bug

This commit is contained in:
Evan Su 2021-03-18 22:26:52 -04:00 committed by GitHub
parent 6548b74437
commit c23b69d89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -458,7 +458,7 @@ def start():
progress["value"] = 0 progress["value"] = 0
# Compute hash of derived key # Compute hash of derived key
check = sha3_512() check = sha3_512.new()
check.update(key) check.update(key)
check = check.digest() check = check.digest()
@ -485,7 +485,7 @@ def start():
# Create XChaCha20-Poly1305 object # Create XChaCha20-Poly1305 object
cipher = ChaCha20_Poly1305.new(key=key,nonce=nonce) cipher = ChaCha20_Poly1305.new(key=key,nonce=nonce)
# Cyclic redundancy check for file corruption # Cyclic redundancy check for file corruption
crc = sha3_512() crc = sha3_512.new()
# Amount of data encrypted/decrypted, total file size, starting time # Amount of data encrypted/decrypted, total file size, starting time
done = 0 done = 0