Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.1 KiB

  1. #ifndef CRYPTOPP_VALIDATE_H
  2. #define CRYPTOPP_VALIDATE_H
  3. #include "cryptlib.h"
  4. bool ValidateAll(bool thorough);
  5. bool TestSettings();
  6. bool TestOS_RNG();
  7. bool TestAutoSeeded();
  8. #if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
  9. bool TestRDRAND();
  10. bool TestRDSEED();
  11. #endif
  12. bool ValidateBaseCode();
  13. bool ValidateCRC32();
  14. bool ValidateAdler32();
  15. bool ValidateMD2();
  16. bool ValidateMD4();
  17. bool ValidateMD5();
  18. bool ValidateSHA();
  19. bool ValidateSHA2();
  20. bool ValidateTiger();
  21. bool ValidateRIPEMD();
  22. bool ValidatePanama();
  23. bool ValidateWhirlpool();
  24. bool ValidateHMAC();
  25. bool ValidateTTMAC();
  26. bool ValidateCipherModes();
  27. bool ValidatePBKDF();
  28. bool ValidateHKDF();
  29. bool ValidateDES();
  30. bool ValidateIDEA();
  31. bool ValidateSAFER();
  32. bool ValidateRC2();
  33. bool ValidateARC4();
  34. bool ValidateRC5();
  35. bool ValidateBlowfish();
  36. bool ValidateThreeWay();
  37. bool ValidateGOST();
  38. bool ValidateSHARK();
  39. bool ValidateSEAL();
  40. bool ValidateCAST();
  41. bool ValidateSquare();
  42. bool ValidateSKIPJACK();
  43. bool ValidateRC6();
  44. bool ValidateMARS();
  45. bool ValidateRijndael();
  46. bool ValidateTwofish();
  47. bool ValidateSerpent();
  48. bool ValidateSHACAL2();
  49. bool ValidateCamellia();
  50. bool ValidateSalsa();
  51. bool ValidateSosemanuk();
  52. bool ValidateVMAC();
  53. bool ValidateCCM();
  54. bool ValidateGCM();
  55. bool ValidateCMAC();
  56. bool ValidateBBS();
  57. bool ValidateDH();
  58. bool ValidateMQV();
  59. bool ValidateRSA();
  60. bool ValidateElGamal();
  61. bool ValidateDLIES();
  62. bool ValidateNR();
  63. bool ValidateDSA(bool thorough);
  64. bool ValidateLUC();
  65. bool ValidateLUC_DL();
  66. bool ValidateLUC_DH();
  67. bool ValidateXTR_DH();
  68. bool ValidateRabin();
  69. bool ValidateRW();
  70. //bool ValidateBlumGoldwasser();
  71. bool ValidateECP();
  72. bool ValidateEC2N();
  73. bool ValidateECDSA();
  74. bool ValidateESIGN();
  75. #if !defined(NDEBUG)
  76. bool TestPolynomialMod2();
  77. #endif
  78. // Coverity findings
  79. template <class T, bool NON_NEGATIVE>
  80. T StringToValue(const std::string& str);
  81. template<>
  82. int StringToValue<int, true>(const std::string& str);
  83. // Functions that need a RNG; uses AES inf CFB mode with Seed.
  84. CryptoPP::RandomNumberGenerator & GlobalRNG();
  85. bool RunTestDataFile(const char *filename, const CryptoPP::NameValuePairs &overrideParameters=CryptoPP::g_nullNameValuePairs, bool thorough=true);
  86. #endif