aboutsummaryrefslogtreecommitdiffstats
path: root/g10/pubkey-enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/pubkey-enc.c')
-rw-r--r--g10/pubkey-enc.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/g10/pubkey-enc.c b/g10/pubkey-enc.c
index 9ec86df3e..38353c812 100644
--- a/g10/pubkey-enc.c
+++ b/g10/pubkey-enc.c
@@ -278,20 +278,11 @@ get_it (ctrl_t ctrl,
if (sk->pubkey_algo == PUBKEY_ALGO_ECDH)
{
- gcry_mpi_t shared_mpi;
gcry_mpi_t decoded;
/* At the beginning the frame are the bytes of shared point MPI. */
- err = gcry_mpi_scan (&shared_mpi, GCRYMPI_FMT_USG, frame, nframe, NULL);
- if (err)
- {
- err = gpg_error (GPG_ERR_WRONG_SECKEY);
- goto leave;
- }
-
err = pk_ecdh_decrypt (&decoded, fp, enc->data[1]/*encr data as an MPI*/,
- shared_mpi, sk->pkey);
- mpi_release (shared_mpi);
+ frame, nframe, sk->pkey);
if(err)
goto leave;