aboutsummaryrefslogtreecommitdiffstats
path: root/g10/pkglue.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-01-25 16:48:51 +0000
committerWerner Koch <[email protected]>2011-01-25 16:48:51 +0000
commit302c5a826c0fd0b2aab85ad3c287b65429db2066 (patch)
tree34becb4ea9fcf7c31c138dfad5b71d4b5133d29c /g10/pkglue.h
parentEditorial cleanups of keygen.c (diff)
downloadgnupg-302c5a826c0fd0b2aab85ad3c287b65429db2066.tar.gz
gnupg-302c5a826c0fd0b2aab85ad3c287b65429db2066.zip
More ECDH code cleanups
Diffstat (limited to 'g10/pkglue.h')
-rw-r--r--g10/pkglue.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/pkglue.h b/g10/pkglue.h
index 0ceb43f55..b1cfbe507 100644
--- a/g10/pkglue.h
+++ b/g10/pkglue.h
@@ -20,6 +20,7 @@
#ifndef GNUPG_G10_PKGLUE_H
#define GNUPG_G10_PKGLUE_H
+/*-- pkglue.c --*/
gcry_mpi_t mpi_from_sexp (gcry_sexp_t sexp, const char * item);
int pk_verify (int algo, gcry_mpi_t hash, gcry_mpi_t *data,
@@ -29,12 +30,13 @@ int pk_encrypt (int algo, gcry_mpi_t *resarr, gcry_mpi_t data,
gcry_mpi_t *pkey);
int pk_check_secret_key (int algo, gcry_mpi_t *skey);
+
+/*-- ecdh.c --*/
+byte *pk_ecdh_default_params (unsigned int qbits, size_t *sizeout);
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);
#endif /*GNUPG_G10_PKGLUE_H*/