如何在Visual Studio 2010中安装Crypto ++? [英] How do I install Crypto++ in Visual Studio 2010?

查看:710
本文介绍了如何在Visual Studio 2010中安装Crypto ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了 http://www.cryptopp.com/#download 5.6.1,没有任何线索在此刻。我是一个总的noob,需要良好的指示。感谢。

I downloaded http://www.cryptopp.com/#download 5.6.1 and have no clue that to do at this point. I am a total noob and need good instructions. thanks.

推荐答案

直接从readme(可以在这里找到 Crypto++ Svn Trunk ):

Directly from the readme (Which can be found here Crypto++ Svn Trunk):

* MSVC特定信息*

在Windows上,Crypto ++可以编译成3种形式:静态库
包括所有算法,只有FIPS Approved算法的DLL,
a静态库,只有算法不在DLL中。
(FIPS批准意味着根据FIPS 140-2标准批准。)
DLL可以单独使用,也可以与静态库的第二个
形式一起使用。包括MSVC项目文件以构建
所有三种形式,并且还包括使用三种形式
中的每一种的示例应用程序。

On Windows, Crypto++ can be compiled into 3 forms: a static library including all algorithms, a DLL with only FIPS Approved algorithms, and a static library with only algorithms not in the DLL. (FIPS Approved means Approved according to the FIPS 140-2 standard.) The DLL may be used by itself, or it may be used together with the second form of the static library. MSVC project files are included to build all three forms, and sample applications using each of the three forms are also included.

编译Crypto ++使用MSVC,打开cryptest.dsw(对于MSVC 6和MSVC .NET
2003)或cryptest.sln(对于MSVC 2005 - 2010)工作空间文件,并构建一个或
以下项目:

To compile Crypto++ with MSVC, open the "cryptest.dsw" (for MSVC 6 and MSVC .NET 2003) or "cryptest.sln" (for MSVC 2005 - 2010) workspace file and build one or more of the following projects:


  • cryptopp - 这将构建DLL。请注意,如果您希望使用Crypto ++
    作为FIPS验证模块,则必须使用已经过
    FIPS验证过程的预构建DLL,而不是构建您自己的。

  • dlltest - 这将构建一个仅使用DLL的示例应用程序。

  • cryptest非DLL导入配置 - 这将构建完整的静态库
    ,完整测试驱动程序。

  • cryptest DLL-导入配置 - 这将构建一个静态库,其中包含
    只有不在DLL中的算法,以及使用
    的完整测试驱动程序

  • cryptopp - This builds the DLL. Please note that if you wish to use Crypto++ as a FIPS validated module, you must use a pre-built DLL that has undergone the FIPS validation process instead of building your own.
  • dlltest - This builds a sample application that only uses the DLL.
  • cryptest Non-DLL-Import Configuration - This builds the full static library along with a full test driver.
  • cryptest DLL-Import Configuration - This builds a static library containing only algorithms not in the DLL, along with a full test driver that uses both the DLL and the static library.

要在应用程序中使用Crypto ++ DLL,#includedll.h b $ b任何其他Crypto ++头文件,并将DLL放在与
您的.exe文件相同的目录中。 dll.h包括#pragma注释(lib,cryptopp)
,因此您不必在项目
设置中显式地列出导入库。要使用Crypto ++的静态库形式,使cryptlib
项目成为应用程序项目的依赖项,或者将其指定为
,以便在项目设置中链接一个附加库。
在这两种情况下,你应该检查编译器选项
确保库和你的应用程序使用相同的C ++
运行时库和调用约定。

To use the Crypto++ DLL in your application, #include "dll.h" before including any other Crypto++ header files, and place the DLL in the same directory as your .exe file. dll.h includes the line #pragma comment(lib, "cryptopp") so you don't have to explicitly list the import library in your project settings. To use a static library form of Crypto++, make the "cryptlib" project a dependency of your application project, or specify it as an additional library to link with in your project settings. In either case you should check the compiler options to make sure that the library and your application are using the same C++ run-time libraries and calling conventions.

如果您有任何问题,随时问我,我将更新anwser与我的回答

If you have any questions feel free to ask and i'll update the anwser with my responses

这篇关于如何在Visual Studio 2010中安装Crypto ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆