Fix with FIPS build and RNG_MAX_BLOCK_LEN define location.
This commit is contained in:
parent
f539a60a40
commit
5569dfe838
@ -35,6 +35,9 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Maximum generate block length */
|
||||
#define RNG_MAX_BLOCK_LEN (0x10000)
|
||||
|
||||
#ifndef HAVE_FIPS /* avoid redefining structs and macros */
|
||||
#if defined(WOLFSSL_FORCE_RC4_DRBG) && defined(NO_RC4)
|
||||
#error Cannot have WOLFSSL_FORCE_RC4_DRBG and NO_RC4 defined.
|
||||
@ -68,8 +71,6 @@ typedef struct OS_Seed {
|
||||
#endif
|
||||
} OS_Seed;
|
||||
|
||||
/* Maximum generate block length */
|
||||
#define RNG_MAX_BLOCK_LEN (0x10000)
|
||||
|
||||
#if (defined(HAVE_HASHDRBG) || defined(NO_RC4)) && !defined(CUSTOM_RAND_GENERATE_BLOCK)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user