Table of Contents

Class PgpKeyRingGenerator

Namespace
Enterprises.Org.BouncyCastle.Bcpg.OpenPgp
Assembly
Enterprises.BouncyCastle.Crypto.dll
public class PgpKeyRingGenerator
Inheritance
PgpKeyRingGenerator
Inherited Members

Constructors

PgpKeyRingGenerator(int, PgpKeyPair, string, SymmetricKeyAlgorithmTag, HashAlgorithmTag, bool, char[], bool, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, SecureRandom)

public PgpKeyRingGenerator(int certificationLevel, PgpKeyPair masterKey, string id, SymmetricKeyAlgorithmTag encAlgorithm, HashAlgorithmTag hashAlgorithm, bool utf8PassPhrase, char[] passPhrase, bool useSha1, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, SecureRandom rand)

Parameters

certificationLevel int
masterKey PgpKeyPair
id string
encAlgorithm SymmetricKeyAlgorithmTag
hashAlgorithm HashAlgorithmTag
utf8PassPhrase bool
passPhrase char[]
useSha1 bool
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector
rand SecureRandom

PgpKeyRingGenerator(int, PgpKeyPair, string, SymmetricKeyAlgorithmTag, HashAlgorithmTag, byte[], bool, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, SecureRandom)

public PgpKeyRingGenerator(int certificationLevel, PgpKeyPair masterKey, string id, SymmetricKeyAlgorithmTag encAlgorithm, HashAlgorithmTag hashAlgorithm, byte[] rawPassPhrase, bool useSha1, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, SecureRandom rand)

Parameters

certificationLevel int
masterKey PgpKeyPair
id string
encAlgorithm SymmetricKeyAlgorithmTag
hashAlgorithm HashAlgorithmTag
rawPassPhrase byte[]
useSha1 bool
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector
rand SecureRandom

PgpKeyRingGenerator(int, PgpKeyPair, string, SymmetricKeyAlgorithmTag, HashAlgorithmTag, char[], bool, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, SecureRandom)

public PgpKeyRingGenerator(int certificationLevel, PgpKeyPair masterKey, string id, SymmetricKeyAlgorithmTag encAlgorithm, HashAlgorithmTag hashAlgorithm, char[] passPhrase, bool useSha1, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, SecureRandom rand)

Parameters

certificationLevel int
masterKey PgpKeyPair
id string
encAlgorithm SymmetricKeyAlgorithmTag
hashAlgorithm HashAlgorithmTag
passPhrase char[]
useSha1 bool
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector
rand SecureRandom

PgpKeyRingGenerator(int, PgpKeyPair, string, SymmetricKeyAlgorithmTag, bool, char[], bool, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, SecureRandom)

public PgpKeyRingGenerator(int certificationLevel, PgpKeyPair masterKey, string id, SymmetricKeyAlgorithmTag encAlgorithm, bool utf8PassPhrase, char[] passPhrase, bool useSha1, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, SecureRandom rand)

Parameters

certificationLevel int
masterKey PgpKeyPair
id string
encAlgorithm SymmetricKeyAlgorithmTag
utf8PassPhrase bool
passPhrase char[]
useSha1 bool
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector
rand SecureRandom

PgpKeyRingGenerator(int, PgpKeyPair, string, SymmetricKeyAlgorithmTag, byte[], bool, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, SecureRandom)

public PgpKeyRingGenerator(int certificationLevel, PgpKeyPair masterKey, string id, SymmetricKeyAlgorithmTag encAlgorithm, byte[] rawPassPhrase, bool useSha1, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, SecureRandom rand)

Parameters

certificationLevel int
masterKey PgpKeyPair
id string
encAlgorithm SymmetricKeyAlgorithmTag
rawPassPhrase byte[]
useSha1 bool
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector
rand SecureRandom

PgpKeyRingGenerator(int, PgpKeyPair, string, SymmetricKeyAlgorithmTag, char[], PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, SecureRandom)

[Obsolete("Use version taking an explicit 'useSha1' parameter instead")]
public PgpKeyRingGenerator(int certificationLevel, PgpKeyPair masterKey, string id, SymmetricKeyAlgorithmTag encAlgorithm, char[] passPhrase, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, SecureRandom rand)

Parameters

certificationLevel int
masterKey PgpKeyPair
id string
encAlgorithm SymmetricKeyAlgorithmTag
passPhrase char[]
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector
rand SecureRandom

PgpKeyRingGenerator(int, PgpKeyPair, string, SymmetricKeyAlgorithmTag, char[], bool, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, SecureRandom)

public PgpKeyRingGenerator(int certificationLevel, PgpKeyPair masterKey, string id, SymmetricKeyAlgorithmTag encAlgorithm, char[] passPhrase, bool useSha1, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, SecureRandom rand)

Parameters

certificationLevel int
masterKey PgpKeyPair
id string
encAlgorithm SymmetricKeyAlgorithmTag
passPhrase char[]
useSha1 bool
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector
rand SecureRandom

Methods

AddSubKey(PgpKeyPair)

public void AddSubKey(PgpKeyPair keyPair)

Parameters

keyPair PgpKeyPair

AddSubKey(PgpKeyPair, HashAlgorithmTag)

public void AddSubKey(PgpKeyPair keyPair, HashAlgorithmTag hashAlgorithm)

Parameters

keyPair PgpKeyPair
hashAlgorithm HashAlgorithmTag

AddSubKey(PgpKeyPair, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector)

public void AddSubKey(PgpKeyPair keyPair, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets)

Parameters

keyPair PgpKeyPair
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector

AddSubKey(PgpKeyPair, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, HashAlgorithmTag)

public void AddSubKey(PgpKeyPair keyPair, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, HashAlgorithmTag hashAlgorithm)

Parameters

keyPair PgpKeyPair
hashedPackets PgpSignatureSubpacketVector
unhashedPackets PgpSignatureSubpacketVector
hashAlgorithm HashAlgorithmTag

GeneratePublicKeyRing()

public PgpPublicKeyRing GeneratePublicKeyRing()

Returns

PgpPublicKeyRing

GenerateSecretKeyRing()

public PgpSecretKeyRing GenerateSecretKeyRing()

Returns

PgpSecretKeyRing