aboutsummaryrefslogtreecommitdiffstats
path: root/common/openpgpdefs.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-04-16 10:39:24 +0000
committerWerner Koch <[email protected]>2021-04-16 10:49:37 +0000
commit2f2bdd9c0894eb43f719da8b529b4c7a46f742a0 (patch)
treef3234f34ef48d43247206dc3b12671e799c6a1a5 /common/openpgpdefs.h
parentpo: Update Italian Translation. (diff)
downloadgnupg-2f2bdd9c0894eb43f719da8b529b4c7a46f742a0.tar.gz
gnupg-2f2bdd9c0894eb43f719da8b529b4c7a46f742a0.zip
common: New module to compute openpgp fingerprints
* common/openpgp-fpr.c: New. * common/Makefile.am (common_sources): Add it. -- This function is targeted to handle keys on smartcards. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/openpgpdefs.h')
-rw-r--r--common/openpgpdefs.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/common/openpgpdefs.h b/common/openpgpdefs.h
index 5ab45debd..625747983 100644
--- a/common/openpgpdefs.h
+++ b/common/openpgpdefs.h
@@ -213,6 +213,26 @@ compress_algo_t;
/*-- openpgp-s2k.c --*/
unsigned char encode_s2k_iterations (int iterations);
+/*-- openpgp-fpr.c --*/
+gpg_error_t compute_openpgp_fpr (int keyversion, int pgpalgo,
+ unsigned long timestamp,
+ gcry_buffer_t *iov, int iovcnt,
+ unsigned char *result,
+ unsigned int *r_resultlen);
+gpg_error_t compute_openpgp_fpr_rsa (int keyversion,
+ unsigned long timestamp,
+ const unsigned char *m, unsigned int mlen,
+ const unsigned char *e, unsigned int elen,
+ unsigned char *result,
+ unsigned int *r_resultlen);
+gpg_error_t compute_openpgp_fpr_ecc (int keyversion,
+ unsigned long timestamp,
+ const char *curvename, int for_encryption,
+ const unsigned char *q, unsigned int qlen,
+ const unsigned char *kdf,
+ unsigned int kdflen,
+ unsigned char *result,
+ unsigned int *r_resultlen);
/*-- openpgp-oid.c --*/
pubkey_algo_t map_gcry_pk_to_openpgp (enum gcry_pk_algos algo);