SHA3256 class
The SHA3256
class represents a specific implementation of the SHA-3 (Secure Hash Algorithm 3) hash function
with a digest length of 256 bits (32 bytes).
It extends the SHA3
class to provide a specialized version of SHA-3 with a fixed digest length.
The SHA3256
class does not accept any additional parameters in its constructor, as it's specifically
tailored to produce a 256-bit digest.
Constructors
- SHA3256()
- Constructor for SHA3256 with a fixed digest length of 256 bits (32 bytes)
Properties
- blockSize ↔ int
-
block size
latefinalinherited
- getBlockSize → int
-
block size
no setterinherited
- getDigestLength → int
-
digest length
finalinherited
- 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(
) → dynamic -
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.
This function erases the buffer and sets the state and length to the default values.
It is used to ensure that a previously saved hash state is cleared and ready for reuse.
inherited
-
digest(
) → List< int> -
Generates the final hash digest by assembling and returning the hash state in a List
inherited
-
finish(
List< int> dst) → SHA3 -
Finalizes the hash computation and stores the hash state in the provided List
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → SHA3 -
Resets the hash computation to its initial state.
inherited
-
restoreState(
HashBytesState savedState) → SHA3 -
Restores the hash computation state from a previously saved state.
inherited
-
saveState(
) → HashBytesState -
Saves the current hash computation state into a serializable state object.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
List< int> data) → SHA3 -
Updates the hash computation with the given data.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited