Conversation

Crypto Twitter, what's a good way to generate nonces if random is disallowed (chance of collision) and you don't want to leak information about order (which sequential would)?
5
Replying to
It's chacha20 so 64 or 96 bits. That's only 48 bit safety which doesn't cut it (thus the mandate in standard not to use random w/o collision check).
1
High level libsodium secretbox (symmetric) and crypto_box (asymmetric) APIs are really well made and worth following as an approach even if you reimplement it. XChaCha20 vs XSalsa20 doesn't really matter. Worth caring about it with 8 rounds but 20 is extreme overkill regardless.