digest method

  1. @override
List<int> digest()
override

Computes the MD4 hash digest and returns it as a List<int>.

This method calculates the MD4 hash of the data processed so far and returns the resulting hash digest as a List<int>. It finalizes the hash computation if it hasn't been finished already and then returns the digest.

Returns:

  • A List<int> containing the MD4 hash digest.

Implementation

@override

/// Computes the MD4 hash digest and returns it as a `List<int>`.
///
/// This method calculates the MD4 hash of the data processed so far and returns
/// the resulting hash digest as a `List<int>`. It finalizes the hash computation
/// if it hasn't been finished already and then returns the digest.
///
/// Returns:
/// - A `List<int>` containing the MD4 hash digest.
List<int> digest() {
  final out = List<int>.filled(getDigestLength, 0);
  finish(out);
  return out;
}