Add comments for Reed-Solomon

This commit is contained in:
Evan Su 2021-03-16 12:34:59 -04:00 committed by GitHub
parent c0fceed342
commit bf8fdb493a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,7 +287,7 @@ def start():
nonce = urandom(24)
fout.write(str(len(ad)).encode("utf-8")) # Length of metadata
fout.write(b"|") # Separator
fout.write(ad) # Metadata
fout.write(ad) # Metadata (associated data)
# Write zeros as placeholder, come back to write over it later
fout.write(b"0"*64) # SHA3-512 of encryption key
fout.write(b"0"*64) # CRC of file