Class Gost3411_2012_512CryptoServiceProvider
Inherited Members
Namespace: CryptoPro.Security.Cryptography
Assembly: CryptoPro.Security.Cryptography.dll
Syntax
public sealed class Gost3411_2012_512CryptoServiceProvider : Gost3411_2012_512, ICryptoTransform, IDisposable
Constructors
Gost3411_2012_512CryptoServiceProvider()
Declaration
public Gost3411_2012_512CryptoServiceProvider()
Methods
Dispose(bool)
Releases the unmanaged resources used by the HashAlgorithm and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Overrides
HashCore(byte[], int, int)
When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash.
Declaration
protected override void HashCore(byte[] array, int ibStart, int cbSize)
Parameters
Type | Name | Description |
---|---|---|
byte[] | array | The input to compute the hash code for. |
int | ibStart | The offset into the byte array from which to begin using data. |
int | cbSize | The number of bytes in the byte array to use as data. |
Overrides
HashCore(ReadOnlySpan<byte>)
Routes data written to the object into the hash algorithm for computing the hash.
Declaration
protected override void HashCore(ReadOnlySpan<byte> source)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<byte> | source | The input to compute the hash code for. |
Overrides
HashFinal()
When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic hash algorithm.
Declaration
protected override byte[] HashFinal()
Returns
Type | Description |
---|---|
byte[] | The computed hash code. |
Overrides
Initialize()
Resets the hash algorithm to its initial state.
Declaration
public override void Initialize()
Overrides
TryHashFinal(Span<byte>, out int)
Attempts to finalize the hash computation after the last data is processed by the hash algorithm.
Declaration
protected override bool TryHashFinal(Span<byte> destination, out int bytesWritten)
Parameters
Type | Name | Description |
---|---|---|
Span<byte> | destination | The buffer to receive the hash value. |
int | bytesWritten | When this method returns, the total number of bytes written into |
Returns
Type | Description |
---|---|
bool | true if |