Struct crypto::sha3::Sha3 [] [src]

pub struct Sha3 {
    // some fields omitted
}

Methods

impl Sha3

fn new(mode: Sha3Mode) -> Sha3

New SHA-3 instanciated from specified SHA-3 mode.

fn sha3_224() -> Sha3

New SHA3-224 instance.

fn sha3_256() -> Sha3

New SHA3-256 instance.

fn sha3_384() -> Sha3

New SHA3-384 instance.

fn sha3_512() -> Sha3

New SHA3-512 instance.

fn shake_128() -> Sha3

New SHAKE-128 instance.

fn shake_256() -> Sha3

New SHAKE-256 instance.

fn keccak224() -> Sha3

New Keccak224 instance.

fn keccak256() -> Sha3

New Keccak256 instance.

fn keccak384() -> Sha3

New Keccak384 instance.

fn keccak512() -> Sha3

New Keccak512 instance.

Trait Implementations

impl Digest for Sha3

fn input(&mut self, data: &[u8])

fn result(&mut self, out: &mut [u8])

fn reset(&mut self)

fn output_bits(&self) -> usize

fn block_size(&self) -> usize

fn output_bytes(&self) -> usize

fn input_str(&mut self, input: &str)

fn result_str(&mut self) -> String

impl Copy for Sha3

impl Clone for Sha3

fn clone(&self) -> Self

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