pub struct Keccak { /* private fields */ }
Expand description

The Keccak hash functions defined in Keccak SHA3 submission.

Usage

[dependencies]
tiny-keccak = { version = "2.0.0", features = ["keccak"] }

Implementations

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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Absorb additional input. Can be called multiple times.

Example
keccak.update(b"hello");
keccak.update(b" world");

Pad and squeeze the state to the output.

Example
keccak.finalize(&mut output);

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.