hash method

Uint8List hash(
  1. List<int> data
)
override

Hashes data to 32 bytes.

Implementation

Uint8List hash(List<int> data) => switch (this) {
  TspDigestAlgorithm.sha256 => computeSha256(data),
  TspDigestAlgorithm.blake2b256 => computeBlake2b(data, 32),
};