[go: up one dir, main page]

chacha20 0.4.3

The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits from the RustCrypto stream-cipher crate, with optional architecture-specific hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12, and XChaCha20 stream ciphers, and also optional rand_core-compatible RNGs based on those ciphers.
Documentation
[[bench]]
harness = false
name = "stream_cipher"

[[bench]]
harness = false
name = "rng"
[dependencies.rand_core]
default-features = false
optional = true
version = "0.5"

[dependencies.stream-cipher]
optional = true
version = "0.4.1"

[dependencies.zeroize]
default-features = false
optional = true
version = "1"
[dev-dependencies.criterion]
version = "0.3"

[dev-dependencies.criterion-cycles-per-byte]
version = "0.1"

[dev-dependencies.stream-cipher]
features = ["dev"]
version = "0.4.1"

[features]
default = ["xchacha20"]
legacy = ["stream-cipher"]
rng = ["rand_core"]
xchacha20 = ["stream-cipher"]

[package]
authors = ["RustCrypto Developers"]
categories = ["cryptography", "no-std"]
description = "The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits\nfrom the RustCrypto stream-cipher crate, with optional architecture-specific\nhardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12,\nand XChaCha20 stream ciphers, and also optional rand_core-compatible RNGs based\non those ciphers.\n"
edition = "2018"
keywords = ["crypto", "stream-cipher", "chacha8", "chacha12", "xchacha20"]
license = "Apache-2.0 OR MIT"
name = "chacha20"
readme = "README.md"
repository = "https://github.com/RustCrypto/stream-ciphers"
version = "0.4.3"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]