diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-04-08 11:23:14 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-04-08 11:23:14 +0200 |
commit | ffe1585191449a0c426569fe60654a20e594250d (patch) | |
tree | 0f4bbd9a1eff9bf3275f2c44f14aa258e489651a /openpgp/src/serialize/stream.rs | |
parent | a1b06c5bc4b755c3e9d7a2e79ff20c216258fdcc (diff) |
openpgp: Rename Encryptor::sym_algo to symmetric_algo.
- This aligns it with AED::symmetric_algo and SKESK::symmetric_algo.
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r-- | openpgp/src/serialize/stream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs index c2d8ef12..68ebe842 100644 --- a/openpgp/src/serialize/stream.rs +++ b/openpgp/src/serialize/stream.rs @@ -2103,14 +2103,14 @@ impl<'a> Encryptor<'a> { /// let message = /// Encryptor::with_passwords(message, /// vec!["совершенно секретно".into()]) - /// .sym_algo(SymmetricAlgorithm::AES128) + /// .symmetric_algo(SymmetricAlgorithm::AES128) /// .build()?; /// let mut message = LiteralWriter::new(message).build()?; /// message.write_all(b"Hello world.")?; /// message.finalize()?; /// # Ok(()) } /// ``` - pub fn sym_algo(mut self, algo: SymmetricAlgorithm) -> Self { + pub fn symmetric_algo(mut self, algo: SymmetricAlgorithm) -> Self { self.sym_algo = algo; self } |