Table of Contents

Class Pkcs8Generator

Namespace
Org.BouncyCastle.OpenSsl
Assembly
BouncyCastle.Cryptography.dll
public class Pkcs8Generator : PemObjectGenerator
Inheritance
Pkcs8Generator
Implements
Inherited Members

Constructors

Pkcs8Generator(AsymmetricKeyParameter)

public Pkcs8Generator(AsymmetricKeyParameter privKey)

Parameters

privKey AsymmetricKeyParameter

Pkcs8Generator(AsymmetricKeyParameter, string)

public Pkcs8Generator(AsymmetricKeyParameter privKey, string algorithm)

Parameters

privKey AsymmetricKeyParameter
algorithm string

Fields

PbeSha1_2DES

public static readonly string PbeSha1_2DES

Field Value

string

PbeSha1_3DES

public static readonly string PbeSha1_3DES

Field Value

string

PbeSha1_RC2_128

public static readonly string PbeSha1_RC2_128

Field Value

string

PbeSha1_RC2_40

public static readonly string PbeSha1_RC2_40

Field Value

string

PbeSha1_RC4_128

public static readonly string PbeSha1_RC4_128

Field Value

string

PbeSha1_RC4_40

public static readonly string PbeSha1_RC4_40

Field Value

string

Properties

IterationCount

public int IterationCount { set; }

Property Value

int

Password

public char[] Password { set; }

Property Value

char[]

SecureRandom

public SecureRandom SecureRandom { set; }

Property Value

SecureRandom

Methods

Generate()

public PemObject Generate()

Returns

PemObject

A PemObject

Exceptions

PemGenerationException