summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-03-28 14:27:48 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-03-28 14:39:32 +0100
commitf27cebdc0df36f147e177111b51f20175cf460d7 (patch)
tree00ebc97cce8e5d49a3d9b86ba7d29537a31de947 /tool
parent00de588babe4efbdec52e34035252c86ee310961 (diff)
openpgp: Rename methods related to symmetric algorithms.
- Fixes #223.
Diffstat (limited to 'tool')
-rw-r--r--tool/src/commands/dump.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/src/commands/dump.rs b/tool/src/commands/dump.rs
index da092a52..d8faaca8 100644
--- a/tool/src/commands/dump.rs
+++ b/tool/src/commands/dump.rs
@@ -61,7 +61,7 @@ pub fn dump(input: &mut io::Read, output: &mut io::Write, mpis: bool, hex: bool,
Packet::AED(_) if sk.is_some() => {
let sk = sk.as_ref().unwrap();
let algo = if let Packet::AED(ref aed) = pp.packet {
- aed.cipher()
+ aed.symmetric_algo()
} else {
unreachable!()
};
@@ -387,7 +387,7 @@ impl PacketDumper {
AED(ref a) => {
writeln!(output, "AEAD Encrypted Data Packet")?;
writeln!(output, "{} Version: {}", i, a.version())?;
- writeln!(output, "{} Cipher: {}", i, a.cipher())?;
+ writeln!(output, "{} Cipher: {}", i, a.symmetric_algo())?;
writeln!(output, "{} AEAD: {}", i, a.aead())?;
writeln!(output, "{} Chunk size: {}", i, a.chunk_size())?;
writeln!(output, "{} IV: {}", i, hex::encode(a.iv()))?;