Struct crypto::sha3::Sha3
[−]
[src]
pub struct Sha3 { // some fields omitted }
Methods
impl Sha3
[src]
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
[src]
fn input(&mut self, data: &[u8])
Provide message data. Read more
fn result(&mut self, out: &mut [u8])
Retrieve the digest result. This method may be called multiple times. Read more
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
Get the output size in bits.
fn block_size(&self) -> usize
Get the block size in bytes.
fn output_bytes(&self) -> usize
Get the output size in bytes.
fn input_str(&mut self, input: &str)
Convenience function that feeds a string into a digest. Read more
fn result_str(&mut self) -> String
Convenience function that retrieves the result of a digest as a String in hexadecimal format. Read more
impl Copy for Sha3
[src]
impl Clone for Sha3
[src]
fn clone(&self) -> Self
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