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
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 67106d6e63ae5aff91e8fc7072def4c027546d39 Mon Sep 17 00:00:00 2001
|
|
From: Stephan Mueller <smueller@chronox.de>
|
|
Date: Sat, 8 Mar 2014 23:15:43 +0100
|
|
Subject: [PATCH v3 5/7] Function definitions for gcry_control callbacks
|
|
To: gcrypt-devel@gnupg.org
|
|
Cc: jeremy.wayne.powell@gmail.com
|
|
|
|
The function definitions implemented in drbg.c which are used for
|
|
gcry_control.
|
|
|
|
Changes v3:
|
|
|
|
* Remove of set_entropy function call
|
|
|
|
Signed-off-by: Stephan Mueller <smueller@chronox.de>
|
|
---
|
|
diff --git a/random/random.h b/random/random.h
|
|
index 2bc8cab..343b149 100644
|
|
--- a/random/random.h
|
|
+++ b/random/random.h
|
|
@@ -54,7 +54,9 @@ gcry_err_code_t _gcry_random_run_external_test (void *context,
|
|
char *buffer, size_t buflen);
|
|
void _gcry_random_deinit_external_test (void *context);
|
|
|
|
-
|
|
+/*-- drbg.c --*/
|
|
+gpg_err_code_t _gcry_drbg_reinit (u_int32_t flags, struct drbg_string *pers,
|
|
+ struct drbg_test_data *test_data);
|
|
/*-- rndegd.c --*/
|
|
gpg_error_t _gcry_rndegd_set_socket_name (const char *name);
|
|
|