|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.security.BlockCipher
cryptix.security.IDEA
This class implements the Cryptix V2.2 API for the IDEA block cipher.
New code should use the JCA implementation of IDEA, which can be obtained
by calling Cipher.getInstance("IDEA")
, for example.
IDEA is a block cipher with a key length of 16 bytes and a block length of 8 bytes. It is highly popular, being the original cipher in PGP, and has received a lot of cryptanalytic attention.
IDEA was written by Dr. X. Lai and Prof. J. Massey.
References
See the IDEA page for more details.The algorithm is subject to patent claims by Ascom Systec Ltd (applied for May 1991), and is licensable.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.6 $
java.security.Cipher#getInstance
Field Summary | |
static int |
BLOCK_LENGTH
Deprecated. The length of a block (8 bytes for IDEA). |
static int |
KEY_LENGTH
Deprecated. The length of a user key (16 bytes for IDEA). |
Fields inherited from class cryptix.security.BlockCipher |
blockSize, cipher |
Constructor Summary | |
IDEA(byte[] userKey)
Deprecated. This creates an IDEA block cipher instance, with key data taken from a 16-byte array. |
Method Summary | |
static void |
main(java.lang.String[] argv)
Deprecated. Entry point for very basic self_test . |
static void |
self_test()
Deprecated. Do some basic tests. |
Methods inherited from class cryptix.security.BlockCipher |
blockLength, decrypt, decrypt, decrypt, encrypt, encrypt, encrypt, keyLength |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BLOCK_LENGTH
public static final int KEY_LENGTH
Constructor Detail |
public IDEA(byte[] userKey)
userKey
- the user key.
CryptoError
- if an error occurs initializing the cipher.Method Detail |
public static final void main(java.lang.String[] argv)
self_test
.
public static final void self_test() throws CryptoError
CryptoError
cryptix.examples.IDEA
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |