stream abstract method
Get the hash from an aynchronous stream of data.
This is a shortcut for createConsumer, which simply calls Stream.pipe
on the messages
stream and pipes it into the consumer. The returned
result is the hash over all the data in the messages
stream, optionally
with a modified outLen
or a key
.
See https://libsodium.gitbook.io/doc/hashing/generic_hashing#usage
Implementation
Future<Uint8List> stream({
required Stream<Uint8List> messages,
int? outLen,
SecureKey? key,
});