pub struct Keccak { /* private fields */ }
Expand description
The Keccak
hash functions defined in Keccak SHA3 submission
.
[dependencies]
tiny-keccak = { version = "2.0.0", features = ["keccak"] }
Creates new Keccak
hasher with a security level of 224 bits.
Creates new Keccak
hasher with a security level of 256 bits.
Creates new Keccak
hasher with a security level of 384 bits.
Creates new Keccak
hasher with a security level of 512 bits.
Performs copy-assignment from source
. Read more
Absorb additional input. Can be called multiple times.
keccak.update(b"hello");
keccak.update(b" world");
Pad and squeeze the state to the output.
keccak.finalize(&mut output);
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.