restoreState method

Keccack restoreState(
  1. List<int> savedState
)

Restores the hash computation state from a previously saved state.

This method allows you to restore the hash computation state to a previously saved state. It is useful when you want to continue hashing data from a certain point, or if you want to combine multiple hash computations.

Implementation

Keccack restoreState(List<int> savedState) {
  _state.setAll(0, savedState);
  _pos = savedState.length;
  _finished = false;
  return this;
}