Crypto++
5.6.5
Free C++ class library of cryptographic schemes
|
Go to the documentation of this file.
11 #ifndef CRYPTOPP_FIPS140_H
12 #define CRYPTOPP_FIPS140_H
57 CRYPTOPP_DLL
void CRYPTOPP_API
DoPowerUpSelfTest(
const char *moduleFilename,
const byte *expectedModuleMac);
75 #ifndef CRYPTOPP_DOXYGEN_PROCESSING
89 CRYPTOPP_DLL
bool CRYPTOPP_API
IntegrityCheckModule(
const char *moduleFilename,
const byte *expectedModuleMac,
SecByteBlock *pActualMac = NULL,
unsigned long *pMacFileLocation = NULL);
91 #ifndef CRYPTOPP_DOXYGEN_PROCESSING
93 bool PowerUpSelfTestInProgressOnThisThread();
95 void SetPowerUpSelfTestInProgressOnThisThread(
bool inProgress);
100 void SignaturePairwiseConsistencyTest_FIPS_140_Only(
const PK_Signer &signer,
const PK_Verifier &verifier);
109 #define CRYPTOPP_DUMMY_DLL_MAC "MAC_51f34b8db820ae8"
Interface for public-key encryptors.
bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModuleMac, SecByteBlock *pActualMac=NULL, unsigned long *pMacFileLocation=NULL)
Verifies the MAC on the module.
Classes and functions for secure memory allocations.
Interface for public-key decryptors.
bool FIPS_140_2_ComplianceEnabled()
Determines whether the library provides FIPS validated cryptography.
Interface for public-key signers.
Base class for all exceptions thrown by the library.
@ POWER_UP_SELF_TEST_FAILED
The self tests were executed via DoPowerUpSelfTest() or DoDllPowerUpSelfTest(), but the result was fa...
PowerUpSelfTestStatus GetPowerUpSelfTestStatus()
Provides the current power-up self test status.
MessageAuthenticationCode * NewIntegrityCheckingMAC()
Class object that calculates the MAC on the module.
PowerUpSelfTestStatus
Status of the power-up self test.
void DoDllPowerUpSelfTest()
Performs the power-up self test on the DLL.
void DoPowerUpSelfTest(const char *moduleFilename, const byte *expectedModuleMac)
Performs the power-up self test.
void SimulatePowerUpSelfTestFailure()
Sets the power-up self test status to POWER_UP_SELF_TEST_FAILED.
Interface for public-key signature verifiers.
Crypto++ library namespace.
@ POWER_UP_SELF_TEST_NOT_DONE
The self tests have not been performed.
Interface for message authentication codes.
@ POWER_UP_SELF_TEST_PASSED
The self tests were executed via DoPowerUpSelfTest() or DoDllPowerUpSelfTest(), and the result was su...
Abstract base classes that provide a uniform interface to this library.