Struct tiny_keccak::Keccak[][src]

pub struct Keccak { /* fields omitted */ }
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 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.