BLAKE2s class

Implementation of the BLAKE2s hash function that implements the SerializableHash interface.

Implemented types

Constructors

BLAKE2s({int digestLength = 32, Blake2sConfig? config})
Creates a BLAKE2s 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 in the hash instance.
override
cleanSavedState(Blake2sState savedState) → void
Cleans sensitive data from the saved hash state.
override
digest() List<int>
Retrieves the hash digest.
override
finish(List<int> out) BLAKE2s
Finalizes the hash computation and stores the result in the provided out buffer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() BLAKE2s
Resets the hash to its initial state.
override
restoreState(Blake2sState savedState) BLAKE2s
Restores the hash state from a saved state.
override
saveState() Blake2sState
Saves the current hash state.
override
toString() String
A string representation of this object.
inherited
update(List<int> data, {int? length}) BLAKE2s
Updates the hash with the provided data.
override

Operators

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

Static Methods

hash(List<int> data, [int digestLength = 32, Blake2sConfig? config]) List<int>
Creates a combined hash code for a number of objects.
override