diff --git a/rdrand.cpp b/rdrand.cpp index f3b586a9..979e6503 100644 --- a/rdrand.cpp +++ b/rdrand.cpp @@ -154,7 +154,7 @@ inline void RDRAND32(void* output) while(!_rdrand32_step(reinterpret_cast(output))) {} #else // RDRAND not detected at compile time, or no suitable compiler found - CRYPTOPP_UNUSED(output); + CRYPTOPP_UNUSED(output); throw NotImplemented("RDRAND: failed to find an implementation"); #endif } @@ -196,7 +196,7 @@ inline void RDRAND64(void* output) while(!_rdrand64_step(reinterpret_cast(output))) {} #else // RDRAND not detected at compile time, or no suitable compiler found - CRYPTOPP_UNUSED(output); + CRYPTOPP_UNUSED(output); throw NotImplemented("RDRAND: failed to find an implementation"); #endif } @@ -251,7 +251,7 @@ void RDRAND::GenerateBlock(byte *output, size_t size) } #else // RDRAND not detected at compile time, or no suitable compiler found - CRYPTOPP_UNUSED(output); + CRYPTOPP_UNUSED(output); throw NotImplemented("RDRAND: failed to find a suitable implementation"); #endif } @@ -311,7 +311,7 @@ inline void RDSEED32(void* output) while(!_rdseed32_step(reinterpret_cast(output))) {} #else // RDSEED not detected at compile time, or no suitable compiler found - CRYPTOPP_UNUSED(output); + CRYPTOPP_UNUSED(output); throw NotImplemented("RDSEED: failed to find an implementation"); #endif } @@ -353,7 +353,7 @@ inline void RDSEED64(void* output) while(!_rdseed64_step(reinterpret_cast(output))) {} #else // RDSEED not detected at compile time, or no suitable compiler found - CRYPTOPP_UNUSED(output); + CRYPTOPP_UNUSED(output); throw NotImplemented("RDSEED: failed to find an implementation"); #endif } diff --git a/validat1.cpp b/validat1.cpp index 07a0a01a..22d9905f 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -833,11 +833,8 @@ bool TestRDRAND() bool entropy = true, compress = true, discard = true, crop = true; member_ptr rng; -#ifdef BLOCKING_RNG_AVAILABLE try {rng.reset(new RDRAND);} catch (const RDRAND_Err &) {} -#endif - if (rng.get()) { RDRAND& rdrand = dynamic_cast(*rng.get()); @@ -934,11 +931,8 @@ bool TestRDSEED() bool entropy = true, compress = true, discard = true, crop = true; member_ptr rng; -#ifdef BLOCKING_RNG_AVAILABLE try {rng.reset(new RDSEED);} catch (const RDSEED_Err &) {} -#endif - if (rng.get()) { RDSEED& rdseed = dynamic_cast(*rng.get());