Table of Contents

Class PgpPbeEncryptedData

Namespace
Org.BouncyCastle.Bcpg.OpenPgp
Assembly
BouncyCastle.Cryptography.dll
public class PgpPbeEncryptedData : PgpEncryptedData
Inheritance
PgpPbeEncryptedData
Inherited Members

Remarks

A password based encryption object.

Methods

GetDataStream(char[])

Return the decrypted input stream, using the passed in passphrase.

public Stream GetDataStream(char[] passPhrase)

Parameters

passPhrase char[]

Returns

Stream

Remarks

Conversion of the passphrase characters to bytes is performed using Convert.ToByte(), which is the historical behaviour of the library (1.7 and earlier).

GetDataStreamRaw(byte[])

Return the decrypted input stream, using the passed in passphrase.

public Stream GetDataStreamRaw(byte[] rawPassPhrase)

Parameters

rawPassPhrase byte[]

Returns

Stream

Remarks

Allows the caller to handle the encoding of the passphrase to bytes.

GetDataStreamUtf8(char[])

Return the decrypted input stream, using the passed in passphrase.

public Stream GetDataStreamUtf8(char[] passPhrase)

Parameters

passPhrase char[]

Returns

Stream

Remarks

The passphrase is encoded to bytes using UTF8 (Encoding.UTF8.GetBytes).

GetInputStream()

Return the raw input stream for the data stream.

public override Stream GetInputStream()

Returns

Stream