summaryrefslogtreecommitdiffstats
path: root/g10/pkglue.h
diff options
context:
space:
mode:
authorAndrey Jivsov <openpgp@brainhub.org>2011-01-11 05:24:14 +0100
committerAndrey Jivsov <openpgp@brainhub.org>2011-01-11 05:24:14 +0100
commit5761a9ba74e41f52660e20a1de700fe784c97832 (patch)
tree801bdb9203e0426dfc351399db679cce7920bde6 /g10/pkglue.h
parentFix bug #1311. (diff)
downloadgnupg2-5761a9ba74e41f52660e20a1de700fe784c97832.tar.xz
gnupg2-5761a9ba74e41f52660e20a1de700fe784c97832.zip
'g10/gpg2 --encrypt --debug 15 -r ecdsa -a -o _e.asc _' and 'g10/gpg2 --debug 15 _e.asc', as well as decoding of an old message posted on https://sites.google.com/site/brainhub/pgpecckeys work.
This is the milestone 2 that brings in ECDH support from http://code.google.com/p/gnupg-ecc/source/detail?r=15 . This corresponds to the commit 899386826c85f1e757e75bcc5d5b2159d05676a0 in libgcrypt
Diffstat (limited to 'g10/pkglue.h')
-rw-r--r--g10/pkglue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/pkglue.h b/g10/pkglue.h
index 0d5194818..a1c821dcd 100644
--- a/g10/pkglue.h
+++ b/g10/pkglue.h
@@ -33,8 +33,8 @@ int pk_decrypt (int algo, gcry_mpi_t *result, const byte fp[MAX_FINGERPRINT_LEN]
gcry_mpi_t *skey);
int pk_check_secret_key (int algo, gcry_mpi_t *skey);
-int pk_ecdh_encrypt (gcry_mpi_t * resarr, const byte pk_fp[MAX_FINGERPRINT_LEN], gcry_mpi_t data, gcry_mpi_t * pkey);
-int pk_ecdh_decrypt (gcry_mpi_t * result, const byte sk_fp[MAX_FINGERPRINT_LEN], gcry_mpi_t *data, gcry_mpi_t * skey);
+int pk_ecdh_encrypt (gcry_mpi_t * resarr, const byte pk_fp[MAX_FINGERPRINT_LEN], gcry_mpi_t data, gcry_mpi_t * pkey);
+int pk_ecdh_decrypt (gcry_mpi_t * result, const byte sk_fp[MAX_FINGERPRINT_LEN], gcry_mpi_t data, gcry_mpi_t shared, gcry_mpi_t * skey);
gcry_mpi_t pk_ecdh_default_params_to_mpi( int qbits );
byte *pk_ecdh_default_params( int qbits, size_t *sizeout );