BLAKE2b class
Implementation of the BLAKE2b hash function that implements the SerializableHash interface.
- Implemented types
Constructors
- BLAKE2b({int digestLength = 64, Blake2bConfig? config})
- Creates a BLAKE2b hash instance with the specified digest length and optional configuration.
Properties
- getBlockSize → int
-
The block size used by the hash algorithm.
no setteroverride
- getDigestLength ↔ int
-
The length of the digest produced by the hash algorithm.
latefinaloverride-getter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clean(
) → void -
Cleans sensitive data and resets the internal state of the hash function.
override
-
cleanSavedState(
Blake2bState savedState) → void -
Cleans and resets a saved hash state, securely erasing sensitive data.
override
-
clone(
) → BLAKE2b -
digest(
) → List< int> -
Returns the final hash digest.
override
-
finish(
List< int> out) → BLAKE2b -
Finalizes the BLAKE2b hash, producing the hash digest and writing it to the given output.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → BLAKE2b -
Resets the BLAKE2b hash instance to its initial state, clearing all internal data.
override
-
restoreState(
Blake2bState savedState) → BLAKE2b -
Restores the hash state to a previously saved state object.
override
-
saveState(
) → Blake2bState -
Saves the current state of the BLAKE2b hash function for future restoration.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
List< int> data, {int? length}) → BLAKE2b -
Updates the BLAKE2b hash with the given data, optionally specifying the data length.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited