diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-06-24 14:41:22 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-06-24 17:57:53 +0200 |
commit | 23bb80eb6dd540d7af47235c6ba0ca3565c3c68f (patch) | |
tree | aedbf58a5a101983fd1f00d485d3edb9377487c7 /openpgp/src/crypto/asymmetric.rs | |
parent | 23385c6f5f1195adca113365e3857a6d8fc9d6b0 (diff) |
openpgp: Rename functions to 'encrypt' and 'decrypt'.
Diffstat (limited to 'openpgp/src/crypto/asymmetric.rs')
-rw-r--r-- | openpgp/src/crypto/asymmetric.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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!( |