Fabcoin Core  0.16.2
P2P Digital Currency
Macros | Functions | Variables
fips140.cpp File Reference
#include "pch.h"
#include "fips140.h"
#include "misc.h"
#include "trdlocal.h"
Include dependency graph for fips140.cpp:

Go to the source code of this file.

Macros

#define CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2   0
 

Functions

bool FIPS_140_2_ComplianceEnabled ()
 Determines whether the library provides FIPS validated cryptography. More...
 
void SimulatePowerUpSelfTestFailure ()
 Sets the power-up self test status to POWER_UP_SELF_TEST_FAILED. More...
 
PowerUpSelfTestStatus CRYPTOPP_API GetPowerUpSelfTestStatus ()
 Provides the current power-up self test status. More...
 
bool PowerUpSelfTestInProgressOnThisThread ()
 
void SetPowerUpSelfTestInProgressOnThisThread (bool inProgress)
 
void EncryptionPairwiseConsistencyTest_FIPS_140_Only (const PK_Encryptor &encryptor, const PK_Decryptor &decryptor)
 
void SignaturePairwiseConsistencyTest_FIPS_140_Only (const PK_Signer &signer, const PK_Verifier &verifier)
 

Variables

PowerUpSelfTestStatus g_powerUpSelfTestStatus = POWER_UP_SELF_TEST_NOT_DONE
 

Macro Definition Documentation

#define CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2   0

Definition at line 16 of file fips140.cpp.

Function Documentation

void EncryptionPairwiseConsistencyTest_FIPS_140_Only ( const PK_Encryptor encryptor,
const PK_Decryptor decryptor 
)

Definition at line 70 of file fips140.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool FIPS_140_2_ComplianceEnabled ( )

Determines whether the library provides FIPS validated cryptography.

Returns
true if FIPS 140-2 validated features were enabled at compile time.

true if FIPS 140-2 validated features were enabled at compile time, false otherwise.

Note
FIPS mode is enabled at compile time. A program or other module cannot arbitrarily enter or exit the mode.

Definition at line 29 of file fips140.cpp.

Here is the caller graph for this function:

PowerUpSelfTestStatus CRYPTOPP_API GetPowerUpSelfTestStatus ( )

Provides the current power-up self test status.

Returns
the current power-up self test status

Definition at line 39 of file fips140.cpp.

Here is the caller graph for this function:

bool PowerUpSelfTestInProgressOnThisThread ( )

Definition at line 52 of file fips140.cpp.

Here is the caller graph for this function:

void SetPowerUpSelfTestInProgressOnThisThread ( bool  inProgress)

Definition at line 62 of file fips140.cpp.

Here is the caller graph for this function:

void SignaturePairwiseConsistencyTest_FIPS_140_Only ( const PK_Signer signer,
const PK_Verifier verifier 
)

Definition at line 78 of file fips140.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SimulatePowerUpSelfTestFailure ( )

Sets the power-up self test status to POWER_UP_SELF_TEST_FAILED.

Sets the power-up self test status to POWER_UP_SELF_TEST_FAILED to simulate failure.

Definition at line 34 of file fips140.cpp.

Here is the caller graph for this function:

Variable Documentation

Definition at line 27 of file fips140.cpp.