SerializableHash<T extends HashState> class
abstract
The SerializableHash
abstract class extends the Hash
class and adds
functionality for saving, restoring, and cleaning hash states.
It's useful for hash algorithms that require intermediate state management.
Constructors
Properties
- getBlockSize → int
-
The block size used by the hash algorithm.
no setterinherited
- getDigestLength → int
-
The length of the digest produced by the hash algorithm.
no setterinherited
- 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.
inherited
-
cleanSavedState(
T savedState) → void - Cleans sensitive data from the saved hash state.
-
digest(
) → List< int> -
Retrieves the hash digest.
inherited
-
finish(
List< int> out) → Hash -
Finalizes the hash computation and stores the result in the provided
out
buffer.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Hash -
Resets the hash to its initial state.
inherited
-
restoreState(
T savedState) → SerializableHash< HashState> - Restores the hash state from a saved state.
-
saveState(
) → HashState - Saves the current hash state.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
List< int> data) → Hash -
Updates the hash with the provided data.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited