Blake2b class
Blake2b is a highly secure cryptographic hash function optimized for 64-bit platforms. It generates hash values of data ranging from 1 to 64 bytes in size. It doesn't require a separate keying mechanism and can be used in various applications, serving as a more efficient alternative to other hash algorithms like SHA and HMAC-SHA.
This implementation is based on the RFC-7693
- Inheritance
-
- Object
- HashBase<
Blake2bHash> - BlockHashBase<
Blake2bHash> - Blake2b
- Mixed-in types
Constructors
Properties
- digestSize → int
-
The number of bytes in the output.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mac → Blake2bMAC
-
Get a builder to generate MAC using this algorithm.
no setter
- name → String
-
The name of this algorithm
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bind(
Stream< List< stream) → Stream<int> >HashDigest> -
Transforms the byte array input stream to generate a new stream
which contains a single HashDigest
inherited
-
byteStream(
Stream< int> stream, [int bufferSize = 1024]) → Future<HashDigest> -
Consumes the entire
stream
of byte array and generates a HashDigest.inherited -
cast<
RS, RT> () → StreamTransformer< RS, RT> -
Provides a
StreamTransformer<RS, RT>
view of this stream transformer.inherited -
convert(
List< int> input) → HashDigest -
Process the byte array
input
and returns a HashDigest.inherited -
createSink(
) → Blake2bHash -
Create a HashDigestSink for generating message-digests
override
-
hex(
List< int> input) → String -
Process the byte array
input
and returns a hash in hexadecimal.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sign(
List< int> message) → HashDigest -
Signing the
message
using this MAC to generate a tag.inherited -
string(
String input, [Encoding? encoding]) → HashDigest -
Process the
input
string and returns a HashDigest.inherited -
stringStraem(
Stream< String> stream, [Encoding? encoding]) → Future<HashDigest> -
Consumes the entire
stream
of string and generates a HashDigest.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
verify(
List< int> tag, List<int> message) → bool -
Verify if the
tag
is derived from themessage
using this MAC.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited