summaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-08-20 14:12:44 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-08-20 14:18:06 +0200
commitc59bb02c794294e62da3259561e439ab78e04560 (patch)
treeedb06817e9bdea49456c1aeaf7edef1a7cf0e546 /guide
parentf39af0ed274f85fab408000d68a9395f40b392c2 (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.md8
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(