Blake2b class

The BLAKE2b (64-bit) flavor of the BLAKE2 cryptographic hash function.

Inheritance

Constructors

Blake2b({int digestLength = 32, Uint8List? key, Uint8List? salt, Uint8List? personalization, Uint64List? iv})
The BLAKE2s (32-bit) flavor of the BLAKE2 cryptographic hash function.

Properties

bitLength int
The bit-length of the integers being used in the hashing function.
final
digestLength int
The length of the digest, defaults to 32.
final
hashCode int
The hash code for this object.
no setterinherited
iv Uint64List?
Initialization vector
getter/setter pairoverride-getter
key Uint8List?
If set, key is used for the first round of compression.
final
personalization Uint8List?
If set, personalization acts as a second salt.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salt Uint8List?
If set, salt is used to modify the initialization vector.
final
sigma Uint8List
Offsets for each round within the memory block.
final

Methods

digest() Uint8List
Calculates the digest of all data passed via update().
inherited
digestToString() String
Returns the calculated digest as a string.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the hash to its initial state, effectively clearing all values added via update().
inherited
toString() String
A string representation of this object.
inherited
update(Uint8List? data) → void
Update hash content with the given data.
inherited
updateWithString(String? data) → void
Converts data to a Uint8List and passes it to update().
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromStrings({int digestLength = 32, String? key, String? salt, String? personalization, Uint64List? iv}) Blake2b
Returns a Blake2b instance using Strings for the key, salt, and personalization arguments.