fn KeccakF(comptime f: u11) type
[src]
The Keccak-f permutation.
Functions
fn asBytes(self: *Self) *[block_bytes]u8
A representation of the state as bytes. The byte order is architecture-dependent…
A representation of the state as bytes. The byte order is architecture-dependent.
fn clear(self: *Self, from: usize, to: usize) void
Set the words storing the bytes of a given range to zero.
fn endianSwap(self: *Self) void
Byte-swap the entire state if the architecture doesn’t match the required endian…
Byte-swap the entire state if the architecture doesn’t match the required endianness.
fn permuteR(self: *Self, comptime rounds: u5) void
Apply a (possibly) reduced-round permutation to the state.
Values
block_bytes | type | Number of bytes in the state. |
max_rounds | type | Maximum number of rounds for the given f parameter. |