DoxigAlpha

Shake

The SHAKE extendable output hash function.

Fields of this type

Fields

#
st:State
buf:[State.rate]u8
= undefined
offset:usize
= 0
padded:bool
= false

The delimiter can be overwritten in the options.

Types

#
Options
The delimiter can be overwritten in the options.

Initialize a SHAKE extensible hash function.

Functions

#
init
Initialize a SHAKE extensible hash function.
hash
Hash a slice of bytes.
update
Absorb a slice of bytes into the state.
squeeze
Squeeze a slice of bytes from the state.
final
Return the hash of the absorbed bytes.
fillBlock
Align the input to a block boundary.

Error sets in this namespace

Error Sets

#

The recommended output length, in bytes.

Values

#
digest_length
The recommended output length, in bytes.
block_length
The block length, or rate, in bytes.

Source

Implementation

#
pub fn Shake(comptime security_level: u11) type {
    return ShakeLike(security_level, 0x1f, 24);
}