DoxigAlpha

clear

Set the words storing the bytes of a given range to zero.

Function parameters

Parameters

#
self:*Self
from:usize
to:usize

An Ascon state.

Functions

#
State
An Ascon state.

Source

Implementation

#
pub fn clear(self: *Self, from: usize, to: usize) void {
    @memset(self.st[from / 8 .. (to + 7) / 8], 0);
}