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

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

    Class GostSignatureFormatter

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

    Inheritance
    object
    AsymmetricSignatureFormatter
    GostSignatureFormatter
    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 GostSignatureFormatter : AsymmetricSignatureFormatter
    Remarks

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

    Constructors

    GostSignatureFormatter()

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

    Declaration
    public GostSignatureFormatter()

    GostSignatureFormatter(AsymmetricAlgorithm)

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

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

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

    Exceptions
    Type Condition
    CryptographicException

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

    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-2001.

    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-2001.

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