5 #ifndef CRYPTOPP_IMPORTS 14 #ifndef CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 15 #define CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 0 18 #if (CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 && !defined(OS_RNG_AVAILABLE)) 19 #error FIPS 140-2 compliance requires the availability of OS provided RNG. 26 return CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2;
36 return g_powerUpSelfTestStatus;
39 #if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 43 static bool s_inProgress =
false;
46 bool PowerUpSelfTestInProgressOnThisThread()
48 #if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 54 void SetPowerUpSelfTestInProgressOnThisThread(
bool inProgress)
56 CRYPTOPP_UNUSED(inProgress);
57 #if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 58 s_inProgress = inProgress;
64 CRYPTOPP_UNUSED(encryptor), CRYPTOPP_UNUSED(decryptor);
65 #if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 66 EncryptionPairwiseConsistencyTest(encryptor, decryptor);
70 void SignaturePairwiseConsistencyTest_FIPS_140_Only(
const PK_Signer &signer,
const PK_Verifier &verifier)
72 CRYPTOPP_UNUSED(signer), CRYPTOPP_UNUSED(verifier);
73 #if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 74 SignaturePairwiseConsistencyTest(signer, verifier);
Utility functions for the Crypto++ library.
Interface for public-key signers.
Interface for public-key encryptors.
The self tests were executed via DoPowerUpSelfTest() or DoDllPowerUpSelfTest(), but the result was fa...
bool FIPS_140_2_ComplianceEnabled()
Determines whether the library provides FIPS validated cryptography.
Interface for public-key decryptors.
void SimulatePowerUpSelfTestFailure()
Sets the power-up self test status to POWER_UP_SELF_TEST_FAILED.
PowerUpSelfTestStatus GetPowerUpSelfTestStatus()
Provides the current power-up self test status.
The self tests have not been performed.
Interface for public-key signature verifiers.
Classes and functions for the FIPS 140-2 validated library.
PowerUpSelfTestStatus
Status of the power-up self test.
Crypto++ library namespace.