⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fips140.h

📁 hashish-1.1b加密算法库c++
💻 H
字号:
#ifndef CRYPTOPP_FIPS140_H#define CRYPTOPP_FIPS140_H/*! \file	FIPS 140 related functions and classes.*/#include "cryptlib.h"NAMESPACE_BEGIN(CryptoPP)//! exception thrown when a crypto algorithm is used after a self test failsclass SelfTestFailure : public Exception{public:	explicit SelfTestFailure(const std::string &s) : Exception(OTHER_ERROR, s) {}};//! returns whether FIPS 140-2 compliance features were enabled at compile timebool FIPS_140_2_ComplianceEnabled();//! enum values representing status of the power-up self testenum PowerUpSelfTestStatus {POWER_UP_SELF_TEST_NOT_DONE, POWER_UP_SELF_TEST_FAILED, POWER_UP_SELF_TEST_PASSED};//! perform the power-up self test, and set the self test statusvoid DoPowerUpSelfTest(const char *moduleFilename, const byte *expectedModuleSha1Digest);//! set the power-up self test status to POWER_UP_SELF_TEST_FAILEDvoid SimulatePowerUpSelfTestFailure();//! return the current power-up self test statusPowerUpSelfTestStatus GetPowerUpSelfTestStatus();// this is used by Algorithm constructor to allow Algorithm objects to be constructed for the self testbool 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);NAMESPACE_END#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -