We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looks like AEAD algorithms have usage limits: https://www.ietf.org/archive/id/draft-irtf-cfrg-aead-limits-07.html
ChaCha20-Poly1305's limit is 2^100. Wait... that's plenty good.
2^100
But @noble/ciphers says 2^46: https://github.com/paulmillr/noble-ciphers#encryption-limits. Why the difference?
@noble/ciphers
2^46
Will look into this more. If the limit is low enough, we could set a threshold to automatically re-key.
The idea would be to have the 96-bit nonce constructed similar to STREAM and libsodium's secretstream:
The text was updated successfully, but these errors were encountered:
libsodium says: https://doc.libsodium.org/secret-key_cryptography/aead/chacha20-poly1305/ietf_chacha20-poly1305_construction
The IETF variant of the ChaCha20-Poly1305 construction can safely encrypt a practically unlimited number of messages...
Sorry, something went wrong.
libsodium says:
that's false.
The top URL you've given:
https://www.ietf.org/archive/id/draft-irtf-cfrg-aead-limits-07.html#section-6.4
Section 6.4 clearly says limit for AEAD is 2^46. 2^100 is for pure chacha without poly
No branches or pull requests
Looks like AEAD algorithms have usage limits: https://www.ietf.org/archive/id/draft-irtf-cfrg-aead-limits-07.html
ChaCha20-Poly1305's limit is
2^100
. Wait... that's plenty good.But
@noble/ciphers
says2^46
: https://github.com/paulmillr/noble-ciphers#encryption-limits. Why the difference?Will look into this more. If the limit is low enough, we could set a threshold to automatically re-key.
The idea would be to have the 96-bit nonce constructed similar to STREAM and libsodium's secretstream:
The text was updated successfully, but these errors were encountered: