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_224
Sha3_256
Sha3_384
Sha3_512
Shake128
Shake256
Keccak224
Keccak256
Keccak384
Keccak512

Methods

impl Sha3Mode

fn digest_length(&self) -> usize

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

Return true if mode is a SHAKE mode.

fn is_keccak(&self) -> bool

Return true if mode is a Keccak mode.

Trait Implementations

Derived Implementations

impl Clone for Sha3Mode

fn clone(&self) -> Sha3Mode

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for Sha3Mode

impl Debug for Sha3Mode

fn fmt(&self, __arg_0: &mut Formatter) -> Result