summaryrefslogtreecommitdiff
path: root/src/gcrypt.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/gcrypt.h.in')
-rw-r--r--src/gcrypt.h.in48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
index 23b09690..f48f04fb 100644
--- a/src/gcrypt.h.in
+++ b/src/gcrypt.h.in
@@ -1722,54 +1722,6 @@ int gcry_is_secure (const void *a) _GCRY_GCC_ATTR_PURE;
/* Return true if Libgcrypt is in FIPS mode. */
#define gcry_fips_mode_active() !!gcry_control (GCRYCTL_FIPS_MODE_P, 0)
-/* DRBG input data structure for DRBG generate with additional information
- * string */
-struct gcry_drbg_gen
-{
- unsigned char *outbuf; /* output buffer for random numbers */
- unsigned int outlen; /* size of output buffer */
- struct gcry_drbg_string *addtl; /* input buffer for
- * additional information string */
-};
-
-/*
- * Concatenation Helper and string operation helper
- *
- * SP800-90A requires the concatenation of different data. To avoid copying
- * buffers around or allocate additional memory, the following data structure
- * is used to point to the original memory with its size. In addition, it
- * is used to build a linked list. The linked list defines the concatenation
- * of individual buffers. The order of memory block referenced in that
- * linked list determines the order of concatenation.
- */
-/* DRBG string definition */
-struct gcry_drbg_string
-{
- const unsigned char *buf;
- size_t len;
- struct gcry_drbg_string *next;
-};
-
-static inline void gcry_drbg_string_fill(struct gcry_drbg_string *string,
- const unsigned char *buf, size_t len)
-{
- string->buf = buf;
- string->len = len;
- string->next = NULL;
-}
-
-/* this is a wrapper function for users of libgcrypt */
-static inline void gcry_randomize_drbg(void *outbuf, size_t outlen,
- enum gcry_random_level level,
- struct gcry_drbg_string *addtl)
-{
- struct gcry_drbg_gen genbuf;
- genbuf.outbuf = (unsigned char *)outbuf;
- genbuf.outlen = outlen;
- genbuf.addtl = addtl;
- gcry_randomize(&genbuf, 0, level);
-}
-
#if 0 /* (Keep Emacsens' auto-indent happy.) */
{