From 0e32aefb643605ed8e80846ea78ed8d63186bf92 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 29 Oct 2017 20:14:29 -0700 Subject: 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 --- papers/dat-paper.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3