hash method
Hash a fixed-length input
Implementation
F hash(List<F> message) {
final paddedInput = [...message, ...domain.padding(message.length)];
// Absorb
for (final value in paddedInput) {
sponge.absorb(value);
}
// Finish absorbing and squeeze
sponge.finishAbsorbing();
return sponge.squeeze();
}