aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2017-10-29 20:14:29 -0700
committerBryan Newbold <bnewbold@archive.org>2017-10-29 20:14:31 -0700
commit0e32aefb643605ed8e80846ea78ed8d63186bf92 (patch)
tree2bd7c6d047bb584fbb0ec29c91f0feadcf9ae48a
parentcf7cb4669f71130c8d0fb2424f4ceddbb399c819 (diff)
downloaddat-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
-rw-r--r--papers/dat-paper.md2
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 {