saveState method

  1. @override
SH1State saveState()
override

Saves the current state of the MD4 hash computation.

This method saves the current state of the MD4 hash computation, including the internal buffer, length, and state. The saved state can be used later to restore the hash computation to this point.

Returns:

  • A SH1State object containing the saved state of the hash computation.

Implementation

@override
SH1State saveState() {
  return SH1State(
      buffer: List<int>.from(_buffer.toList()),
      length: _lengthInBytes,
      state: List<int>.from(_state, growable: false));
}