SHAKE class

The SHAKE class represents the SHAKE (Secure Hash Algorithm KEccak) extendable-output hash function.

Implemented types
Implementers

Constructors

SHAKE(int bitSize)
Constructor for SHAKE with a specified bit size

Properties

bitSize → int
The desired output size in bits for the SHAKE digest.
final
blockSize ↔ int
block size
latefinalinherited
getBlockSize → int
The block size used by the hash algorithm.
no setteroverride
getDigestLength → int
The length of the digest produced by the hash algorithm.
no setteroverride
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(dynamic savedState) → void
Clean up and reset the saved state of the hash object to its initial state.
override
digest([int outlen = 32]) → List<int>
Generates the final hash digest by assembling and returning the hash state in a List<int>.
override
finish(List<int> out) → Hash
Finalizes the hash computation and stores the hash state in the provided out.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → SHAKE
Resets the hash computation to its initial state.
restoreState(HashBytesState savedState) → SHAKE
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
stream(List<int> dst) → void
The stream method is used for generating a stream of pseudorandom bytes from the SHAKE (Secure Hash Algorithm KEccak) hash function. Parameters:
toString() → String
A string representation of this object.
inherited
update(List<int> data) → SHAKE
Updates the hash computation with the given data.

Operators

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