SHA3 class

The SHA3 class is used to compute hash digests of data, and it allows customization of the digest length

Implemented types
Implementers

Constructors

SHA3([int digestLength = 32])

Properties

blockSize int
block size
latefinalinherited
getBlockSize int
block size
no setteroverride
getDigestLength int
digest length
final
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
Clean up the internal state and reset hash object to its initial state.
inherited
cleanSavedState(HashBytesState savedState) → void
Clean up and reset the saved state of the hash object to its initial state.
override
digest() List<int>
Generates the final hash digest by assembling and returning the hash state in a List<int>.
override
finish(List<int> dst) SHA3
Finalizes the hash computation and stores the hash state in the provided List<int> dst.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() SHA3
Resets the hash computation to its initial state.
restoreState(HashBytesState savedState) SHA3
Restores the hash computation state from a previously saved state.
override
saveState() HashBytesState
Saves the current hash computation state into a serializable state object.
override
toString() String
A string representation of this object.
inherited
update(List<int> data) SHA3
Updates the hash computation with the given data.

Operators

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

Static Methods

hash(List<int> data, [int digestLength = 32]) List<int>
Computes the SHA3 hash of the provided data.
override