Struct crypto::sha3::Sha3 [−][src]
pub struct Sha3 { /* fields omitted */ }Methods
impl Sha3[src]
impl Sha3pub fn new(mode: Sha3Mode) -> Sha3[src]
pub fn new(mode: Sha3Mode) -> Sha3New SHA-3 instanciated from specified SHA-3 mode.
pub fn sha3_224() -> Sha3[src]
pub fn sha3_224() -> Sha3New SHA3-224 instance.
pub fn sha3_256() -> Sha3[src]
pub fn sha3_256() -> Sha3New SHA3-256 instance.
pub fn sha3_384() -> Sha3[src]
pub fn sha3_384() -> Sha3New SHA3-384 instance.
pub fn sha3_512() -> Sha3[src]
pub fn sha3_512() -> Sha3New SHA3-512 instance.
pub fn shake_128() -> Sha3[src]
pub fn shake_128() -> Sha3New SHAKE-128 instance.
pub fn shake_256() -> Sha3[src]
pub fn shake_256() -> Sha3New SHAKE-256 instance.
pub fn keccak224() -> Sha3[src]
pub fn keccak224() -> Sha3New Keccak224 instance.
pub fn keccak256() -> Sha3[src]
pub fn keccak256() -> Sha3New Keccak256 instance.
pub fn keccak384() -> Sha3[src]
pub fn keccak384() -> Sha3New Keccak384 instance.
pub fn keccak512() -> Sha3[src]
pub fn keccak512() -> Sha3New Keccak512 instance.
Trait Implementations
impl Digest for Sha3[src]
impl Digest for Sha3fn input(&mut self, data: &[u8])[src]
fn input(&mut self, data: &[u8])Provide message data. Read more
fn result(&mut self, out: &mut [u8])[src]
fn result(&mut self, out: &mut [u8])Retrieve the digest result. This method may be called multiple times. Read more
fn reset(&mut self)[src]
fn reset(&mut self)Reset the digest. This method must be called after result() and before supplying more data. Read more
fn output_bits(&self) -> usize[src]
fn output_bits(&self) -> usizeGet the output size in bits.
fn block_size(&self) -> usize[src]
fn block_size(&self) -> usizeGet the block size in bytes.
fn output_bytes(&self) -> usize[src]
fn output_bytes(&self) -> usizeGet the output size in bytes.
fn input_str(&mut self, input: &str)[src]
fn input_str(&mut self, input: &str)Convenience function that feeds a string into a digest. Read more
fn result_str(&mut self) -> String[src]
fn result_str(&mut self) -> StringConvenience function that retrieves the result of a digest as a String in hexadecimal format. Read more
impl Copy for Sha3[src]
impl Copy for Sha3impl Clone for Sha3[src]
impl Clone for Sha3