C# Class Org.BouncyCastle.Security.PrivateKeyFactory

ファイルを表示 Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
CreateKey ( PrivateKeyInfo keyInfo ) : AsymmetricKeyParameter
CreateKey ( Stream inStr ) : AsymmetricKeyParameter
CreateKey ( byte privateKeyInfoData ) : AsymmetricKeyParameter
DecryptKey ( char passPhrase, EncryptedPrivateKeyInfo encInfo ) : AsymmetricKeyParameter
DecryptKey ( char passPhrase, Stream encryptedPrivateKeyInfoStream ) : AsymmetricKeyParameter
DecryptKey ( char passPhrase, byte encryptedPrivateKeyInfoData ) : AsymmetricKeyParameter
EncryptKey ( DerObjectIdentifier algorithm, char passPhrase, byte salt, int iterationCount, AsymmetricKeyParameter key ) : byte[]
EncryptKey ( string algorithm, char passPhrase, byte salt, int iterationCount, AsymmetricKeyParameter key ) : byte[]

Private Methods

Method Description
DecryptKey ( char passPhrase, Asn1Object asn1Object ) : AsymmetricKeyParameter
PrivateKeyFactory ( ) : System

Method Details

CreateKey() public static method

public static CreateKey ( PrivateKeyInfo keyInfo ) : AsymmetricKeyParameter
keyInfo Org.BouncyCastle.Asn1.Pkcs.PrivateKeyInfo
return Org.BouncyCastle.Crypto.AsymmetricKeyParameter

CreateKey() public static method

public static CreateKey ( Stream inStr ) : AsymmetricKeyParameter
inStr Stream
return Org.BouncyCastle.Crypto.AsymmetricKeyParameter

CreateKey() public static method

public static CreateKey ( byte privateKeyInfoData ) : AsymmetricKeyParameter
privateKeyInfoData byte
return Org.BouncyCastle.Crypto.AsymmetricKeyParameter

DecryptKey() public static method

public static DecryptKey ( char passPhrase, EncryptedPrivateKeyInfo encInfo ) : AsymmetricKeyParameter
passPhrase char
encInfo Org.BouncyCastle.Asn1.Pkcs.EncryptedPrivateKeyInfo
return Org.BouncyCastle.Crypto.AsymmetricKeyParameter

DecryptKey() public static method

public static DecryptKey ( char passPhrase, Stream encryptedPrivateKeyInfoStream ) : AsymmetricKeyParameter
passPhrase char
encryptedPrivateKeyInfoStream Stream
return Org.BouncyCastle.Crypto.AsymmetricKeyParameter

DecryptKey() public static method

public static DecryptKey ( char passPhrase, byte encryptedPrivateKeyInfoData ) : AsymmetricKeyParameter
passPhrase char
encryptedPrivateKeyInfoData byte
return Org.BouncyCastle.Crypto.AsymmetricKeyParameter

EncryptKey() public static method

public static EncryptKey ( DerObjectIdentifier algorithm, char passPhrase, byte salt, int iterationCount, AsymmetricKeyParameter key ) : byte[]
algorithm Org.BouncyCastle.Asn1.DerObjectIdentifier
passPhrase char
salt byte
iterationCount int
key Org.BouncyCastle.Crypto.AsymmetricKeyParameter
return byte[]

EncryptKey() public static method

public static EncryptKey ( string algorithm, char passPhrase, byte salt, int iterationCount, AsymmetricKeyParameter key ) : byte[]
algorithm string
passPhrase char
salt byte
iterationCount int
key Org.BouncyCastle.Crypto.AsymmetricKeyParameter
return byte[]