Create a new key ring generator.

Namespace: Org.BouncyCastle.Bcpg.OpenPgp
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public PgpKeyRingGenerator(
	int certificationLevel,
	PgpKeyPair masterKey,
	string id,
	SymmetricKeyAlgorithmTag encAlgorithm,
	char[] passPhrase,
	bool useSha1,
	PgpSignatureSubpacketVector hashedPackets,
	PgpSignatureSubpacketVector unhashedPackets,
	SecureRandom rand
)
Visual Basic
Public Sub New ( _
	certificationLevel As Integer, _
	masterKey As PgpKeyPair, _
	id As String, _
	encAlgorithm As SymmetricKeyAlgorithmTag, _
	passPhrase As Char(), _
	useSha1 As Boolean, _
	hashedPackets As PgpSignatureSubpacketVector, _
	unhashedPackets As PgpSignatureSubpacketVector, _
	rand As SecureRandom _
)
Visual C++
public:
PgpKeyRingGenerator(
	int certificationLevel, 
	PgpKeyPair^ masterKey, 
	String^ id, 
	SymmetricKeyAlgorithmTag encAlgorithm, 
	array<wchar_t>^ passPhrase, 
	bool useSha1, 
	PgpSignatureSubpacketVector^ hashedPackets, 
	PgpSignatureSubpacketVector^ unhashedPackets, 
	SecureRandom^ rand
)

Parameters

certificationLevel
Type: System..::..Int32
The certification level for keys on this ring.
masterKey
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpKeyPair
The master key pair.
id
Type: System..::..String
The id to be associated with the ring.
encAlgorithm
Type: Org.BouncyCastle.Bcpg..::..SymmetricKeyAlgorithmTag
The algorithm to be used to protect secret keys.
passPhrase
Type: array<System..::..Char>[]()[][]
The passPhrase to be used to protect secret keys.
useSha1
Type: System..::..Boolean
Checksum the secret keys with SHA1 rather than the older 16 bit checksum.
hashedPackets
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSignatureSubpacketVector
Packets to be included in the certification hash.
unhashedPackets
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSignatureSubpacketVector
Packets to be attached unhashed to the certification.
rand
Type: Org.BouncyCastle.Security..::..SecureRandom
input secured random.

See Also