DoxigAlpha

init

Initialize the state from a slice of bytes.

Function parameters

Parameters

#
initial_state:[block_bytes]u8

An Ascon state.

Functions

#
State
An Ascon state.

Source

Implementation

#
pub fn init(initial_state: [block_bytes]u8) Self {
    var state = Self{ .st = undefined };
    @memcpy(state.asBytes(), &initial_state);
    state.endianSwap();
    return state;
}