diff options
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r-- | openpgp/src/packet/pkesk.rs | 5 |
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()), }; |