cleanSavedState method
Cleans sensitive data from the saved hash state.
Implementation
@override
void cleanSavedState(Blake2sState savedState) {
BinaryOps.zero(savedState.state);
BinaryOps.zero(savedState.buffer);
BinaryOps.zero(savedState.initialState);
if (savedState.paddedKey != null) {
BinaryOps.zero(savedState.paddedKey!);
}
savedState.bufferLength = 0;
BinaryOps.zero(savedState.ctr);
BinaryOps.zero(savedState.flag);
savedState.lastNode = false;
}