forked from pool/libgcrypt
Marcus Meissner
0ee4a0f87b
- add support for SP800-90A DRBG (fate#316929, bnc#856312) * patches by Stephan Mueller (http://www.chronox.de/drbg.html): 0001-SP800-90A-Deterministic-Random-Bit-Generator.patch.bz2 0002-Compile-DRBG.patch 0003-Function-definitions-of-interfaces-for-random.c.patch 0004-Invoke-DRBG-from-common-libgcrypt-RNG-code.patch 0005-Function-definitions-for-gcry_control-callbacks.patch 0006-DRBG-specific-gcry_control-requests.patch 0007-User-interface-to-DRBG.patch * only after 13.1 (the patches need libgpg-error 1.13) - drop libgcrypt-fips-allow-legacy.patch (not needed and wasn't applied anyway) OBS-URL: https://build.opensuse.org/request/show/232937 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=51
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);
|