update method

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

Updates the hash computation with the given data.

Parameters:

  • data: Containing the data to be hashed.

Implementation

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