Skip to main content

Crate crypto

Crate crypto 

Source
Expand description

Pure Rust cryptography with no_std support and hardware / SIMD acceleration for x86_64 and aarch64 (and sometimes WASM).

§⚠️ Warning

This crate has not undergone a third-party security audit or formal cryptographic review yet. Use at your own risk.

Modules§

aes
argon2
Pure Rust implementation of Argon2id (RFC 9106).
blake2
chacha
curve25519
encoding
hkdf
hmac
mldsa
mlkem
p256
pbkdf2
PBKDF2 (Password-Based Key Derivation Function 2) as defined in RFC 2898.
poly1305
sha2
sha3
xwing

Structs§

Bytes
A fixed-capacity, stack-allocated bytes buffer of capacity N. Use Self::as_ref to get the bytes as a &[u8] and Self::as_mut to get the bytes as a &mut [u8]. Comparing Bytes is a constant-time operation.
Hash
A stack-allocated bytes buffer. Use Self::as_ref to get the bytes as a &[u8] and Self::as_mut to get the bytes as a &mut [u8]. Comparing Hash is a constant-time operation.
Tag
A stack-allocated bytes buffer. Use Self::as_ref to get the bytes as a &[u8] and Self::as_mut to get the bytes as a &mut [u8]. Comparing Tag is a constant-time operation.

Enums§

AeadError
Errors
EllipticCurveError
HkdfError

Traits§

Aead
Hasher
StreamCipher
Traits
Xof
Zeroize