@jedisct1 In libsodium docs, the AEAD page implies ChaCha20-Poly1305 is unsafe with random nonces, yet that's what all the examples are. :-(
-
-
Replying to @ryancdotorg
Hi Ryan. What examples are you referring to? secretbox() is what you need most of the time.
1 reply 0 retweets 0 likes -
Replying to @jedisct1
The crypto_secretbox_easy example here https://download.libsodium.org/doc/secret-key_cryptography/authenticated_encryption.html … uses a random nonce. Under the hood, that's ChaCha20-Poly1305, right?
2 replies 0 retweets 0 likes -
Replying to @ryancdotorg @jedisct1
Oh, no it does not. I just checked the source code. It's XSalsa20-Poly1305.
2 replies 0 retweets 0 likes
Replying to @ryancdotorg
No need to check the source, it's even in the documentation. Just scroll down the page :)
6:02 AM - 12 Apr 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.