C# Класс Org.BouncyCastle.Security.DotNetUtilities

A class containing methods to interface the BouncyCastle world to the .NET Crypto world.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FromX509Certificate ( System.Security.Cryptography.X509Certificates x509Cert ) : X509Certificate
GetDsaKeyPair ( DSA dsa ) : AsymmetricCipherKeyPair
GetDsaKeyPair ( DSAParameters dp ) : AsymmetricCipherKeyPair
GetDsaPublicKey ( DSA dsa ) : DsaPublicKeyParameters
GetDsaPublicKey ( DSAParameters dp ) : DsaPublicKeyParameters
GetKeyPair ( AsymmetricAlgorithm privateKey ) : AsymmetricCipherKeyPair
GetRsaKeyPair ( RSA rsa ) : AsymmetricCipherKeyPair
GetRsaKeyPair ( RSAParameters rp ) : AsymmetricCipherKeyPair
GetRsaPublicKey ( RSA rsa ) : RsaKeyParameters
GetRsaPublicKey ( RSAParameters rp ) : RsaKeyParameters
ToRSA ( RsaKeyParameters rsaKey ) : RSA
ToRSA ( RsaPrivateCrtKeyParameters privKey ) : RSA
ToRSAParameters ( RsaKeyParameters rsaKey ) : RSAParameters
ToRSAParameters ( RsaPrivateCrtKeyParameters privKey ) : RSAParameters
ToX509Certificate ( X509Certificate x509Cert ) : X509Certificate
ToX509Certificate ( X509CertificateStructure x509Struct ) : X509Certificate

Create an System.Security.Cryptography.X509Certificate from an X509Certificate Structure.

ToX509Certificate2 ( X509Certificate x509Cert ) : X509Certificate2

Приватные методы

Метод Описание
ConvertRSAParametersField ( BigInteger n, int size ) : byte[]
DotNetUtilities ( ) : System

Описание методов

FromX509Certificate() публичный статический Метод

public static FromX509Certificate ( System.Security.Cryptography.X509Certificates x509Cert ) : X509Certificate
x509Cert System.Security.Cryptography.X509Certificates
Результат X509Certificate

GetDsaKeyPair() публичный статический Метод

public static GetDsaKeyPair ( DSA dsa ) : AsymmetricCipherKeyPair
dsa System.Security.Cryptography.DSA
Результат Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair

GetDsaKeyPair() публичный статический Метод

public static GetDsaKeyPair ( DSAParameters dp ) : AsymmetricCipherKeyPair
dp System.Security.Cryptography.DSAParameters
Результат Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair

GetDsaPublicKey() публичный статический Метод

public static GetDsaPublicKey ( DSA dsa ) : DsaPublicKeyParameters
dsa System.Security.Cryptography.DSA
Результат Org.BouncyCastle.Crypto.Parameters.DsaPublicKeyParameters

GetDsaPublicKey() публичный статический Метод

public static GetDsaPublicKey ( DSAParameters dp ) : DsaPublicKeyParameters
dp System.Security.Cryptography.DSAParameters
Результат Org.BouncyCastle.Crypto.Parameters.DsaPublicKeyParameters

GetKeyPair() публичный статический Метод

public static GetKeyPair ( AsymmetricAlgorithm privateKey ) : AsymmetricCipherKeyPair
privateKey System.Security.Cryptography.AsymmetricAlgorithm
Результат Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair

GetRsaKeyPair() публичный статический Метод

public static GetRsaKeyPair ( RSA rsa ) : AsymmetricCipherKeyPair
rsa System.Security.Cryptography.RSA
Результат Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair

GetRsaKeyPair() публичный статический Метод

public static GetRsaKeyPair ( RSAParameters rp ) : AsymmetricCipherKeyPair
rp System.Security.Cryptography.RSAParameters
Результат Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair

GetRsaPublicKey() публичный статический Метод

public static GetRsaPublicKey ( RSA rsa ) : RsaKeyParameters
rsa System.Security.Cryptography.RSA
Результат Org.BouncyCastle.Crypto.Parameters.RsaKeyParameters

GetRsaPublicKey() публичный статический Метод

public static GetRsaPublicKey ( RSAParameters rp ) : RsaKeyParameters
rp System.Security.Cryptography.RSAParameters
Результат Org.BouncyCastle.Crypto.Parameters.RsaKeyParameters

ToRSA() публичный статический Метод

public static ToRSA ( RsaKeyParameters rsaKey ) : RSA
rsaKey Org.BouncyCastle.Crypto.Parameters.RsaKeyParameters
Результат System.Security.Cryptography.RSA

ToRSA() публичный статический Метод

public static ToRSA ( RsaPrivateCrtKeyParameters privKey ) : RSA
privKey Org.BouncyCastle.Crypto.Parameters.RsaPrivateCrtKeyParameters
Результат System.Security.Cryptography.RSA

ToRSAParameters() публичный статический Метод

public static ToRSAParameters ( RsaKeyParameters rsaKey ) : RSAParameters
rsaKey Org.BouncyCastle.Crypto.Parameters.RsaKeyParameters
Результат System.Security.Cryptography.RSAParameters

ToRSAParameters() публичный статический Метод

public static ToRSAParameters ( RsaPrivateCrtKeyParameters privKey ) : RSAParameters
privKey Org.BouncyCastle.Crypto.Parameters.RsaPrivateCrtKeyParameters
Результат System.Security.Cryptography.RSAParameters

ToX509Certificate() публичный статический Метод

public static ToX509Certificate ( X509Certificate x509Cert ) : X509Certificate
x509Cert X509Certificate
Результат System.Security.Cryptography.X509Certificates.X509Certificate

ToX509Certificate() публичный статический Метод

Create an System.Security.Cryptography.X509Certificate from an X509Certificate Structure.
public static ToX509Certificate ( X509CertificateStructure x509Struct ) : X509Certificate
x509Struct Org.BouncyCastle.Asn1.X509.X509CertificateStructure
Результат System.Security.Cryptography.X509Certificates.X509Certificate

ToX509Certificate2() публичный статический Метод

public static ToX509Certificate2 ( X509Certificate x509Cert ) : X509Certificate2
x509Cert X509Certificate
Результат System.Security.Cryptography.X509Certificates.X509Certificate2