[PATCH 3/8] Function definitions of interfaces for random.c

Stephan Mueller smueller at chronox.de
Sun Mar 2 14:07:56 CET 2014


Specify the function definitions to be integrated into the common
libgcrypt RNG code.

Signed-off-by: Stephan Mueller <smueller at chronox.de>
---
 random/rand-internal.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/random/rand-internal.h b/random/rand-internal.h
index 79b23ac..d4c9013 100644
--- a/random/rand-internal.h
+++ b/random/rand-internal.h
@@ -88,6 +88,15 @@ gcry_err_code_t _gcry_rngfips_run_external_test (void *context,
                                                  char *buffer, size_t buflen);
 void _gcry_rngfips_deinit_external_test (void *context);
 
+/* drbg-gcry.h */
+void _gcry_drbg_init(int full);
+void _gcry_drbg_close_fds(void);
+void _gcry_drbg_dump_stats(void);
+int _gcry_drbg_is_faked (void);
+gcry_error_t _gcry_drng_add_bytes (const void *buf, size_t buflen, int quality);
+void _gcry_drbg_randomize (void *buffer, size_t length,
+			   enum gcry_random_level level);
+gcry_error_t _gcry_rngfips_selftest (selftest_report_func_t report);
 
 /*-- random-system.c --*/
 void _gcry_rngsystem_initialize (int full);
-- 
1.8.5.3





More information about the Gcrypt-devel mailing list