1 #ifndef CRYPTOPP_VALIDATE_H
2 #define CRYPTOPP_VALIDATE_H
8 bool ValidateAll(
bool thorough);
11 bool TestAutoSeeded();
12 bool TestAutoSeededX917();
14 #if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
19 bool ValidateBaseCode();
21 bool ValidateCRC32C();
22 bool ValidateAdler32();
29 bool ValidateRIPEMD();
30 bool ValidatePanama();
31 bool ValidateWhirlpool();
32 bool ValidateBLAKE2s();
33 bool ValidateBLAKE2b();
38 bool ValidateCipherModes();
49 bool ValidateBlowfish();
50 bool ValidateThreeWay();
55 bool ValidateSquare();
56 bool ValidateSKIPJACK();
59 bool ValidateRijndael();
60 bool ValidateTwofish();
61 bool ValidateSerpent();
62 bool ValidateSHACAL2();
63 bool ValidateCamellia();
65 bool ValidateSosemanuk();
77 bool ValidateElGamal();
80 bool ValidateDSA(
bool thorough);
82 bool ValidateLUC_DL();
83 bool ValidateLUC_DH();
84 bool ValidateXTR_DH();
95 bool TestPolynomialMod2();
96 bool TestHuffmanCodes();
100 template <
class T,
bool NON_NEGATIVE>
101 T StringToValue(
const std::string& str);
105 int StringToValue<int, true>(
const std::string& str);
112 : m_out(out), m_fmt(out.flags()), m_prec(out.precision())
118 m_out.precision(m_prec);
124 std::ios_base::fmtflags m_fmt;
125 std::streamsize m_prec;
129 CryptoPP::RandomNumberGenerator & GlobalRNG();
131 bool RunTestDataFile(
const char *filename,
const CryptoPP::NameValuePairs &overrideParameters=
CryptoPP::g_nullNameValuePairs,
bool thorough=
true);