fn Keccak(comptime f: u11, comptime output_bits: u11, comptime delim: u8, comptime rounds: u5) type

A generic Keccak hash function.

Parameters

f: u11,
output_bits: u11,
delim: u8,
rounds: u5,

Fields

st: KeccakState(f, output_bits * 2, delim, rounds) = .{ },

Namespaces

Functions

fn final(self: *Self, out: *[digest_length]u8) void

Return the hash of the absorbed bytes.

fn hash(bytes: []const u8, out: *[digest_length]u8, options: Options) void

Hash a slice of bytes.

fn init(options: Options) Self

Initialize a Keccak hash function.

fn update(self: *Self, bytes: []const u8) void

Absorb a slice of bytes into the state.

fn writer(self: *Self) Writer

No documentation provided.

Values

Writer
undefined
block_length
undefined

The block length, or rate, in bytes.

digest_length
type

The output length, in bytes.

Error Sets