Crypto++: a C++ Class Library of Cryptographic Primitives
Version 3.0 1/1/1999
This library includes:
MD2, MD5, SHA-1, HAVAL, Tiger, RIPE-MD160, MD5-MAC, HMAC, XOR-MAC, DES,
IDEA, WAKE, 3-WAY, TEA, SAFER, Blowfish, SHARK, GOST, CAST-128, Square,
Diamond2, Sapphire, RC2, RC5, RC6, MARS, SEAL, Luby-Rackoff, MDC,
various encryption modes (CFB, CBC, OFB, counter), DH, DH2, MQV, DSA,
NR, ElGamal, LUC, LUCDIF, LUCELG, Rabin, RW, RSA, BlumGoldwasser,
elliptic curve cryptosystems, BBS, DEFLATE compression,
Shamir's secret sharing scheme, Rabin's information dispersal scheme.
There are also various miscellanous modules such as base 64 coding and
32-bit CRC.
You are welcome to use it for any purpose without paying me, but see
license.txt for the fine print.
Crypto++ has been compiled successfully with MSVC 6.0 and EGCS/cygwin32
1.1 on Windows NT 5.0 beta 2.
To compile Crypto++ with MSVC, open the "cryptest.dsw" workspace file
and build the "cryptest" project. This will compile Crypto++ as a static
library and also build the test driver. Run the test driver and make sure
the validation suite passes. Then to use the library simply insert the
"cryptlib.dsp" project file into your own application workspace as a
dependent project.
A makefile is included for you to compile Crypto++ with EGCS. But first
you may have to make some changes to the system header files to work around
problems in the EGCS 1.1 release. Please check the Crypto++ homepage
(see below) for the latest updates.
Right now there is very little documentation for Crypto++. If you are
not familiar with cryptography, I suggest that you read an introductory
text (such as Bruce Schneier's _Applied Cryptography_) before attempting
to use this library. Otherwise, you should start by looking at
cryptlib.h, which contains the main abstract base classes and their
descriptions, and test.cpp, which contains sample/test code.
Finally, a note on object ownership: If a constructor for A takes
a pointer to an object B (except primitive types such as int and char),
then A owns B and will delete B at A's destruction. If a constructor
for A takes a reference to an object B, then the caller retains ownership
of B and should not destroy it until A no longer needs it.
Good luck, and feel free to e-mail me at weidai@eskimo.com if you have
any problems. Also, check http://www.eskimo.com/~weidai/cryptlib.html
for updates and new versions.
Wei Dai
History
1.0 - First public release. Withdrawn at the request of RSA DSI.
- included Blowfish, BBS, DES, DH, Diamond, DSA, ElGamal, IDEA,
MD5, RC4, RC5, RSA, SHA, WAKE, secret sharing, DEFLATE compression
- had a big bug in the RSA key generation code.
1.1 - Removed RSA, RC4, RC5
- Disabled calls to RSAREF's non-public functions
- Minor bugs fixed
2.0 - a completely new, faster multiprecision integer class
- added MD5-MAC, HAVAL, 3-WAY, TEA, SAFER, LUC, Rabin, BlumGoldwasser,
elliptic curve algorithms
- added the Lucas strong probable primality test
- ElGamal encryption and signature schemes modified to avoid weaknesses
- Diamond changed to Diamond2 because of key schedule weakness
- fixed bug in WAKE key setup
- SHS class renamed to SHA
- lots of miscellaneous optimizations
2.1 - added Tiger, HMAC, GOST, RIPE-MD160, LUCELG, LUCDIF, XOR-MAC,
OAEP, PSSR, SHARK
- added precomputation to DH, ElGamal, DSA, and elliptic curve algorithms
- added back RC5 and a new RSA
- optimizations in elliptic curves over GF(p)
- changed Rabin to use OAEP and PSSR
- changed many classes to allow copy constructors to work correctly
- improved exception generation and handling
2.2 - added SEAL, CAST-128, Square
- fixed bug in HAVAL (padding problem)
- fixed bug in triple-DES (decryption order was reversed)
- fixed bug in RC5 (couldn't handle key length not a multiple of 4)
- changed HMAC to conform to RFC-2104 (which is not compatible
with the original HMAC)
- changed secret sharing and information dispersal to use GF(2^32)
instead of GF(65521)
- removed zero knowledge prover/verifier for graph isomorphism
- removed several utility classes in favor of the C++ standard library
2.3 - ported to EGCS
- fixed incomplete workaround of min/max conflict in MSVC
3.0 - placed all names into the "CryptoPP" namespace
- added MD2, RC2, RC6, MARS, RW, DH2, MQV, ECDHC
- added abstract base classes PK_SimpleKeyAgreementDomain and
PK_AuthenticatedKeyAgreementDomain
- changed DH and LUCDIF to implement the PK_SimpleKeyAgreementDomain
interface and to perform domain parameter and key validation
- changed interfaces of PK_Signer and PK_Verifier to sign and verify
messages instead of message digests
- changed OAEP to conform to PKCS#1 v2.0
- changed benchmark code to produce HTML tables as output
- changed PSSR to track IEEE P1363a
- renamed ElGamalSignature to NR and changed it to track IEEE P1363
- renamed ECKEP to ECMQVC and changed it to track IEEE P1363
- renamed several other classes for clarity
- removed support for calling RSAREF
- removed option to compile old SHA
- removed option not to throw exceptions
没有合适的资源?快使用搜索试试~ 我知道了~
c++ 几百个加密算法源代码
共234个文件
cpp:89个
h:87个
dat:52个
2星 需积分: 13 20 下载量 192 浏览量
2009-02-28
23:21:10
上传
评论
收藏 381KB RAR 举报
温馨提示
c++ 几百个加密算法源代码,让你一次下个够 仔细研究收益很多哦
资源推荐
资源详情
资源评论
收起资源包目录
c++ 几百个加密算法源代码 (234个子文件)
diamondt.cpp 148KB
sharkbox.cpp 119KB
integer.cpp 50KB
tigertab.cpp 44KB
squaretb.cpp 32KB
cast128s.cpp 29KB
ztrees.cpp 28KB
zinflate.cpp 26KB
nbtheory.cpp 25KB
bench.cpp 24KB
validat1.cpp 23KB
zdeflate.cpp 22KB
diamond.cpp 18KB
validat2.cpp 16KB
validat3.cpp 16KB
haval.cpp 15KB
gf2n.cpp 15KB
bfinit.cpp 14KB
polynomi.cpp 13KB
des.cpp 12KB
test.cpp 12KB
luc.cpp 11KB
cast.cpp 10KB
ripemd.cpp 10KB
eccrypto.cpp 9KB
algebra.cpp 9KB
sha.cpp 8KB
marss.cpp 7KB
safer.cpp 6KB
idea.cpp 6KB
mars.cpp 6KB
dessp.cpp 6KB
ecp.cpp 6KB
dsa.cpp 6KB
square.cpp 5KB
shark.cpp 5KB
md5mac.cpp 5KB
default.cpp 5KB
queue.cpp 5KB
rw.cpp 5KB
secshare.cpp 5KB
ec2n.cpp 5KB
cbc.cpp 5KB
md2.cpp 4KB
elgamal.cpp 4KB
sapphire.cpp 4KB
md5.cpp 4KB
nr.cpp 4KB
pkcspad.cpp 4KB
3way.cpp 4KB
crc.cpp 4KB
cryptlib.cpp 4KB
seal.cpp 4KB
gzip.cpp 4KB
wake.cpp 4KB
gost.cpp 4KB
rabin.cpp 4KB
blumgold.cpp 4KB
rc2.cpp 3KB
rsa.cpp 3KB
rc6.cpp 3KB
forkjoin.cpp 3KB
mqv.cpp 3KB
modes.cpp 3KB
oaep.cpp 3KB
rng.cpp 3KB
rc5.cpp 3KB
pubkey.cpp 3KB
base64.cpp 2KB
tiger.cpp 2KB
blowfish.cpp 2KB
iterhash.cpp 2KB
modexppc.cpp 2KB
randpool.cpp 2KB
asn.cpp 2KB
dh.cpp 2KB
zbits.cpp 2KB
eprecomp.cpp 2KB
files.cpp 2KB
gf2_32.cpp 2KB
tea.cpp 2KB
misc.cpp 2KB
secsplit.cpp 1KB
filters.cpp 1KB
blumshub.cpp 1KB
gf256.cpp 626B
dh2.cpp 579B
hex.cpp 455B
pch.cpp 18B
dsa1024.dat 9KB
descert.dat 9KB
rsa2048.dat 2KB
nr2048.dat 2KB
elgc2048.dat 2KB
rsa512a.dat 1KB
rabi2048.dat 1KB
luc2048.dat 1KB
rw2048.dat 1KB
blum2048.dat 1KB
rsa1024.dat 1KB
共 234 条
- 1
- 2
- 3
资源评论
- 呵__呵2012-09-04vs2010 打不开 不给力啊
yexiaoya
- 粉丝: 15
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功