blake2s method

  1. @override
Blake2s blake2s({
  1. int hashLengthInBytes = 32,
})
override

A factory used by Blake2s.

Implementation

@override
Blake2s blake2s({int hashLengthInBytes = 32}) {
  if (hashLengthInBytes == 64) {
    return const DartBlake2s();
  }
  return DartBlake2s(
    hashLengthInBytes: hashLengthInBytes,
  );
}