Expand description
Hash functions: SHA-1, SHA-2, SHA-3, RIPEMD-160. Hash functions for arcana.
Every algorithm now lives in the shared krypteia-tessera
crate; this module is a thin façade that re-exports the types and,
via the blanket impls in crate, exposes them through arcana’s own
Hasher / Xof traits. The
per-algorithm submodules (sha256, sha3, …) are kept as path
aliases so existing crate::hash::sha256::Sha256 imports keep
working unchanged.
Modules§
- blake2
- BLAKE2b / BLAKE2s (RFC 7693), re-exported from
krypteia-tessera. - blake3
- BLAKE3 (hash / keyed_hash / derive_key + XOF), re-exported from
krypteia-tessera. - ripemd160
- RIPEMD-160 (ISO/IEC 10118-3), re-exported from
krypteia-tessera. - sha1
- SHA-1 (FIPS 180-4), re-exported from
krypteia-tessera. - sha3
- SHA-3, SHAKE and cSHAKE (FIPS 202 / SP 800-185), re-exported from
krypteia-tessera.KeccakStateis the raw sponge used by HMAC-style constructions incrate::mac. - sha224
- SHA-224 (FIPS 180-4), re-exported from
krypteia-tessera. - sha256
- SHA-256 (FIPS 180-4), re-exported from
krypteia-tessera. - sha384
- SHA-384 (FIPS 180-4), re-exported from
krypteia-tessera. - sha512
- SHA-512 (FIPS 180-4), re-exported from
krypteia-tessera. - sha512_
trunc - SHA-512/224 and SHA-512/256 (FIPS 180-4), re-exported from
krypteia-tessera. - sp800_
185 - SP 800-185 keyed/derived functions (KMAC, TupleHash, ParallelHash and
their XOF variants), re-exported from
krypteia-tessera.
Structs§
- Blake3
- Streaming BLAKE3 hasher / XOF.
- Blake2b
- BLAKE2b hasher (RFC 7693). Default: 64-byte output, 128-byte blocks.
- Blake2s
- BLAKE2s hasher (RFC 7693). Default: 32-byte output, 64-byte blocks.
- CShake128
- cSHAKE128 (NIST SP 800-185).
- CShake256
- cSHAKE256 (NIST SP 800-185).
- Ripemd160
- RIPEMD-160 hasher (160-bit output, 64-byte blocks).
- Sha1
- SHA-1 hasher (160-bit output, 64-byte blocks). Deprecated.
- Sha3_
224 - SHA3-224 (rate 144, output 28 octets).
- Sha3_
256 - SHA3-256 (rate 136, output 32 octets).
- Sha3_
384 - SHA3-384 (rate 104, output 48 octets).
- Sha3_
512 - SHA3-512 (rate 72, output 64 octets).
- Sha224
- SHA-224 (FIPS 180-4).
- Sha256
- SHA-256 (FIPS 180-4).
- Sha384
- SHA-384 (FIPS 180-4).
- Sha512
- SHA-512 (FIPS 180-4).
- Sha512_
224 - SHA-512/224 (FIPS 180-4).
- Sha512_
256 - SHA-512/256 (FIPS 180-4).
- Shake128
- SHAKE128 XOF (rate 168, 128-bit security).
- Shake256
- SHAKE256 XOF (rate 136, 256-bit security).