clean method
Cleans up and resets the internal state of the Poly1305 instance.
This method is used to securely clear sensitive data and prepare the instance for reuse or disposal.
Returns:
A reference to the Poly1305
instance, allowing method chaining if needed.
This method zeros and resets the internal buffers, counters, and flags of the Poly1305 instance to ensure that sensitive data is securely cleared and the instance is marked as finished.
Implementation
Poly1305 clean() {
zero(_buffer);
zero(_r);
zero(_h);
zero(_pad);
_leftover = 0;
_fin = 0;
_finished = true;
return this;
}