mirror of https://github.com/wolfSSL/wolfssl.git
Removed Intel RD from Hash DRBG
parent
994ffa96e0
commit
3c55971ffa
|
@ -426,12 +426,6 @@ int wc_InitRng(RNG* rng)
|
||||||
{
|
{
|
||||||
int ret = BAD_FUNC_ARG;
|
int ret = BAD_FUNC_ARG;
|
||||||
|
|
||||||
#ifdef HAVE_INTEL_RDGEN
|
|
||||||
wc_InitRng_IntelRD() ;
|
|
||||||
rng->drbg = NULL ;
|
|
||||||
if(IS_INTEL_RDRAND)return 0 ;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (rng != NULL) {
|
if (rng != NULL) {
|
||||||
byte entropy[ENTROPY_NONCE_SZ];
|
byte entropy[ENTROPY_NONCE_SZ];
|
||||||
|
|
||||||
|
@ -482,11 +476,6 @@ int wc_RNG_GenerateBlock(RNG* rng, byte* output, word32 sz)
|
||||||
if (rng == NULL || output == NULL || sz > MAX_REQUEST_LEN)
|
if (rng == NULL || output == NULL || sz > MAX_REQUEST_LEN)
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
|
||||||
#ifdef HAVE_INTEL_RDGEN
|
|
||||||
if(IS_INTEL_RDRAND)
|
|
||||||
return wc_GenerateRand_IntelRD(NULL, output, sz) ;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (rng->status != DRBG_OK)
|
if (rng->status != DRBG_OK)
|
||||||
return RNG_FAILURE_E;
|
return RNG_FAILURE_E;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue