summaryrefslogtreecommitdiff
path: root/src/cipher-proto.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-11-05 17:21:57 +0000
committerWerner Koch <wk@gnupg.org>2008-11-05 17:21:57 +0000
commit76116202872239eaa02a92f08a2f5bd69325debc (patch)
tree5f7c0b6ec158567b38497bcea6edf06bc68e9d11 /src/cipher-proto.h
parent179d9f61f703cbfccd171257c390cfa197723be9 (diff)
downloadlibgcrypt-76116202872239eaa02a92f08a2f5bd69325debc.tar.gz
Add a method to disable the weak key detection.
Add a method to return the current input block. Use this in the FIPS driver.
Diffstat (limited to 'src/cipher-proto.h')
-rw-r--r--src/cipher-proto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cipher-proto.h b/src/cipher-proto.h
index 43ed0886..975a2a11 100644
--- a/src/cipher-proto.h
+++ b/src/cipher-proto.h
@@ -55,6 +55,10 @@ typedef gcry_err_code_t (*pk_ext_generate_t)
typedef gpg_err_code_t (*pk_comp_keygrip_t)
(gcry_md_hd_t md, gcry_sexp_t keyparm);
+/* The type used to convey additional information to a cipher. */
+typedef gpg_err_code_t (*cipher_set_extra_info_t)
+ (void *c, int what, const void *buffer, size_t buflen);
+
/* Extra module specification structures. These are used for internal
modules which provide more functions than available through the
@@ -62,6 +66,7 @@ typedef gpg_err_code_t (*pk_comp_keygrip_t)
typedef struct cipher_extra_spec
{
selftest_func_t selftest;
+ cipher_set_extra_info_t set_extra_info;
} cipher_extra_spec_t;
typedef struct md_extra_spec