@jedisct1 Is this https://github.com/sodium-friends/sodium-native/blob/83ddae6de68d2aaeb876471a7b0d6899ca4eddf6/src/crypto_stream_xsalsa20_xor.c … something that would be worth preparing as a PR for libsodium? Idea is that you can do streaming crypto_stream where authentication is not an issue (used in the dat protocol which does auth by an merkel tree in the message)
I’d rather not encourage people to use unauthenticated encryption. Seekable randombytes_buf_deterministic() would make more sense to achieve this.
-
-
I'd agree that with something like randombytes_buf_deterministic(buf, seed, offset) would be nice and fulfil the same purpose, except that I guess it would only expose a single algorithm (ietf chacha20)?
-
It’s hard to find a balance between fulfilling requirements of specific protocols, and avoiding bloat and confusion by providing 20 algorithms doing exactly the same thing.
- 3 more replies
New conversation -
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.