cleanSavedState method
Clean up and reset the saved state of the hash object to its initial state. This function erases the buffer and sets the state and length to the default values. It is used to ensure that a previously saved hash state is cleared and ready for reuse.
savedState
: The hash state to be cleaned and reset.
Implementation
@override
void cleanSavedState(SH1State savedState) {
savedState.buffer = List.empty();
savedState.state = List.unmodifiable([
0x67452301,
0xefcdab89,
0x98badcfe,
0x10325476,
]);
savedState.length = 0;
}