Function pad [src]
Zero-pad to align the next input to the first byte of a block
Prototype
pub fn pad(st: *Poly1305) void
Parameters
st: *Poly1305
Source
pub fn pad(st: *Poly1305) void {
if (st.leftover == 0) {
return;
}
@memset(st.buf[st.leftover..], 0);
st.blocks(&st.buf, false);
st.leftover = 0;
}