Cryptix JCE Provider (for JDK 1.4, 1.3, 1.2 and 1.1.x)
DESCRIPTION
-----------
The Cryptix JCE Provider is a cryptography plugin for Sun Microsystems'
Java Cryptography Extensions (JCE) framework.
OVERVIEW
--------
The Cryptix JCE includes:
FEATURES
--------
Digital Signatures:
RSASSA-PSS (with choice of MD2, MD4, MD5, RIPEMD-128, RIPEMD-160, SHA-1,
SHA-256, SHA-384, SHA-512 or Tiger hash algorithms)
NOTE: The hash function you choose when you instantiate RSASSA-PSS is used
for both message hashing and for the Mask Generation Function (MGF1).
It is presently not possible to use one hash function for message
hashing and another for MGF1.
RSASSA-PKCS1 (with MD4, MD5, RIPEMD-128, RIPEMD-160 or SHA-1)
Hash Functions:
MD2
MD4
MD5
RIPEMD-128
RIPEMD-160
SHA-0
SHA-1
SHA-256
SHA-384
SHA-512
Tiger
Public Key Crypto:
RSASSA-OAEP (with choice of MD2, MD4, MD5, RIPEMD-128, RIPEMD-160, SHA-1,
SHA-256, SHA-384, SHA-512 or Tiger hash algorithms)
RSASSA-PKCS1
Secure Random Numbers (RNG)
On UNIX systems with the CryptixRandom provider installed, SecureRandom makes
use of the system RNG (/dev/random) if present. This is essential because the
RNG built into the JVM is slow and possibly not as secure.
Note that Apple got it right on their port of the 1.3 JVM on OS X. The Apple
port uses /dev/random by default. This functionality can be managed by
changing the securerandom.source property in the java.security file.
Symmetric Ciphers:
Each of the ciphers listed below is available in CBC, CFB, ECB, OFB and
OpenPGP CFB modes with a choice of 'no padding' or PKCS #5 padding.
Name Free? Key Size Block Comments
----------------------------------------------------------------------------
AES yes 128/192/256 128 Successor of DES, recommended
for new applications
Blowfish yes 32 - 448 64 Very low key agility :-(
CAST5 yes ?
DES yes 56 64 Generally considered insecure
IDEA NO 128 64
MARS NO 128/192/256 128
Null yes n/a n/a? Offers no security
RC2 ?
RC4 yes n/a
RC6 NO 128/192/256 128
Rijndael yes 128/192/256 128 Now known as AES
SKIPJACK yes 80 64 Formerly classified.
Serpent yes 128/192/256 128 Very high security margin
Square yes
TripleDES yes 168 64
Twofish yes 128/192/256 128
PATENTS
-------
Various companies hold various patents for various algorithms in various
locations around the world. _YOU_ are responsible for ensuring that your use
of any algorithms is legal by checking if there exist any patents enforcable
in your jurisdiction. The following it a partial list:
RSA Security holds software patents on the RC5 algorithm. If you
intend to use this cipher, you must contact RSA Security for
licensing conditions. Their web page is http://www.rsasecurity.com/.
RC4 is a trademark of RSA Security, so use of this label should perhaps
only be used with RSA Security's permission.
The IDEA algorithm is patented by Ascom in Austria, France, Germany, Italy,
Japan, Netherlands, Spain, Sweden, Switzerland, UK and the USA. They should
be contacted if that algorithm is to be used, their web page is
http://www.ascom.ch/.
INSTALLATION
------------
Using the Cryptix JCE Provider is as simple as adding cryptix-jce-provider.jar
to your CLASSPATH. There are some caveats though, as described below:
JDK 1.4 (Java 2 version 1.4)
Cryptix JCE works out-of-the-box on JDK 1.4 but its functionality is
restricted to what Sun allows trough their Jurisdiction Policy Files.
In practice this means that you are limited to what the French government
allows in terms of key sizes. Why Sun forces the French policy on the
rest of the world, and especially the USA, is an open question.
If you require using Cryptix without any restrictions whatsoever,
you must have the "Java Cryptography Extension (JCE) Unlimited Strength
Jurisdiction Policy Files" installed. At the time of writing they can be
found at: http://java.sun.com/j2se/1.4/ . Installing these is non-trivial
for casual users.
JDK 1.2 and JDK 1.3 (Java 2 version 1.2/1.3)
Neither JDK 1.2 nor JDK 1.3 (nor JDK 1.1.x, see below) ships with the
JCE API included so you must manually install a JCE API implementation
before you can use the Cryptix JCE Provider. You can either use the
Cryptix JCE API that is included in Cryptix JCE or you can opt for a
third-party JCE API implementation.
To use the Cryptix JCE API, simply put cryptix-jce-api.jar in your CLASSPATH,
in addition to cryptix-jce-provider.jar.
To use a third-party JCE API, follow its installation instructions. Please
note that even though the Cryptix JCE is 100% compatible with the published
JCE API specification, not all JCE API implementations will work. The most
notable exception is Sun's own JCE API implementation which requires each
JCE Provider to be signed. In such a case you are probably better off using
the Cryptix JCE API.
JDK 1.1.x
The JCE API was designed for use with JDK 1.2 and higher and is therefore
dependent on JDK 1.2 specific features. We have included a compatibility
layer that will allow you to use most of the JCE features with JDK 1.1.x.
The JDK 1.1.x compatibility layer is cryptix-jce-compat11.jar . Just add it
to your CLASSPATH. Now follow the instructions for JDK 1.2/1.3 as described
above.
NOTE: The JDK 1.1.x compatibility layer is no longer actively maintained.
If possible you should upgrade to JDK 1.2 or higher instead of using
the JDK 1.1.x compatibility layer.
ACKNOWLEDGEMENTS
----------------
This Cryptix JCE implementation borrows heavily from the original Cryptix 3
implementation.
Paul Waserbrot (pw@cryptix.org) became a Cryptix Team member and got the
project up to speed again after I let it lapse.
Joseph Hartmann (jhartmann@bigfoot.com) provided example code and invaluable
debugging assistance.
Jyrki Oinas (oinas@necsom.com) provided excellent bug reports and helped us
fix the RSASSA-PKCS1 and RSAES-PKCS1 implementations.
Edwin Woudt (edwin@cryptix.org) was responsible for lots of feedback and
filtered JCE bug reports for me.
Erwin van der Koogh (erwin@cryptix.org) contributed the initial ElGamal
implementation.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Java Cryptography Extension(jce) 源码 (325个子文件)
cryptix-jce-provider.jar 289KB
cryptix-jce-tests.jar 115KB
cryptix-jce-api.jar 38KB
cryptix-jce-compat.jar 23KB
TestRijndael.java 130KB
CAST5.java 68KB
Tiger.java 47KB
Serpent.java 34KB
Blowfish.java 33KB
TestSquare.java 31KB
Twofish.java 26KB
MARS.java 23KB
Rijndael.java 22KB
Cipher.java 20KB
TestDES.java 19KB
RSACipher_OAEP.java 16KB
ElGamalCipher.java 15KB
Square.java 14KB
PBEBase.java 14KB
DES.java 14KB
RSASignature_PKCS1.java 14KB
RSASignature_PKCS1.java 14KB
RSACipher_ECB_PKCS1.java 13KB
RSACipher_ECB_PKCS1.java 13KB
BlockCipher.java 13KB
RSASignature_PSS.java 13KB
RSASignature_PSS.java 13KB
CryptixCrypto.java 12KB
RC2.java 11KB
SHA.java 10KB
TripleDESInnerCBC.java 10KB
FileDEncryption.java 10KB
DSASignature.java 10KB
SymmetricCipher.java 10KB
MD2.java 9KB
SKIPJACK.java 9KB
RIPEMD.java 9KB
RC4.java 9KB
RawDSASignature.java 8KB
Precomputed.java 8KB
Padding.java 8KB
RIPEMD160.java 8KB
IDEA.java 8KB
RSAAlgorithm.java 7KB
RSAAlgorithm.java 7KB
RC6.java 7KB
PaddingMD.java 7KB
DHKeyAgreement.java 7KB
RunSamples.java 7KB
PBEKeyFactory.java 7KB
PBEs.java 7KB
Mode.java 7KB
RIPEMD128.java 7KB
CipherTest.java 7KB
MD5.java 7KB
TestRC6.java 6KB
SHA512Base.java 6KB
AsnObjectId.java 6KB
TestRSA_OAEP.java 6KB
ExemptionMechanism.java 6KB
SealedObject.java 6KB
AlgorithmParameters.java 6KB
ModeCFB.java 6KB
BlockParameters.java 6KB
TestCipherStream.java 6KB
RSAKeyFactory.java 6KB
RSAKeyFactory.java 6KB
MD4.java 6KB
RSAKeyPairGenerator.java 5KB
RSAKeyPairGenerator.java 5KB
Null.java 5KB
HMAC.java 5KB
DevRandom.java 5KB
CipherInputStream.java 5KB
SHA256.java 5KB
Mac.java 5KB
ModeCBC.java 5KB
Certificate.java 4KB
Support.java 4KB
DHKeyPairGenerator.java 4KB
TripleDES.java 4KB
AsnOutputStream.java 4KB
TestAlgorithmParameters.java 4KB
TestModeAndPadding.java 4KB
SignatureData.java 4KB
FileHashing.java 4KB
PBEWithMD2AndDES.java 4KB
Support.java 4KB
AsnObject.java 4KB
MACs.java 4KB
ElGamalKeyPairGenerator.java 4KB
RSAPrivateCrtKeyCryptix.java 4KB
RSAPrivateCrtKeyCryptix.java 4KB
AsnInputStream.java 4KB
RSAPublicKeyX509.java 4KB
RSAPublicKeyX509.java 4KB
NullCipherSpi.java 4KB
Test.java 3KB
KeyAgreement.java 3KB
MessageDigestTest.java 3KB
共 325 条
- 1
- 2
- 3
- 4
zhangpeng09876
- 粉丝: 5
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页