mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 01:49:41 +00:00
Clear unreachable code warnings under VC++
This commit is contained in:
parent
1a5155fd96
commit
348e8e3b30
12
fips140.cpp
12
fips140.cpp
@ -47,31 +47,35 @@ bool PowerUpSelfTestInProgressOnThisThread()
|
||||
{
|
||||
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
||||
return s_inProgress;
|
||||
#endif
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void SetPowerUpSelfTestInProgressOnThisThread(bool inProgress)
|
||||
{
|
||||
CRYPTOPP_UNUSED(inProgress);
|
||||
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
||||
s_inProgress = inProgress;
|
||||
#else
|
||||
CRYPTOPP_UNUSED(inProgress);
|
||||
#endif
|
||||
}
|
||||
|
||||
void EncryptionPairwiseConsistencyTest_FIPS_140_Only(const PK_Encryptor &encryptor, const PK_Decryptor &decryptor)
|
||||
{
|
||||
CRYPTOPP_UNUSED(encryptor), CRYPTOPP_UNUSED(decryptor);
|
||||
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
||||
EncryptionPairwiseConsistencyTest(encryptor, decryptor);
|
||||
#else
|
||||
CRYPTOPP_UNUSED(encryptor), CRYPTOPP_UNUSED(decryptor);
|
||||
#endif
|
||||
}
|
||||
|
||||
void SignaturePairwiseConsistencyTest_FIPS_140_Only(const PK_Signer &signer, const PK_Verifier &verifier)
|
||||
{
|
||||
CRYPTOPP_UNUSED(signer), CRYPTOPP_UNUSED(verifier);
|
||||
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
||||
SignaturePairwiseConsistencyTest(signer, verifier);
|
||||
#else
|
||||
CRYPTOPP_UNUSED(signer), CRYPTOPP_UNUSED(verifier);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user