From 5a5e909dd1cc5949d1995a7bf48e7ad11ee40e45 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 12 Aug 2020 11:02:51 +0200 Subject: openpgp: Improve SKESK?::with_password. - Previously, the symmetric algorithm argument conflated the algorithm to protect the payload and the one to protect the session key. Fix that by adding an argument to make the choice explicit. --- openpgp/src/message/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'openpgp/src/message/mod.rs') diff --git a/openpgp/src/message/mod.rs b/openpgp/src/message/mod.rs index 92346701..a436fde0 100644 --- a/openpgp/src/message/mod.rs +++ b/openpgp/src/message/mod.rs @@ -1056,6 +1056,7 @@ mod tests { let sk = crate::crypto::SessionKey::new(cipher.key_size().unwrap()); #[allow(deprecated)] packets.push(SKESK4::with_password( + cipher, cipher, S2K::Simple { hash: HashAlgorithm::SHA256 }, &sk, -- cgit v1.2.3