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

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

    Class Gost3410_2012_256EphemeralCryptoServiceProvider

    Алгоритм формирования общих ключей (SharedSecret) на основе алгоритма ГОСТ Р 34.10, эфимерного ключа и Криптопровайдера.

    Inheritance
    object
    AsymmetricAlgorithm
    Gost3410Algorithm
    Gost3410
    Gost3410_2012_256EphemeralCryptoServiceProvider
    Implements
    IDisposable
    Inherited Members
    Gost3410.DefaultKeySize
    Gost3410.Create()
    Gost3410.Create(Gost3410Parameters)
    Gost3410.KeyExchangeAlgorithm
    Gost3410.SignatureAlgorithm
    Gost3410Algorithm.LegalKeySizes
    Gost3410Algorithm.KeySize
    Gost3410Algorithm.SignData(byte[])
    Gost3410Algorithm.SignData(byte[], int, int)
    Gost3410Algorithm.SignData(ReadOnlySpan<byte>)
    Gost3410Algorithm.SignData(ReadOnlySpan<byte>, Span<byte>)
    Gost3410Algorithm.SignData(Stream)
    Gost3410Algorithm.SignHash(ReadOnlySpan<byte>)
    Gost3410Algorithm.SignHash(ReadOnlySpan<byte>, Span<byte>)
    Gost3410Algorithm.TrySignHash(ReadOnlySpan<byte>, Span<byte>, out int)
    Gost3410Algorithm.TrySignData(ReadOnlySpan<byte>, Span<byte>, out int)
    Gost3410Algorithm.VerifyData(byte[], byte[])
    Gost3410Algorithm.VerifyData(byte[], int, int, byte[])
    Gost3410Algorithm.VerifyData(ReadOnlySpan<byte>, ReadOnlySpan<byte>)
    Gost3410Algorithm.VerifyData(Stream, byte[])
    Gost3410Algorithm.VerifyHash(byte[], byte[])
    Gost3410Algorithm.VerifyHash(ReadOnlySpan<byte>, ReadOnlySpan<byte>)
    AsymmetricAlgorithm.Clear()
    AsymmetricAlgorithm.Create(string)
    AsymmetricAlgorithm.Dispose()
    AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte>, PbeParameters)
    AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char>, PbeParameters)
    AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte>, PbeParameters)
    AsymmetricAlgorithm.ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char>, PbeParameters)
    AsymmetricAlgorithm.ExportPkcs8PrivateKey()
    AsymmetricAlgorithm.ExportPkcs8PrivateKeyPem()
    AsymmetricAlgorithm.ExportSubjectPublicKeyInfo()
    AsymmetricAlgorithm.ExportSubjectPublicKeyInfoPem()
    AsymmetricAlgorithm.FromXmlString(string)
    AsymmetricAlgorithm.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte>, ReadOnlySpan<byte>, out int)
    AsymmetricAlgorithm.ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char>, ReadOnlySpan<byte>, out int)
    AsymmetricAlgorithm.ImportFromEncryptedPem(ReadOnlySpan<char>, ReadOnlySpan<byte>)
    AsymmetricAlgorithm.ImportFromEncryptedPem(ReadOnlySpan<char>, ReadOnlySpan<char>)
    AsymmetricAlgorithm.ImportFromPem(ReadOnlySpan<char>)
    AsymmetricAlgorithm.ImportPkcs8PrivateKey(ReadOnlySpan<byte>, out int)
    AsymmetricAlgorithm.ImportSubjectPublicKeyInfo(ReadOnlySpan<byte>, out int)
    AsymmetricAlgorithm.ToXmlString(bool)
    AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte>, PbeParameters, Span<byte>, out int)
    AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char>, PbeParameters, Span<byte>, out int)
    AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte>, PbeParameters, Span<char>, out int)
    AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char>, PbeParameters, Span<char>, out int)
    AsymmetricAlgorithm.TryExportPkcs8PrivateKey(Span<byte>, out int)
    AsymmetricAlgorithm.TryExportPkcs8PrivateKeyPem(Span<char>, out int)
    AsymmetricAlgorithm.TryExportSubjectPublicKeyInfo(Span<byte>, out int)
    AsymmetricAlgorithm.TryExportSubjectPublicKeyInfoPem(Span<char>, out int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CryptoPro.Security.Cryptography
    Assembly: CryptoPro.Security.Cryptography.dll
    Syntax
    public sealed class Gost3410_2012_256EphemeralCryptoServiceProvider : Gost3410, IDisposable

    Constructors

    Gost3410_2012_256EphemeralCryptoServiceProvider()

    Инициализация алгоритма с параметрами заданными внутри реализации CSP.

    Declaration
    public Gost3410_2012_256EphemeralCryptoServiceProvider()

    Gost3410_2012_256EphemeralCryptoServiceProvider(Gost3410Parameters)

    Инициализация алгоритма с заданными параметрами.

    Declaration
    public Gost3410_2012_256EphemeralCryptoServiceProvider(Gost3410Parameters basedOn)
    Parameters
    Type Name Description
    Gost3410Parameters basedOn

    Параметры алгоритма, на основе которого будет сформирована секретная ключевая пара. Используется OID хэширования и открытого ключа, остальные параметры не используются.

    Methods

    CreateAgree(Gost3410Parameters)

    Создание ключа согласования.

    Declaration
    public override GostSharedSecretAlgorithm CreateAgree(Gost3410Parameters alg)
    Parameters
    Type Name Description
    Gost3410Parameters alg

    Параметры открытого ключа.

    Returns
    Type Description
    GostSharedSecretAlgorithm

    Распределенный секрет.

    Overrides
    Gost3410Algorithm.CreateAgree(Gost3410Parameters)

    Dispose(bool)

    Освобождает неуправляемые объектом класса Gost3410EphemeralCryptoServiceProvider ресурсы и, по выбору, управляемые.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true, чтобы освободить и управляемые, и неупавляемые ресурсы; false, чтобы освободить только неуправляемые.

    Overrides
    AsymmetricAlgorithm.Dispose(bool)

    ExportParameters()

    Экспорт параметров Gost3410Parameters алгоритма ГОСТ Р 34.10-2012 256 в CSP.

    Declaration
    public override Gost3410Parameters ExportParameters()
    Returns
    Type Description
    Gost3410Parameters

    Параметры в виде структуры Gost3410Parameters

    Overrides
    Gost3410.ExportParameters()

    ImportParameters(Gost3410Parameters)

    Импорт параметров алгоритма.

    Declaration
    public override void ImportParameters(Gost3410Parameters parameters)
    Parameters
    Type Name Description
    Gost3410Parameters parameters

    Параметры алгоритма.

    Overrides
    Gost3410.ImportParameters(Gost3410Parameters)
    Exceptions
    Type Condition
    CryptographicException

    Всегда.

    ImportPublicKey(ReadOnlySpan<byte>, ReadOnlySpan<byte>)

    Imports encoded public key.

    Declaration
    public override void ImportPublicKey(ReadOnlySpan<byte> encodedPublicKey, ReadOnlySpan<byte> encodedParameters)
    Parameters
    Type Name Description
    ReadOnlySpan<byte> encodedPublicKey

    The encoded public key.

    ReadOnlySpan<byte> encodedParameters

    The encoded parameters.

    Overrides
    Gost3410Algorithm.ImportPublicKey(ReadOnlySpan<byte>, ReadOnlySpan<byte>)

    SignHash(byte[])

    Declaration
    public override byte[] SignHash(byte[] hash)
    Parameters
    Type Name Description
    byte[] hash
    Returns
    Type Description
    byte[]
    Overrides
    Gost3410Algorithm.SignHash(byte[])

    TrySignHashCore(ReadOnlySpan<byte>, Span<byte>, out int)

    Attempts to create the ECDSA signature for the specified hash value in the indicated format into the provided buffer.

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

    The hash value to sign.

    Span<byte> destination

    The buffer to receive the signature.

    int bytesWritten

    When this method returns, contains a value that indicates the number of bytes written to destination. This parameter is treated as uninitialized.

    Returns
    Type Description
    bool

    true if destination is big enough to receive the signature; otherwise, false.

    Overrides
    Gost3410Algorithm.TrySignHashCore(ReadOnlySpan<byte>, Span<byte>, out int)
    Exceptions
    Type Condition
    CryptographicException

    An error occurred in the signing operation.

    VerifyHashCore(ReadOnlySpan<byte>, ReadOnlySpan<byte>)

    Verifies that a digital signature is valid for the provided hash.

    Declaration
    protected override bool VerifyHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature)
    Parameters
    Type Name Description
    ReadOnlySpan<byte> hash

    The signed hash.

    ReadOnlySpan<byte> signature

    The signature to verify.

    Returns
    Type Description
    bool

    true if the digital signature is valid for the provided data; otherwise, false.

    Overrides
    Gost3410Algorithm.VerifyHashCore(ReadOnlySpan<byte>, ReadOnlySpan<byte>)
    Exceptions
    Type Condition
    CryptographicException

    An error occurred in the verification operation.

    Implements

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