Skip to content

Commit

Permalink
docs: update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
70sh1 committed Apr 6, 2024
1 parent 2869a8d commit fb338a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _eddy_ uses **ChaCha20** stream cipher together with **BLAKE2b** hash function i

After initializing a ChaCha20 instance with the key from the previous step and a **random 12-byte nonce**, a **BLAKE2b key** is generated by XORing a 64-byte zero-block using this instance - in Go, such a block is created with `make([]byte, 64)`.

The file MAC tag is calculated from the ciphertext, not plaintext.
The file MAC tag is calculated from the ciphertext, not plaintext. This is called "Encrypt-then-MAC" (EtM).

### File format
An encrypted file has the following structure. No delimiters or flags. This provides plausible deniability - the file is generally indistinguishable from, say, a compressed file or a randomly generated one.
Expand Down

0 comments on commit fb338a5

Please sign in to comment.