summaryrefslogtreecommitdiffstats
path: root/g10/pkglue.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2020-05-22 04:58:21 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2020-05-22 04:58:21 +0200
commit510bda7d3754801be18a592694578589fe503fb8 (patch)
tree137bcc8132c82bb34dd8bb265e9b69753ed3957b /g10/pkglue.h
parentgpg: Clean up ECDH code path (4). (diff)
downloadgnupg2-510bda7d3754801be18a592694578589fe503fb8.tar.xz
gnupg2-510bda7d3754801be18a592694578589fe503fb8.zip
gpg: Clean up ECDH code path (5).
* g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Now, it's only for encrytion. (pk_ecdh_decrypt): Use prepare_ecdh_with_shared_point and move decrypt code path in original pk_ecdh_encrypt_with_shared_point here. * g10/pkglue.h (pk_ecdh_encrypt_with_shared_point): Change API. * g10/pkglue.c (pk_encrypt): Follow the change. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/pkglue.h')
-rw-r--r--g10/pkglue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/pkglue.h b/g10/pkglue.h
index 77a380191..57a963353 100644
--- a/g10/pkglue.h
+++ b/g10/pkglue.h
@@ -36,7 +36,7 @@ int pk_check_secret_key (pubkey_algo_t algo, gcry_mpi_t *skey);
gcry_mpi_t pk_ecdh_default_params (unsigned int qbits);
gpg_error_t pk_ecdh_generate_ephemeral_key (gcry_mpi_t *pkey, gcry_mpi_t *r_k);
gpg_error_t pk_ecdh_encrypt_with_shared_point
-/* */ (int is_encrypt, gcry_mpi_t shared_mpi,
+/* */ (gcry_mpi_t shared_mpi,
const byte pk_fp[MAX_FINGERPRINT_LEN],
gcry_mpi_t data, gcry_mpi_t *pkey,
gcry_mpi_t *out);