From bf8fdb493a0132d07686f05161fb20768b7b84b0 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Tue, 16 Mar 2021 12:34:59 -0400 Subject: [PATCH] Add comments for Reed-Solomon --- src/Picocrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Picocrypt.py b/src/Picocrypt.py index 67e412e..eab78c7 100644 --- a/src/Picocrypt.py +++ b/src/Picocrypt.py @@ -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