Class SHA512256
- Namespace
- Cuemon.Security.Cryptography
- Assembly
- Cuemon.Security.Cryptography.dll
Represents the SHA-512/256 cryptographic hash algorithm, which produces a 256-bit hash value using the SHA-512 algorithm as its base.
public sealed class SHA512256 : HashAlgorithm, ICryptoTransform, IDisposable
- Inheritance
-
SHA512256
- Implements
- Inherited Members
Remarks
Full disclosure; this class was created in collaboration with OpenAI ChatGPT. Have a look at the prompt here: https://chatgpt.com/share/67fbd1fe-17d8-8010-8144-e94251c2e79d
Constructors
SHA512256()
Initializes a new instance of the SHA512256 class.
public SHA512256()
Methods
HashCore(Byte[], Int32, Int32)
Routes data written to the object into the hash algorithm for computing the hash.
protected override void HashCore(byte[] array, int ibStart, int cbSize)
Parameters
array
Byte[]The input data.
ibStart
Int32The offset into the byte array from which to begin using data.
cbSize
Int32The number of bytes in the array to use as data.
HashFinal()
Finalizes the hash computation after the last data is processed.
protected override byte[] HashFinal()
Returns
- Byte[]
The computed hash code.
Initialize()
Initializes the hash algorithm, resetting its state.
public override void Initialize()