Method | Description | |
---|---|---|
AddMethod ( |
Add a public key encrypted session key to the encrypted object.
|
|
AddMethod ( char passPhrase ) : void |
Add a PBE encryption method to the encrypted object using the default algorithm (S2K_SHA1).
|
|
AddMethod ( char passPhrase, HashAlgorithmTag s2kDigest ) : void |
Add a PBE encryption method to the encrypted object.
|
|
Close ( ) : void |
Close off the encrypted object - this is equivalent to calling Close() on the stream returned by the Open() method. Note: This does not close the underlying output stream, only the stream on top of it created by the Open() method.
|
|
Open ( Stream outStr, byte buffer ) : Stream |
Return an output stream which will encrypt the data as it is written to it. The stream will be written out in chunks according to the size of the passed in buffer. The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter Note: if the buffer is not a power of 2 in length only the largest power of 2 bytes worth of the buffer will be used.
|
|
Open ( Stream outStr, long length ) : Stream |
Return an output stream which will encrypt the data as it is written to it. The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter
|
|
PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm ) : System | ||
PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm, |
Existing SecureRandom constructor.
|
|
PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm, |
Base constructor.
|
|
PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm, bool withIntegrityPacket ) : System | ||
PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm, bool withIntegrityPacket, |
Creates a cipher stream which will have an integrity packet associated with it.
|
Method | Description | |
---|---|---|
AddCheckSum ( byte sessionInfo ) : void | ||
CreateSessionInfo ( SymmetricKeyAlgorithmTag algorithm, |
||
Open ( Stream outStr, long length, byte buffer ) : Stream |
If buffer is non null stream assumed to be partial, otherwise the length will be used to output a fixed length packet. The stream created can be closed off by either calling Close() on the stream or Close() on the generator. Closing the returned stream does not close off the Stream parameter
|
public AddMethod ( char passPhrase, HashAlgorithmTag s2kDigest ) : void | ||
passPhrase | char | |
s2kDigest | HashAlgorithmTag | |
return | void |
public Open ( Stream outStr, byte buffer ) : Stream | ||
outStr | Stream | |
buffer | byte | |
return | Stream |
public Open ( Stream outStr, long length ) : Stream | ||
outStr | Stream | |
length | long | |
return | Stream |
public PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm ) : System | ||
encAlgorithm | SymmetricKeyAlgorithmTag | |
return | System |
public PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm, |
||
encAlgorithm | SymmetricKeyAlgorithmTag | The symmetric algorithm to use. |
rand | Source of randomness. | |
return | System |
public PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm, |
||
encAlgorithm | SymmetricKeyAlgorithmTag | The symmetric algorithm to use. |
rand | Source of randomness. | |
oldFormat | bool | PGP 2.6.x compatibility required. |
return | System |
public PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm, bool withIntegrityPacket ) : System | ||
encAlgorithm | SymmetricKeyAlgorithmTag | |
withIntegrityPacket | bool | |
return | System |
public PgpEncryptedDataGenerator ( SymmetricKeyAlgorithmTag encAlgorithm, bool withIntegrityPacket, |
||
encAlgorithm | SymmetricKeyAlgorithmTag | |
withIntegrityPacket | bool | |
rand | ||
return | System |