-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
Consider more algorithms: ascon, aegis, EME, rijndael-256 #12
Comments
➕ 💯 for AESKW that would allow me to greatly simplify the dependencies in several projects I maintain, where I have to use a very heavy isomorphic-webcrypto otherwise |
@mirceanis AESKW is done. |
I would like AEGIS. There is a JavaScript implementation, but it's only AEGIS-128L and is not very good. |
@alterstep any chance you'll be able to describe what are you using it for? |
Yes, I use libsodium on the server because AEGIS is very fast. On the client side, I could use libsodium-js, but it's very large, and I don't need its full functionality. Noble-ciphers would be perfect. |
Yes, but why do you need something "very fast"? Why can't AES work for you? |
256-bit nonces too. |
Why AEGIS instead of XChacha20-poly1305? |
sodium AEGIS-256 is more than 5 times faster than XChaCha |
Interesting, ok. The question is, however, do you actually need this speed? Is the speed of algorithms a bottleneck in your application? |
Ascon and AEGIS are both nice. And there is an Ascon-js version already available which could probably easily be implemented here. |
Keep in mind it's not just "implementing" - it's also continuously supporting and perhaps having 3rd party audits of the code. |
AEGIS has been implemented here: https://github.com/stknob/aegis-ts/tree/main |
I would still recommend implementing them, as Ascon and AEGIS both are very useful ciphers, probably much more than Salsa20. |
@BigPanda97 what makes them more useful than Salsa for your use case? |
This question seems more like a joke. Salsa is basically used nowhere nowadays except for Threema messenger which still uses it. However:
So both of them have and will have a very widespread usage just like AES, underlining their importance in every cryptographic library. |
If you read topic start post, it mentions benefits already. There is no need to write it twice. I'm not asking about benefits of algorithms. I'm asking how you, personally would benefit from having those algo / algos in noble. Details of your environment. Why can't it use ChaCha20poly1305.
|
Wrong, the implementation in TLS and the publishing of the final standardisation is new.
For example to decrypt stuff which has been encrypted using LibSodiums AEGIS? 🙄
Your example searches reveal many old and outdated projects as well as many implementations where the underlying algorithms of the API have been switched to ChaCha instead. A productive usage of Salsa is useless nowadays, since ChaCha is both more secure and more efficient/faster. There is still no valid reason, why any good and reputable cryptographic library should NOT implement AEGIS and ASCON. Both will be the algorithms of the future. |
It's unclear if any of these algorithms are actually worth implementing in noble.
Footnotes
https://csrc.nist.gov/News/2023/lightweight-cryptography-nist-selects-ascon ↩
https://doc.libsodium.org/secret-key_cryptography/aead/aegis-256 ↩
https://csrc.nist.gov/csrc/media/Presentations/2023/proposal-for-standardization-of-encryption-schemes/images-media/sess-4-mattsson-bcm-workshop-2023.pdf ↩ ↩2
https://csrc.nist.gov/news/2024/nist-proposes-to-standardize-wider-variant-of-aes ↩
The text was updated successfully, but these errors were encountered: