by method

  1. @override
MACHashBase<Blake2sHash> by(
  1. List<int> key, {
  2. List<int>? salt,
  3. List<int>? aad,
})
override

Get an MACHashBase instance initialized by a key.

Parameters:

  • key The key for MAC generation. Should not exceed 32 bytes.
  • salt An optional nonce. Must be exactly 8 bytes long.
  • aad Second optional nonce. Must be exactly 8 bytes long.

Implementation

@override
@pragma('vm:prefer-inline')
MACHashBase<Blake2sHash> by(
  List<int> key, {
  List<int>? salt,
  List<int>? aad,
}) =>
    Blake2s._(digestSize, key, salt, aad, name);