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

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

    Class Gost2012_512SignatureFormatter

    Класc формирования подписи на алгоритме ГОСТ Р 34.10-2012 512.

    Inheritance
    object
    AsymmetricSignatureFormatter
    Gost2012_512SignatureFormatter
    Inherited Members
    AsymmetricSignatureFormatter.CreateSignature(HashAlgorithm)
    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
    [ComVisible(true)]
    public class Gost2012_512SignatureFormatter : AsymmetricSignatureFormatter
    Remarks

    Создает подпись, на алгоритме ГОСТ Р 34.10-2012 512. Для проверки подписи существует класс GostSignatureDeformatter.

    Constructors

    Gost2012_512SignatureFormatter()

    Создание объекта класса Gost2012_512SignatureFormatter.

    Declaration
    public Gost2012_512SignatureFormatter()

    Gost2012_512SignatureFormatter(AsymmetricAlgorithm)

    Создание объекта класса Gost2012_512SignatureFormatter с заданным ключом.

    Declaration
    public Gost2012_512SignatureFormatter(AsymmetricAlgorithm key)
    Parameters
    Type Name Description
    AsymmetricAlgorithm key

    Провайдер, содержащий ключ.

    Exceptions
    Type Condition
    CryptographicException

    Параметр key не является реализацией алгоритма ГОСТ Р 34.10-2012 512.

    Methods

    CreateSignature(byte[])

    Создает подпись на значение хэш-функции.

    Declaration
    public override byte[] CreateSignature(byte[] rgbHash)
    Parameters
    Type Name Description
    byte[] rgbHash

    Подписываемый хэш.

    Returns
    Type Description
    byte[]

    Подпись для rgbHash

    Overrides
    AsymmetricSignatureFormatter.CreateSignature(byte[])
    Remarks

    Ключ и алгоритм хэширования должны быть определены до вызова этого метода.

    Exceptions
    Type Condition
    CryptographicUnexpectedOperationException

    Не установлен алгоритм хэширования или ключ

    SetHashAlgorithm(string)

    Устанавливает алгоритм хэширования, используемый при создании подписи.

    Declaration
    public override void SetHashAlgorithm(string strName)
    Parameters
    Type Name Description
    string strName

    Название алгоритма.

    Overrides
    AsymmetricSignatureFormatter.SetHashAlgorithm(string)
    Exceptions
    Type Condition
    CryptographicUnexpectedOperationException

    Устанавливаемое имя алгоритма неизвестно или не поддерживает алгоритм ГОСТ Р 34.11-2012 512.

    SetKey(AsymmetricAlgorithm)

    Устанавливает ключ, используемый при создании подписи.

    Declaration
    public override void SetKey(AsymmetricAlgorithm key)
    Parameters
    Type Name Description
    AsymmetricAlgorithm key

    Объект, содержащий ключ.

    Overrides
    AsymmetricSignatureFormatter.SetKey(AsymmetricAlgorithm)
    Exceptions
    Type Condition
    CryptographicException

    Параметр key не является реализацией алгоритма ГОСТ Р 34.10-2012 512.

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