MCPcopy Create free account
hub / github.com/c3d/tao3D / Algorithm

Method Algorithm

libcryptopp/cryptopp/cryptlib.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48Algorithm::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
60void SimpleKeyingInterface::SetKey(const byte *key, size_t length, const NameValuePairs &params)
61{

Callers

nothing calls this directly

Tested by

no test coverage detected