SHA512 class
The SHA512 class implements the SHA-512 hash algorithm.
SHA-512 is a cryptographic hash function that takes an input message and produces a 512-bit (64-byte) hash value known as the message digest.
To use the SHA512 class for hashing, create an instance, update it with
data, and then retrieve the hash value using the digest method.
Example usage:
final sha512 = SHA512();
sha512.update(data);
final hash = sha512.digest();
- Implemented types
 - Implementers
 
Constructors
- SHA512()
 - Initializes a new instance of the SHA-512 hash algorithm.
 
Properties
- 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.
  override
 - 
  cleanSavedState(
SHA512State 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.
  override
 - 
  digest(
) → List< int>  - 
  Generates the final hash digest by assembling and returning the hash state in a 
List<int>.override - 
  finish(
List< int> out) → SerializableHash<HashState>  - 
  Finalizes the hash computation and stores the hash state in the provided 
List<int>out.override - 
  noSuchMethod(
Invocation invocation) → dynamic  - 
  Invoked when a nonexistent method or property is accessed.
  inherited
 - 
  reset(
) → SerializableHash< HashState>  - 
  Resets the hash computation to its initial state.
  override
 - 
  restoreState(
SHA512State savedState) → SerializableHash< HashState>  - 
  Restores the hash computation state from a previously saved state.
  override
 - 
  saveState(
) → SHA512State  - 
  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, {int? length}) → SerializableHash<HashState>  - 
  Updates the hash computation with the given data.
  override
 
Operators
- 
  operator ==(
Object other) → bool  - 
  The equality operator.
  inherited
 
Static Methods
Constants
- blockSize → const int
 - block size
 - digestLength → const int
 - digest length