diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-03-18 14:04:23 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-03-18 14:47:44 +0100 |
commit | 97cdc3062d88401dcc849c3f4e093a4f7b1b1226 (patch) | |
tree | 0859e06007b25e9cabbf4e9bfd7a2487ea2e8585 /openpgp/examples/generate-encrypt-decrypt.rs | |
parent | 01db33b99244294702f0f58f06c6736becee28db (diff) |
openpgp: Make cipher algorithm configurable in streaming Encryptor.
- Fixes #208.
Diffstat (limited to 'openpgp/examples/generate-encrypt-decrypt.rs')
-rw-r--r-- | openpgp/examples/generate-encrypt-decrypt.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/examples/generate-encrypt-decrypt.rs b/openpgp/examples/generate-encrypt-decrypt.rs index 3fb00103..369e82ba 100644 --- a/openpgp/examples/generate-encrypt-decrypt.rs +++ b/openpgp/examples/generate-encrypt-decrypt.rs @@ -46,7 +46,8 @@ fn encrypt(sink: &mut Write, plaintext: &str, recipient: &openpgp::TPK) let encryptor = Encryptor::new(message, &[], // No symmetric encryption. &[recipient], - EncryptionMode::ForTransport)?; + EncryptionMode::ForTransport, + None)?; // Emit a literal data packet. let mut literal_writer = LiteralWriter::new( |