From 3c55971ffa3ffeca17cdd2be991fb1a096bccdfe Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Wed, 25 Mar 2015 18:31:08 +0900 Subject: [PATCH] Removed Intel RD from Hash DRBG --- wolfcrypt/src/random.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 435046c2c..507d165a8 100755 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -426,12 +426,6 @@ int wc_InitRng(RNG* rng) { 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) { 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) 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) return RNG_FAILURE_E;