summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/asymmetric.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-06-24 14:41:22 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-06-24 17:57:53 +0200
commit23bb80eb6dd540d7af47235c6ba0ca3565c3c68f (patch)
treeaedbf58a5a101983fd1f00d485d3edb9377487c7 /openpgp/src/crypto/asymmetric.rs
parent23385c6f5f1195adca113365e3857a6d8fc9d6b0 (diff)
openpgp: Rename functions to 'encrypt' and 'decrypt'.
Diffstat (limited to 'openpgp/src/crypto/asymmetric.rs')
-rw-r--r--openpgp/src/crypto/asymmetric.rs5
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!(