Comment

Comment by CiPHPerCoder

This gives you a collision after 2^48 messages (via the birthday problem). Each message can be up to 2^36 - 256 bytes long.

This is less of a problem when each message also generates a random key, but still annoying to contend with.

XChaCha20-Poly1305 lets you generate 2^96 messages before having to worry about rekeying. https://libsodium.gitbook.io/doc/secret-key_cryptography/aea...

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton