Enum crypto::sha3::Sha3Mode
[−]
[src]
pub enum Sha3Mode {
Sha3_224,
Sha3_256,
Sha3_384,
Sha3_512,
Shake128,
Shake256,
Keccak224,
Keccak256,
Keccak384,
Keccak512,
}SHA-3 Modes.
Variants
Sha3_224Sha3_256Sha3_384Sha3_512Shake128Shake256Keccak224Keccak256Keccak384Keccak512
Methods
impl Sha3Mode[src]
fn digest_length(&self) -> usize[src]
Return the expected hash size in bytes specified for mode, or 0
for modes with variable output as for shake functions.
fn is_shake(&self) -> bool[src]
Return true if mode is a SHAKE mode.
fn is_keccak(&self) -> bool[src]
Return true if mode is a Keccak mode.