restoreState method
Restores the state of the MD4 hash computation from a saved state.
This method restores the MD4 hash computation state from a previously saved state, allowing the continuation of hashing from the saved point.
Parameters:
savedState
: The saved state to restore the hash computation from.
Returns:
- The MD4 hash object with the restored state.
Implementation
@override
SerializableHash restoreState(HashState savedState) {
savedState as SH1State;
_buffer.clear();
_buffer.addAll(savedState.buffer);
_state.setAll(0, savedState.state);
_lengthInBytes = savedState.length;
_iterate();
_finished = false;
return this;
}