Crypto++ 动态链接编译与实例测试
2016-04-15 14:20
176 查看
测试用例的来源《Crypto++入门学习笔记(DES、AES、RSA、SHA-256)》
解决在初始化加密器对象时触发异常的问题:
CryptoPP::AESEncryption aesEncryptor;
//触发“Cryptographic algorithms are disabled after a power-up self test failed”异常,解决办法是cryptdll库的pch.h文件中添加如下宏定义:
#define CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 0
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 == 1
#pragma message("FIPS Compliance is Enabled")
#elif CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 == 0
#pragma message("FIPS Compliance is Disabled")
#else
#pragma message("FIPS Compliance is Ambiguous")
#endif
该问题的详细信息可以参考如下两个链接:
https://groups.google.com/forum/#!topic/cryptopp-users/8-2NLhbHFfk
https://groups.google.com/forum/#!topic/cryptopp-users/VgbrrrNjv14
解决在初始化加密器对象时触发异常的问题:
CryptoPP::AESEncryption aesEncryptor;
//触发“Cryptographic algorithms are disabled after a power-up self test failed”异常,解决办法是cryptdll库的pch.h文件中添加如下宏定义:
#define CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 0
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 == 1
#pragma message("FIPS Compliance is Enabled")
#elif CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2 == 0
#pragma message("FIPS Compliance is Disabled")
#else
#pragma message("FIPS Compliance is Ambiguous")
#endif
该问题的详细信息可以参考如下两个链接:
https://groups.google.com/forum/#!topic/cryptopp-users/8-2NLhbHFfk
https://groups.google.com/forum/#!topic/cryptopp-users/VgbrrrNjv14
相关文章推荐
- 读Atlantis页面有感。。
- 将kerkee导入已有的工程里的方法
- VS2010如何进行调试项目更清晰
- LeetCode 288. Unique Word Abbreviation(单词缩写)
- MD5加密之加密字符串
- Pluzzes - Heavier ball
- 两种高性能I/O设计模式(Reactor/Proactor)的比较
- linux 获取文件大小
- 深入理解JavaScript没有重载的原因:
- HDFS源码分析之UnderReplicatedBlocks(一)
- c语言的学生成绩管理系统
- Android5.0系统的优缺点
- yii2查询数据倒序显示
- 掌握VS2010调试 -- 入门指南
- Go项目的目录结构
- 【算法】—-贪心算法(背包问题)
- MD5加密之提取文件的MD5特征码
- bitbucket 源代码托管
- 关于H5里的API,上传图片预览功能
- 第2章 操作系统的发展历史