| 46 | } |
| 47 | |
| 48 | Algorithm::Algorithm(bool checkSelfTestStatus) |
| 49 | { |
| 50 | if (checkSelfTestStatus && FIPS_140_2_ComplianceEnabled()) |
| 51 | { |
| 52 | if (GetPowerUpSelfTestStatus() == POWER_UP_SELF_TEST_NOT_DONE && !PowerUpSelfTestInProgressOnThisThread()) |
| 53 | throw SelfTestFailure("Cryptographic algorithms are disabled before the power-up self tests are performed."); |
| 54 | |
| 55 | if (GetPowerUpSelfTestStatus() == POWER_UP_SELF_TEST_FAILED) |
| 56 | throw SelfTestFailure("Cryptographic algorithms are disabled after a power-up self test failed."); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void SimpleKeyingInterface::SetKey(const byte *key, size_t length, const NameValuePairs ¶ms) |
| 61 | { |
nothing calls this directly
no test coverage detected