Table of Contents

Class EncryptedPrivateKeyInfoFactory

Namespace
Org.BouncyCastle.Pkcs
Assembly
BouncyCastle.Cryptography.dll
public sealed class EncryptedPrivateKeyInfoFactory
Inheritance
EncryptedPrivateKeyInfoFactory
Inherited Members

Methods

CreateEncryptedPrivateKeyInfo(DerObjectIdentifier, DerObjectIdentifier, char[], byte[], int, SecureRandom, PrivateKeyInfo)

public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(DerObjectIdentifier cipherAlgorithm, DerObjectIdentifier prfAlgorithm, char[] passPhrase, byte[] salt, int iterationCount, SecureRandom random, PrivateKeyInfo keyInfo)

Parameters

cipherAlgorithm DerObjectIdentifier
prfAlgorithm DerObjectIdentifier
passPhrase char[]
salt byte[]
iterationCount int
random SecureRandom
keyInfo PrivateKeyInfo

Returns

EncryptedPrivateKeyInfo

CreateEncryptedPrivateKeyInfo(DerObjectIdentifier, DerObjectIdentifier, char[], byte[], int, SecureRandom, AsymmetricKeyParameter)

public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(DerObjectIdentifier cipherAlgorithm, DerObjectIdentifier prfAlgorithm, char[] passPhrase, byte[] salt, int iterationCount, SecureRandom random, AsymmetricKeyParameter key)

Parameters

cipherAlgorithm DerObjectIdentifier
prfAlgorithm DerObjectIdentifier
passPhrase char[]
salt byte[]
iterationCount int
random SecureRandom
key AsymmetricKeyParameter

Returns

EncryptedPrivateKeyInfo

CreateEncryptedPrivateKeyInfo(DerObjectIdentifier, char[], byte[], int, AsymmetricKeyParameter)

public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(DerObjectIdentifier algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)

Parameters

algorithm DerObjectIdentifier
passPhrase char[]
salt byte[]
iterationCount int
key AsymmetricKeyParameter

Returns

EncryptedPrivateKeyInfo

CreateEncryptedPrivateKeyInfo(string, char[], byte[], int, PrivateKeyInfo)

public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, PrivateKeyInfo keyInfo)

Parameters

algorithm string
passPhrase char[]
salt byte[]
iterationCount int
keyInfo PrivateKeyInfo

Returns

EncryptedPrivateKeyInfo

CreateEncryptedPrivateKeyInfo(string, char[], byte[], int, AsymmetricKeyParameter)

public static EncryptedPrivateKeyInfo CreateEncryptedPrivateKeyInfo(string algorithm, char[] passPhrase, byte[] salt, int iterationCount, AsymmetricKeyParameter key)

Parameters

algorithm string
passPhrase char[]
salt byte[]
iterationCount int
key AsymmetricKeyParameter

Returns

EncryptedPrivateKeyInfo