stream-ciphers
stream-ciphers copied to clipboard
Collection of stream cipher algorithms
The salsa20 implementation has a few test vectors [here](https://github.com/RustCrypto/stream-ciphers/blob/master/salsa20/tests/mod.rs), some of them seems to be from [here](https://github.com/das-labor/legacy/blob/master/microcontroller-2/arm-crypto-lib/testvectors/salsa20-256.64-verified.test-vectors). I was wondering if this implementation should add some more test vectors in...
The `quarter_round` function is duplicated inside xchacha. We can just use the soft backend version, which is the same code. https://github.com/RustCrypto/stream-ciphers/pull/348#pullrequestreview-1958048341
Addresses #334 The constant booleans in the backends should be evaluated at compile-time... but there's a slight chance that I could write a test for the `ChaCha20Rng` that fails on...