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

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

impl Clone for Sha3Mode
[src]

fn clone(&self) -> Sha3Mode

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for Sha3Mode
[src]

impl Debug for Sha3Mode
[src]

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

Formats the value using the given formatter.