summaryrefslogtreecommitdiff
path: root/src/cipher-proto.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-08-26 11:13:57 +0000
committerWerner Koch <wk@gnupg.org>2008-08-26 11:13:57 +0000
commitd1e87a8bf19a041e3fe6144213b081f6374ba06b (patch)
tree34c4d1fb30a94d07aa61092b15af2beff1291db4 /src/cipher-proto.h
parent7b86a3aa51c48d332a2379c6471541168a4e532f (diff)
downloadlibgcrypt-d1e87a8bf19a041e3fe6144213b081f6374ba06b.tar.gz
Implemented transient-key flag as requested by the GNUNet folks.
Documentation cleanups. Removed FIPS logging unless in double verbose state.
Diffstat (limited to 'src/cipher-proto.h')
-rw-r--r--src/cipher-proto.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cipher-proto.h b/src/cipher-proto.h
index ae5492b4..4ca76b55 100644
--- a/src/cipher-proto.h
+++ b/src/cipher-proto.h
@@ -39,6 +39,16 @@ typedef gpg_err_code_t (*selftest_func_t)
(int algo, selftest_report_func_t report);
+/* An extended type of the generate function. */
+typedef gcry_err_code_t (*pk_ext_generate_t)
+ (int algo,
+ unsigned int nbits,
+ unsigned long use_e,
+ unsigned int keygen_flags,
+ gcry_mpi_t *skey,
+ gcry_mpi_t **retfactors);
+
+
/* Extra module specification structures. These are used for internal
modules which provide more functions than available through the
public algorithm register APIs. */
@@ -55,6 +65,7 @@ typedef struct md_extra_spec
typedef struct pk_extra_spec
{
selftest_func_t selftest;
+ pk_ext_generate_t ext_generate;
} pk_extra_spec_t;