mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
FIPSv2: RNG Update
1. Put the SeedTest function in the HASH_DRBG scope.
This commit is contained in:
@@ -630,8 +630,6 @@ static int Hash_DRBG_Uninstantiate(DRBG* drbg)
|
|||||||
|
|
||||||
return (compareSum == 0) ? DRBG_SUCCESS : DRBG_FAILURE;
|
return (compareSum == 0) ? DRBG_SUCCESS : DRBG_FAILURE;
|
||||||
}
|
}
|
||||||
#endif /* HAVE_HASHDRBG */
|
|
||||||
/* End NIST DRBG Code */
|
|
||||||
|
|
||||||
|
|
||||||
int wc_RNG_TestSeed(const byte* seed, word32 seedSz)
|
int wc_RNG_TestSeed(const byte* seed, word32 seedSz)
|
||||||
@@ -655,6 +653,8 @@ int wc_RNG_TestSeed(const byte* seed, word32 seedSz)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif /* HAVE_HASHDRBG */
|
||||||
|
/* End NIST DRBG Code */
|
||||||
|
|
||||||
|
|
||||||
static int _InitRng(WC_RNG* rng, byte* nonce, word32 nonceSz,
|
static int _InitRng(WC_RNG* rng, byte* nonce, word32 nonceSz,
|
||||||
|
Reference in New Issue
Block a user