diff options
author | Bryan Newbold <bnewbold@archive.org> | 2017-10-29 20:14:29 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2017-10-29 20:14:31 -0700 |
commit | 0e32aefb643605ed8e80846ea78ed8d63186bf92 (patch) | |
tree | 2bd7c6d047bb584fbb0ec29c91f0feadcf9ae48a /papers | |
parent | cf7cb4669f71130c8d0fb2424f4ceddbb399c819 (diff) | |
download | dat-docs-0e32aefb643605ed8e80846ea78ed8d63186bf92.tar.gz dat-docs-0e32aefb643605ed8e80846ea78ed8d63186bf92.zip |
dat-paper: nonce is 24 bytes, not 32
This is consistent with docs/hyperdrive_spec.md. Current dat
implementation uses 24 bytes, which is what libsodium needs for
XSalsa20 stream xor mode: https://download.libsodium.org/doc/advanced/xsalsa20.html
Diffstat (limited to 'papers')
-rw-r--r-- | papers/dat-paper.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/papers/dat-paper.md b/papers/dat-paper.md index 556edae..43b1b01 100644 --- a/papers/dat-paper.md +++ b/papers/dat-paper.md @@ -329,7 +329,7 @@ To generate this varint, you bitshift the 4-bit type integer onto the end of the Type 0. Should be the first message sent on a channel. - `discoveryKey` - A BLAKE2b keyed hash of the string 'hypercore' using the public key of the metadata register as the key. -- `nonce` - 32 bytes of random binary data, used in our encryption scheme +- `nonce` - 24 bytes (192 bits) of random binary data, used in our encryption scheme ``` message Feed { |