From 23bb80eb6dd540d7af47235c6ba0ca3565c3c68f Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 24 Jun 2019 14:41:22 +0200 Subject: openpgp: Rename functions to 'encrypt' and 'decrypt'. --- openpgp/src/crypto/asymmetric.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'openpgp/src/crypto/asymmetric.rs') diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs index 539a9dc5..6857d231 100644 --- a/openpgp/src/crypto/asymmetric.rs +++ b/openpgp/src/crypto/asymmetric.rs @@ -235,9 +235,8 @@ impl Decryptor for KeyPair { (PublicKey::ECDH{ .. }, mpis::SecretKey::ECDH { .. }, mpis::Ciphertext::ECDH { .. }) => - ::crypto::ecdh::unwrap_session_key(&self.public, - &self.secret, - ciphertext)?, + ::crypto::ecdh::decrypt(&self.public, &self.secret, + ciphertext)?, (public, secret, ciphertext) => return Err(Error::InvalidOperation(format!( -- cgit v1.2.3