Keccak class

Implemented types

Constructors

Keccak([int digestLength = 32])

Properties

blockSize → int
no setterinherited
digestLength → int
digest length
final
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(KeccakState savedState) → void
savedState: The hash state to be cleaned and reset.
override
digest() → BuBytes
Generates the final hash digest by assembling and returning the hash state in a List<int>.
override
finish(List<int> dst) → Keccak
Finalizes the hash computation and stores the hash state in the provided dst.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → Keccak
Resets the hash computation to its initial state.
restoreState(KeccakState savedState) → Keccak
Restores the hash computation state from a previously saved state.
override
saveState() → KeccakState
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) → Keccak
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]) → BuBytes
Computes the Keccak hash of the provided data.
override
keccakF1600(BuBytes src) → BuBytes