restoreState method
Restores the hash computation state from a previously saved state.
Parameters:
savedState: The saved state to restore.
Returns the current instance of the hash algorithm with the restored state.
Implementation
@override
SerializableHash restoreState(SH1State savedState) {
_buffer.clear();
_buffer.addAll(savedState.buffer);
_state.setAll(0, savedState.state);
_lengthInBytes = savedState.length;
_iterate();
_finished = false;
return this;
}