diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/rust/c2-chacha/README.md | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/c2-chacha/README.md')
-rw-r--r-- | third_party/rust/c2-chacha/README.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/rust/c2-chacha/README.md b/third_party/rust/c2-chacha/README.md new file mode 100644 index 0000000000..a7f472c590 --- /dev/null +++ b/third_party/rust/c2-chacha/README.md @@ -0,0 +1,24 @@ +# The ChaCha family of stream ciphers + +## Features + +- pure Rust implementation +- supports the RustCrypto API +- builds on stable Rust +- portable +- fast: within 15% of throughput of a hand-optimized ASM SIMD implementation + (floodberry/chacha-opt) on my machine (a Xeon X5650, using ppv-lite86) +- no-std compatible (std required only for runtime algorithm selection) + +## Supported Variants + +ChaCha20: used in chacha20-poly1305 in TLS, OpenSSH; arc4random in the BSDs, +Linux /dev/urandom since 4.8. + +Ietf: IETF RFC 7539. Longer nonce, short block counter. + +XChaCha20: constructed analogously to XSalsa20; a mixing step during +initialization allows using a long nonce and along with a full-sized block +counter. + +ChaCha12, ChaCha8: faster; lower security margin of safety. |