From 6ac1e46a1fb01f01705b67dd553d5ba317b1dc3e Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 18 Nov 2015 15:32:28 -0500 Subject: Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 (Coverity rollup) --- validate.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'validate.h') diff --git a/validate.h b/validate.h index 7be0fe50..1dfda737 100644 --- a/validate.h +++ b/validate.h @@ -7,10 +7,13 @@ bool ValidateAll(bool thorough); bool TestSettings(); bool TestOS_RNG(); bool TestAutoSeeded(); + +#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64) bool TestRDRAND(); bool TestRDSEED(); -bool ValidateBaseCode(); +#endif +bool ValidateBaseCode(); bool ValidateCRC32(); bool ValidateAdler32(); bool ValidateMD2(); @@ -79,7 +82,19 @@ bool ValidateEC2N(); bool ValidateECDSA(); bool ValidateESIGN(); +#if !defined(NDEBUG) +bool TestPolynomialMod2(); +#endif + +// Coverity findings +template +T StringToValue(const std::string& str); +template<> +int StringToValue(const std::string& str); + +// Functions that need a RNG; uses AES inf CFB mode with Seed. CryptoPP::RandomNumberGenerator & GlobalRNG(); + bool RunTestDataFile(const char *filename, const CryptoPP::NameValuePairs &overrideParameters=CryptoPP::g_nullNameValuePairs, bool thorough=true); #endif -- cgit v1.2.1