КриптоПро .NET
Search Results for

    Показать/Скрыть содержание

    Class HMACGost3411_2012_512

    Inheritance
    object
    HashAlgorithm
    KeyedHashAlgorithm
    HMAC
    HMACGost3411_2012_512
    Implements
    ICryptoTransform
    IDisposable
    Inherited Members
    HMAC.Create()
    HMAC.Create(string)
    HMAC.BlockSizeValue
    HMAC.HashName
    KeyedHashAlgorithm.KeyValue
    HashAlgorithm.HashSizeValue
    HashAlgorithm.HashValue
    HashAlgorithm.State
    HashAlgorithm.Clear()
    HashAlgorithm.ComputeHash(byte[])
    HashAlgorithm.ComputeHash(byte[], int, int)
    HashAlgorithm.ComputeHash(Stream)
    HashAlgorithm.ComputeHashAsync(Stream, CancellationToken)
    HashAlgorithm.Dispose()
    HashAlgorithm.TransformBlock(byte[], int, int, byte[], int)
    HashAlgorithm.TransformFinalBlock(byte[], int, int)
    HashAlgorithm.TryComputeHash(ReadOnlySpan<byte>, Span<byte>, out int)
    HashAlgorithm.CanReuseTransform
    HashAlgorithm.CanTransformMultipleBlocks
    HashAlgorithm.Hash
    HashAlgorithm.HashSize
    HashAlgorithm.InputBlockSize
    HashAlgorithm.OutputBlockSize
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CryptoPro.Security.Cryptography
    Assembly: CryptoPro.Security.Cryptography.dll
    Syntax
    public class HMACGost3411_2012_512 : HMAC, ICryptoTransform, IDisposable

    Constructors

    HMACGost3411_2012_512()

    Declaration
    public HMACGost3411_2012_512()

    HMACGost3411_2012_512(Gost28147?)

    Declaration
    public HMACGost3411_2012_512(Gost28147? key)
    Parameters
    Type Name Description
    Gost28147 key

    Properties

    Key

    Gets or sets the key to use in the HMAC calculation.

    Declaration
    public override byte[] Key { get; set; }
    Property Value
    Type Description
    byte[]

    The key to use in the HMAC calculation.

    Overrides
    HMAC.Key
    Exceptions
    Type Condition
    CryptographicException

    An attempt is made to change the Key property after hashing has begun.

    Methods

    Dispose(bool)

    Releases the unmanaged resources used by the HMAC class when a key change is legitimate 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
    HMAC.Dispose(bool)

    HashCore(byte[], int, int)

    When overridden in a derived class, routes data written to the object into the HMAC algorithm for computing the HMAC value.

    Declaration
    protected override void HashCore(byte[] rgb, int ib, int cb)
    Parameters
    Type Name Description
    byte[] rgb

    The input data.

    int ib

    The offset into the byte array from which to begin using data.

    int cb

    The number of bytes in the array to use as data.

    Overrides
    HMAC.HashCore(byte[], int, int)

    HashCore(ReadOnlySpan<byte>)

    Routes data written to the object into the HMAC algorithm for computing the HMAC.

    Declaration
    protected override void HashCore(ReadOnlySpan<byte> source)
    Parameters
    Type Name Description
    ReadOnlySpan<byte> source

    The input to compute the HMAC code for.

    Overrides
    HMAC.HashCore(ReadOnlySpan<byte>)
    Exceptions
    Type Condition
    PlatformNotSupportedException

    In all cases.

    HashFinal()

    When overridden in a derived class, finalizes the HMAC computation after the last data is processed by the algorithm.

    Declaration
    protected override byte[] HashFinal()
    Returns
    Type Description
    byte[]

    The computed HMAC value in a byte array.

    Overrides
    HMAC.HashFinal()

    Initialize()

    Initializes an instance of the default implementation of HMAC.

    Declaration
    public override void Initialize()
    Overrides
    HMAC.Initialize()

    TryHashFinal(Span<byte>, out int)

    Attempts to finalize the HMAC computation after the last data is processed by the HMAC algorithm.

    Declaration
    protected override bool TryHashFinal(Span<byte> destination, out int bytesWritten)
    Parameters
    Type Name Description
    Span<byte> destination

    The buffer to receive the HMAC value.

    int bytesWritten

    When this method returns, the total number of bytes written into destination. This parameter is treated as uninitialized.

    Returns
    Type Description
    bool

    true if destination is long enough to receive the HMAC value; otherwise, false.

    Overrides
    HMAC.TryHashFinal(Span<byte>, out int)
    Exceptions
    Type Condition
    PlatformNotSupportedException

    The method is not overriden in the derived type.

    Implements

    ICryptoTransform
    IDisposable
    В этом разделе
    Наверх Generated by DocFX