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
  
    - certificationLevelint
- masterKeyPgpKeyPair
- idstring
- encAlgorithmSymmetricKeyAlgorithmTag
- hashAlgorithmHashAlgorithmTag
- utf8PassPhrasebool
- passPhrasechar[]
- useSha1bool
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
- randSecureRandom
  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
  
    - certificationLevelint
- masterKeyPgpKeyPair
- idstring
- encAlgorithmSymmetricKeyAlgorithmTag
- hashAlgorithmHashAlgorithmTag
- rawPassPhrasebyte[]
- useSha1bool
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
- randSecureRandom
  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
  
    - certificationLevelint
- masterKeyPgpKeyPair
- idstring
- encAlgorithmSymmetricKeyAlgorithmTag
- hashAlgorithmHashAlgorithmTag
- passPhrasechar[]
- useSha1bool
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
- randSecureRandom
  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
  
    - certificationLevelint
- masterKeyPgpKeyPair
- idstring
- encAlgorithmSymmetricKeyAlgorithmTag
- utf8PassPhrasebool
- passPhrasechar[]
- useSha1bool
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
- randSecureRandom
  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
  
    - certificationLevelint
- masterKeyPgpKeyPair
- idstring
- encAlgorithmSymmetricKeyAlgorithmTag
- rawPassPhrasebyte[]
- useSha1bool
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
- randSecureRandom
  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
  
    - certificationLevelint
- masterKeyPgpKeyPair
- idstring
- encAlgorithmSymmetricKeyAlgorithmTag
- passPhrasechar[]
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
- randSecureRandom
  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
  
    - certificationLevelint
- masterKeyPgpKeyPair
- idstring
- encAlgorithmSymmetricKeyAlgorithmTag
- passPhrasechar[]
- useSha1bool
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
- randSecureRandom
Methods
  
  
  AddSubKey(PgpKeyPair)
  
  
  
  
  
    public void AddSubKey(PgpKeyPair keyPair)
   
  Parameters
  
    - keyPairPgpKeyPair
  AddSubKey(PgpKeyPair, HashAlgorithmTag)
  
  
  
  
  
    public void AddSubKey(PgpKeyPair keyPair, HashAlgorithmTag hashAlgorithm)
   
  Parameters
  
    - keyPairPgpKeyPair
- hashAlgorithmHashAlgorithmTag
  AddSubKey(PgpKeyPair, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector)
  
  
  
  
  
    public void AddSubKey(PgpKeyPair keyPair, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets)
   
  Parameters
  
    - keyPairPgpKeyPair
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
  AddSubKey(PgpKeyPair, PgpSignatureSubpacketVector, PgpSignatureSubpacketVector, HashAlgorithmTag)
  
  
  
  
  
    public void AddSubKey(PgpKeyPair keyPair, PgpSignatureSubpacketVector hashedPackets, PgpSignatureSubpacketVector unhashedPackets, HashAlgorithmTag hashAlgorithm)
   
  Parameters
  
    - keyPairPgpKeyPair
- hashedPacketsPgpSignatureSubpacketVector
- unhashedPacketsPgpSignatureSubpacketVector
- hashAlgorithmHashAlgorithmTag
  GeneratePublicKeyRing()
  
  
  
  
  
    public PgpPublicKeyRing GeneratePublicKeyRing()
   
  Returns
  
    - PgpPublicKeyRing
  GenerateSecretKeyRing()
  
  
  
  
  
    public PgpSecretKeyRing GenerateSecretKeyRing()
   
  Returns
  
    - PgpSecretKeyRing