update method

  1. @override
RIPEMD256 update(
  1. List<int> data
)
inherited

Updates the hash computation with the given data.

Parameters:

  • data: Containing the data to be hashed.

Implementation

@override
T update(List<int> data) {
  if (_finished) {
    throw CryptoException.failed(
      "RIPEMD.update",
      reason: "State was finished.",
    );
  }
  _lengthInBytes += data.length;
  _buffer.addAll(data.asBytes);
  _iterate();
  return this as T;
}