forked from pool/libgcrypt
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
|
From bb91250be3eeb2309285fa9865166cb381104c81 Mon Sep 17 00:00:00 2001
|
||
|
From: Stephan Mueller <smueller@chronox.de>
|
||
|
Date: Sat, 8 Mar 2014 23:14:16 +0100
|
||
|
Subject: [PATCH v3 3/7] Function definitions of interfaces for random.c
|
||
|
To: gcrypt-devel@gnupg.org
|
||
|
Cc: jeremy.wayne.powell@gmail.com
|
||
|
|
||
|
Specify the function definitions to be integrated into the common
|
||
|
libgcrypt RNG code.
|
||
|
|
||
|
Signed-off-by: Stephan Mueller <smueller@chronox.de>
|
||
|
---
|
||
|
diff --git a/random/rand-internal.h b/random/rand-internal.h
|
||
|
index 79b23ac..a169a4b 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_drbg_selftest (selftest_report_func_t report);
|
||
|
|
||
|
/*-- random-system.c --*/
|
||
|
void _gcry_rngsystem_initialize (int full);
|