精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
锐英源精品开源心得,转载请注明:“锐英源www.wisestudy.cn,孙老师作品,电话13803810136。”需要全文内容也请联系孙老师。
Crypto++ implements a large number of cryptographic schemes that have similar properties and behavior, but are largely independent from each other.
Crypto++实现了大量加密方案,虽然这些方案属性和行为类似,但是大部分也是按互相独立的机制来设计。
Consequentially, Crypto++ defines a number of common base classes from which most of the algorithm implementations inherit: you will encounter these classes in all programs that use Crypto++. Often, the headers in which these basic abstractions are declared do not have to be included explicitly, as they are automatically included in the more specific header files.
自然而然,Crypto++定义了一些常用基类,从这些基类里可以继承用上大部分运算实现:在编程使用Crypto++的过程中,你会经常遇到这些类。常见情况是,这些基本抽象类的头文件并没有直接声明包含,因为他们会被更具体的头文件所包含。
On the other hand, each separate algorithm that you need to implement is usually declared in its own header file that you need to include explicitly. Exactly which header file you need to include is sometimes obvious, and sometimes not. For the cases when it is not, this section describes the most important header files in Crypto++.
另外,每个要你去实现的独立运算,通常要它自己的头文件里声明,对于这样的头文件你需要显式地包含。具体要包含哪个头文件要根据情况来定。对于不需要包含的情形,本节描述了在Crypto++里最重要的头文件。
As a matter of convenience, we will divide Crypto++ header files into the following groups: 为了处理简便,分类如下:
Header file |
Description |
cryptlib.h |
Provides basic abstractions for the Crypto++ library. These include: Exception, BufferedTransformation, BlockTransformation, StreamCipher, RandomAccessStreamCipher, RandomNumberGenerator, HashModule, MessageAuthenticationCode, and public key crypto base classes.对Crypto++库提供了基础的抽象。包含有:异常、BufferedTransformation、BlockTransformation、StreamCipher、RandomAccessStreamCipher、RandomNumberGenerator、HashModule、MessageAuthenticationCode和公开密钥加密基类。 |
filters.h |
Provides additional input/output base classes (derived from BufferedTransformation): Filter and derivatives, Sink and derivatives, Source and derivatives.提供额外的输入/输出类(从BufferedTransformation派生):过滤及衍生系列、汇点及衍生系列和源及衍生系列。 |
oids.h |
Defines specific object identifiers (OIDs) that are needed by or can be used on various classes throughout the library.定义具体的对象标识(OID),贯穿整个库的不同类需要它,也有可能用到它。 |
files.h |
Defines classes FileStore, FileSource and FileSink (derived from Store, Source and Sink).定义类FileStore、FileSource和FileSink(分别从Store、Source和Sink派生) |
network.h |
Defines base classes NonblockingSource, NonblockingSink; base classes NetworkReceiver, NetworkSender; and finally, NetworkSource and NetworkSink.定义基类NonblockingSource和NonblockingSink;基类NetworkReceiver、NetworkSender;最终还有NetworkSource和NetworkSink。 |
socketft.h |
Encapsulates network sockets and provides Crypto++ source and sink classes for them. The following types are defined: Socket, SocketSource, SocketSink. Support for Berkeley-style as well as Windows-style sockets is provided.封装网络socket和提供socket相关的Crypto++源及汇类。下面的类型被定义:Socket、 SocketSource,和SocketSink,这些类支持Berkeley风格也支持Windows风格。 |