Module sha3_384

Available on crate feature dep_orion only.
Expand description

SHA3-384 as specified in the FIPS PUB 202.

§Parameters:

  • data: The data to be hashed.

§Errors:

An error will be returned if:

§Example:

use orion::hazardous::hash::sha3::sha3_384::Sha3_384;

// Using the streaming interface
let mut state = Sha3_384::new();
state.update(b"Hello world")?;
let hash = state.finalize()?;

// Using the one-shot function
let hash_one_shot = Sha3_384::digest(b"Hello world")?;

assert_eq!(hash, hash_one_shot);

Structs§

Digest
A type to represent the Digest that SHA3-384 returns.
Sha3_384
SHA3-384 streaming state.

Constants§

SHA3_384_OUTSIZE
Output size of SHA3-384 in bytes.
SHA3_384_RATE
Rate of SHA3-384 (equivalent to blocksize in SHA2).