fn State(comptime f: u11, comptime capacity: u11, comptime delim: u8, comptime rounds: u5) type

A generic Keccak-P state.

Parameters

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

Fields

offset: usize = 0,
buf: [rate]u8 = undefined,
st: KeccakF(f) = .{ },

Namespaces

Functions

fn absorb(self: *Self, bytes_: []const u8) void

Absorb a slice of bytes into the sponge.

fn pad(self: *Self) void

Mark the end of the input.

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

Squeeze a slice of bytes from the sponge.

Values

rate
type

The block length, or rate, in bytes.