mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Fix with FIPS build and RNG_MAX_BLOCK_LEN define location.
This commit is contained in:
@@ -35,6 +35,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Maximum generate block length */
|
||||||
|
#define RNG_MAX_BLOCK_LEN (0x10000)
|
||||||
|
|
||||||
#ifndef HAVE_FIPS /* avoid redefining structs and macros */
|
#ifndef HAVE_FIPS /* avoid redefining structs and macros */
|
||||||
#if defined(WOLFSSL_FORCE_RC4_DRBG) && defined(NO_RC4)
|
#if defined(WOLFSSL_FORCE_RC4_DRBG) && defined(NO_RC4)
|
||||||
#error Cannot have WOLFSSL_FORCE_RC4_DRBG and NO_RC4 defined.
|
#error Cannot have WOLFSSL_FORCE_RC4_DRBG and NO_RC4 defined.
|
||||||
@@ -68,8 +71,6 @@ typedef struct OS_Seed {
|
|||||||
#endif
|
#endif
|
||||||
} OS_Seed;
|
} OS_Seed;
|
||||||
|
|
||||||
/* Maximum generate block length */
|
|
||||||
#define RNG_MAX_BLOCK_LEN (0x10000)
|
|
||||||
|
|
||||||
#if (defined(HAVE_HASHDRBG) || defined(NO_RC4)) && !defined(CUSTOM_RAND_GENERATE_BLOCK)
|
#if (defined(HAVE_HASHDRBG) || defined(NO_RC4)) && !defined(CUSTOM_RAND_GENERATE_BLOCK)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user