Skip to main content

Crate rns_crypto

Crate rns_crypto 

Source

Modules§

aes128
aes256
ed25519
hkdf
hmac
HMAC-SHA256 over Sha256, so that its message can be hashed together with another (see HmacSha256::update_paired).
identity
pkcs7
ratchet
Destination ratchet history. No clock, filesystem, or global state is required.
sha256
SHA-256 over a block state of its own, so that two independent messages can be compressed together (see update_pair); blocks go through the sha2 compression function otherwise.
sha512
stamp_value
Fractional stamp values (upstream RNS.Stamps.stamp_value since rgit 78fb90ea).
token
x25519

Structs§

FixedRng
Deterministic RNG for testing.
OsRng
OS-backed RNG: the kernel’s generator through getrandom(3) on Linux (served without a system call where the C library and kernel support it), /dev/urandom elsewhere, the hardware RNG on ESP-IDF.

Traits§

Rng
Trait for random number generation. Callers provide an implementation; in std builds this wraps OS randomness.