diff options
author | Werner Koch <wk@gnupg.org> | 2008-08-29 15:40:24 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-08-29 15:40:24 +0000 |
commit | 936035b491fab2e32f651ed201bc10a6731ebe05 (patch) | |
tree | 0669310cd08811970b466f1308c37b63a0834602 /src/cipher-proto.h | |
parent | 78a1f612bf65d3c1a445c43b456cb28e98a3a6ea (diff) | |
download | libgcrypt-936035b491fab2e32f651ed201bc10a6731ebe05.tar.gz |
Overhauled the keygrip computation.
Diffstat (limited to 'src/cipher-proto.h')
-rw-r--r-- | src/cipher-proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cipher-proto.h b/src/cipher-proto.h index 4ca76b55..39a91012 100644 --- a/src/cipher-proto.h +++ b/src/cipher-proto.h @@ -48,6 +48,10 @@ typedef gcry_err_code_t (*pk_ext_generate_t) gcry_mpi_t *skey, gcry_mpi_t **retfactors); +/* The type is used to compute the keygrip. */ +typedef gpg_err_code_t (*pk_comp_keygrip_t) + (gcry_md_hd_t md, gcry_sexp_t keyparm); + /* Extra module specification structures. These are used for internal modules which provide more functions than available through the @@ -66,6 +70,7 @@ typedef struct pk_extra_spec { selftest_func_t selftest; pk_ext_generate_t ext_generate; + pk_comp_keygrip_t comp_keygrip; } pk_extra_spec_t; |