Table of Contents

Class PgpEncryptedDataGenerator

Namespace
Enterprises.Org.BouncyCastle.Bcpg.OpenPgp
Assembly
Enterprises.BouncyCastle.Crypto.dll
public class PgpEncryptedDataGenerator : IStreamGenerator
Inheritance
PgpEncryptedDataGenerator
Implements
Inherited Members

Constructors

PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag)

public PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag encAlgorithm)

Parameters

encAlgorithm SymmetricKeyAlgorithmTag

PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag, SecureRandom)

public PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag encAlgorithm, SecureRandom rand)

Parameters

encAlgorithm SymmetricKeyAlgorithmTag
rand SecureRandom

PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag, SecureRandom, bool)

public PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag encAlgorithm, SecureRandom rand, bool oldFormat)

Parameters

encAlgorithm SymmetricKeyAlgorithmTag
rand SecureRandom
oldFormat bool

PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag, bool)

public PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag encAlgorithm, bool withIntegrityPacket)

Parameters

encAlgorithm SymmetricKeyAlgorithmTag
withIntegrityPacket bool

PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag, bool, SecureRandom)

public PgpEncryptedDataGenerator(SymmetricKeyAlgorithmTag encAlgorithm, bool withIntegrityPacket, SecureRandom rand)

Parameters

encAlgorithm SymmetricKeyAlgorithmTag
withIntegrityPacket bool
rand SecureRandom

Methods

AddMethod(PgpPublicKey)

public void AddMethod(PgpPublicKey key)

Parameters

key PgpPublicKey

AddMethod(char[])

[Obsolete("Use version that takes an explicit s2kDigest parameter")]
public void AddMethod(char[] passPhrase)

Parameters

passPhrase char[]

AddMethod(char[], HashAlgorithmTag)

public void AddMethod(char[] passPhrase, HashAlgorithmTag s2kDigest)

Parameters

passPhrase char[]
s2kDigest HashAlgorithmTag

AddMethodRaw(byte[], HashAlgorithmTag)

public void AddMethodRaw(byte[] rawPassPhrase, HashAlgorithmTag s2kDigest)

Parameters

rawPassPhrase byte[]
s2kDigest HashAlgorithmTag

AddMethodUtf8(char[], HashAlgorithmTag)

public void AddMethodUtf8(char[] passPhrase, HashAlgorithmTag s2kDigest)

Parameters

passPhrase char[]
s2kDigest HashAlgorithmTag

Close()

public void Close()

Open(Stream, byte[])

public Stream Open(Stream outStr, byte[] buffer)

Parameters

outStr Stream
buffer byte[]

Returns

Stream

Open(Stream, long)

public Stream Open(Stream outStr, long length)

Parameters

outStr Stream
length long

Returns

Stream