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

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

    Class GostCertificateExtensions

    Provides extension methods for retrieving Gost3410Algorithm implementations for the public and private keys of a CpX509Certificate2.

    Inheritance
    object
    GostCertificateExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CryptoPro.Security.Cryptography.X509Certificates
    Assembly: CryptoPro.Security.Cryptography.dll
    Syntax
    public static class GostCertificateExtensions

    Methods

    CopyWithPrivateKey(CpX509Certificate2, Gost3410)

    Declaration
    public static CpX509Certificate2 CopyWithPrivateKey(this CpX509Certificate2 certificate, Gost3410 privateKey)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Gost3410 privateKey
    Returns
    Type Description
    CpX509Certificate2

    CopyWithPrivateKey(CpX509Certificate2, Gost3410_2012_256)

    Declaration
    public static CpX509Certificate2 CopyWithPrivateKey(this CpX509Certificate2 certificate, Gost3410_2012_256 privateKey)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Gost3410_2012_256 privateKey
    Returns
    Type Description
    CpX509Certificate2

    CopyWithPrivateKey(CpX509Certificate2, Gost3410_2012_512)

    Declaration
    public static CpX509Certificate2 CopyWithPrivateKey(this CpX509Certificate2 certificate, Gost3410_2012_512 privateKey)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Gost3410_2012_512 privateKey
    Returns
    Type Description
    CpX509Certificate2

    GetGost3410PrivateKey(CpX509Certificate2)

    Gets the Gost3410 private key from the certificate or null if the certificate does not have a GOST private key.

    Declaration
    public static Gost3410 GetGost3410PrivateKey(this CpX509Certificate2 certificate)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Returns
    Type Description
    Gost3410

    GetGost3410PublicKey(CpX509Certificate2)

    Gets the Gost3410 public key from the certificate or null if the certificate does not have an RSA public key.

    Declaration
    public static Gost3410 GetGost3410PublicKey(this CpX509Certificate2 certificate)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Returns
    Type Description
    Gost3410

    GetGost3410_2012_256PrivateKey(CpX509Certificate2)

    Gets the Gost3410_2012_256 private key from the certificate or null if the certificate does not have a GOST private key.

    Declaration
    public static Gost3410_2012_256 GetGost3410_2012_256PrivateKey(this CpX509Certificate2 certificate)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Returns
    Type Description
    Gost3410_2012_256

    GetGost3410_2012_256PublicKey(CpX509Certificate2)

    Gets the Gost3410_2012_256 public key from the certificate or null if the certificate does not have an RSA public key.

    Declaration
    public static Gost3410_2012_256 GetGost3410_2012_256PublicKey(this CpX509Certificate2 certificate)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Returns
    Type Description
    Gost3410_2012_256

    GetGost3410_2012_512PrivateKey(CpX509Certificate2)

    Gets the Gost3410_2012_512 private key from the certificate or null if the certificate does not have a GOST private key.

    Declaration
    public static Gost3410_2012_512 GetGost3410_2012_512PrivateKey(this CpX509Certificate2 certificate)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Returns
    Type Description
    Gost3410_2012_512

    GetGost3410_2012_512PublicKey(CpX509Certificate2)

    Gets the Gost3410_2012_512 public key from the certificate or null if the certificate does not have an RSA public key.

    Declaration
    public static Gost3410_2012_512 GetGost3410_2012_512PublicKey(this CpX509Certificate2 certificate)
    Parameters
    Type Name Description
    CpX509Certificate2 certificate
    Returns
    Type Description
    Gost3410_2012_512
    В этом разделе
    Наверх Generated by DocFX