summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/pkesk.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/packet/pkesk.rs
parent23385c6f5f1195adca113365e3857a6d8fc9d6b0 (diff)
openpgp: Rename functions to 'encrypt' and 'decrypt'.
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r--openpgp/src/packet/pkesk.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs
index 1f638da6..40332c45 100644
--- a/openpgp/src/packet/pkesk.rs
+++ b/openpgp/src/packet/pkesk.rs
@@ -98,9 +98,8 @@ impl PKESK3 {
}
},
- ECDH => {
- ecdh::wrap_session_key(recipient, &psk)?
- }
+ ECDH => ecdh::encrypt(recipient, &psk)?,
+
algo =>
return Err(Error::UnsupportedPublicKeyAlgorithm(algo).into()),
};