Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

fips140.h File Reference


Detailed Description

FIPS 140 related functions and classes.

Definition in file fips140.h.

#include "cryptlib.h"

Go to the source code of this file.

Classes

class  SelfTestFailure
 exception thrown when a crypto algorithm is used after a self test fails More...


Enumerations

enum  PowerUpSelfTestStatus { POWER_UP_SELF_TEST_NOT_DONE, POWER_UP_SELF_TEST_FAILED, POWER_UP_SELF_TEST_PASSED }
 enum values representing status of the power-up self test


Functions

bool FIPS_140_2_ComplianceEnabled ()
 returns whether FIPS 140-2 compliance features were enabled at compile time

void DoPowerUpSelfTest (const char *moduleFilename, const byte *expectedModuleSha1Digest)
 perform the power-up self test, and set the self test status

void SimulatePowerUpSelfTestFailure ()
 set the power-up self test status to POWER_UP_SELF_TEST_FAILED

PowerUpSelfTestStatus GetPowerUpSelfTestStatus ()
 return the current power-up self test status

bool PowerUpSelfTestInProgressOnThisThread ()
void SetPowerUpSelfTestInProgressOnThisThread (bool inProgress)
void SignaturePairwiseConsistencyTest (const PK_Signer &signer, const PK_Verifier &verifier)
void EncryptionPairwiseConsistencyTest (const PK_Encryptor &encryptor, const PK_Decryptor &decryptor)
void SignaturePairwiseConsistencyTest_FIPS_140_Only (const PK_Signer &signer, const PK_Verifier &verifier)
void EncryptionPairwiseConsistencyTest_FIPS_140_Only (const PK_Encryptor &encryptor, const PK_Decryptor &decryptor)


Generated on Sun Mar 14 20:44:29 2004 for Crypto++ by doxygen 1.3.6-20040222