diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-08-20 14:12:44 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-08-20 14:18:06 +0200 |
commit | c59bb02c794294e62da3259561e439ab78e04560 (patch) | |
tree | edb06817e9bdea49456c1aeaf7edef1a7cf0e546 /guide | |
parent | f39af0ed274f85fab408000d68a9395f40b392c2 (diff) |
openpgp: Make choice of AEAD algorithm explicit.
- Automatically using AEAD if all recipients claim support is a
policy decision, which we'd rather avoid in the openpgp crate.
- Fixes #293.
Diffstat (limited to 'guide')
-rw-r--r-- | guide/src/chapter_02.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guide/src/chapter_02.md b/guide/src/chapter_02.md index 06d38342..7794436e 100644 --- a/guide/src/chapter_02.md +++ b/guide/src/chapter_02.md @@ -57,7 +57,7 @@ fn main() { # &[], // No symmetric encryption. # &[recipient], # EncryptionMode::ForTransport, -# None)?; +# None, None)?; # # // Emit a literal data packet. # let mut literal_writer = LiteralWriter::new( @@ -191,7 +191,7 @@ fn generate() -> openpgp::Result<openpgp::TPK> { # &[], // No symmetric encryption. # &[recipient], # EncryptionMode::ForTransport, -# None)?; +# None, None)?; # # // Emit a literal data packet. # let mut literal_writer = LiteralWriter::new( @@ -325,7 +325,7 @@ fn encrypt(sink: &mut Write, plaintext: &str, recipient: &openpgp::TPK) &[], // No symmetric encryption. &[recipient], EncryptionMode::ForTransport, - None)?; + None, None)?; // Emit a literal data packet. let mut literal_writer = LiteralWriter::new( @@ -473,7 +473,7 @@ Decrypted data can be read from this using [`io::Read`]. # &[], // No symmetric encryption. # &[recipient], # EncryptionMode::ForTransport, -# None)?; +# None, None)?; # # // Emit a literal data packet. # let mut literal_writer = LiteralWriter::new( |