keccak256 function

Uint8List keccak256(
  1. Uint8List input
)

This function computes the Keccak-256 hash (SHA-3) of the given input data. It resets the KeccakDigest instance before processing the input. It returns a Uint8List representing the Keccak-256 hash.

Implementation

Uint8List keccak256(Uint8List input) {
  /// Reset the _keccakDigest instance to its initial state.
  _keccakDigest.reset();

  /// Process the input data using the KeccakDigest to calculate the Keccak-256 hash.
  return _keccakDigest.process(input);
}