update method

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

Updates the hash computation with the given data.

Parameters:

  • data: The List<int> containing the data to be hashed.

Implementation

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