Blake2 class abstract
The base class containing the shared values and methods of the Blake2b and Blake2s hashing algorithms.
Constructors
- Blake2()
Properties
- bitLength → int
-
The bit-length of the integers being used in the hashing function.
no setter
- digestLength → int
-
The length of the digest, defaults to
32
.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
iv
→ List<
int> ? -
Initialization vector
no setter
- key → Uint8List?
-
If set, key is used for the first round of compression.
no setter
- personalization → Uint8List?
-
If set, personalization acts as a second salt.
no setter
- 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.
no setter
- sigma → Uint8List
-
Offsets for each round within the memory block.
no setter
Methods
-
digest(
) → Uint8List -
Calculates the digest of all data passed via
update()
. -
digestToString(
) → String - Returns the calculated digest as a string.
-
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()
. -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Uint8List? data) → void - Update hash content with the given data.
-
updateWithString(
String? data) → void -
Converts
data
to a Uint8List and passes it toupdate()
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited