Class GostCertificateExtensions
Inheritance
GostCertificateExtensions
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
Returns
CopyWithPrivateKey(CpX509Certificate2, Gost3410_2012_256)
Declaration
public static CpX509Certificate2 CopyWithPrivateKey(this CpX509Certificate2 certificate, Gost3410_2012_256 privateKey)
Parameters
Returns
CopyWithPrivateKey(CpX509Certificate2, Gost3410_2012_512)
Declaration
public static CpX509Certificate2 CopyWithPrivateKey(this CpX509Certificate2 certificate, Gost3410_2012_512 privateKey)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns