Class PrivateKeyFactory
- Namespace
- Org.BouncyCastle.Security
- Assembly
- BouncyCastle.Cryptography.dll
public static class PrivateKeyFactory
- Inheritance
-
PrivateKeyFactory
- Inherited Members
-
Methods
CreateKey(PrivateKeyInfo)
public static AsymmetricKeyParameter CreateKey(PrivateKeyInfo keyInfo)
Parameters
keyInfo PrivateKeyInfo
Returns
- AsymmetricKeyParameter
CreateKey(byte[])
public static AsymmetricKeyParameter CreateKey(byte[] privateKeyInfoData)
Parameters
privateKeyInfoData byte[]
Returns
- AsymmetricKeyParameter
CreateKey(Stream)
public static AsymmetricKeyParameter CreateKey(Stream inStr)
Parameters
inStr Stream
Returns
- AsymmetricKeyParameter
DecryptKey(char[], EncryptedPrivateKeyInfo)
public static AsymmetricKeyParameter DecryptKey(char[] passPhrase, EncryptedPrivateKeyInfo encInfo)
Parameters
passPhrase char[]
encInfo EncryptedPrivateKeyInfo
Returns
- AsymmetricKeyParameter
DecryptKey(char[], byte[])
public static AsymmetricKeyParameter DecryptKey(char[] passPhrase, byte[] encryptedPrivateKeyInfoData)
Parameters
passPhrase char[]
encryptedPrivateKeyInfoData byte[]
Returns
- AsymmetricKeyParameter
DecryptKey(char[], Stream)
public static AsymmetricKeyParameter DecryptKey(char[] passPhrase, Stream encryptedPrivateKeyInfoStream)
Parameters
passPhrase char[]
encryptedPrivateKeyInfoStream Stream
Returns
- AsymmetricKeyParameter
EncryptKey(DerObjectIdentifier, char[], byte[], int, AsymmetricKeyParameter)
public static byte[] EncryptKey(DerObjectIdentifier algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
Parameters
algorithm DerObjectIdentifier
passPhrase char[]
salt byte[]
iterationCount int
key AsymmetricKeyParameter
Returns
- byte[]
EncryptKey(string, char[], byte[], int, AsymmetricKeyParameter)
public static byte[] EncryptKey(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)
Parameters
algorithm string
passPhrase char[]
salt byte[]
iterationCount int
key AsymmetricKeyParameter
Returns
- byte[]