cryptix.security
Class IDEA

java.lang.Object
  extended bycryptix.security.BlockCipher
      extended bycryptix.security.IDEA

public class IDEA
extends BlockCipher

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 $

Since:
Cryptix 2.2
Author:
Systemics Ltd, David Hopwood, Raif S. Naffah
See Also:
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

BLOCK_LENGTH

public static final int BLOCK_LENGTH
Deprecated. 
The length of a block (8 bytes for IDEA).

See Also:
Constant Field Values

KEY_LENGTH

public static final int KEY_LENGTH
Deprecated. 
The length of a user key (16 bytes for IDEA).

See Also:
Constant Field Values
Constructor Detail

IDEA

public IDEA(byte[] userKey)
Deprecated. 
This creates an IDEA block cipher instance, with key data taken from a 16-byte array.

Parameters:
userKey - the user key.
Throws:
CryptoError - if an error occurs initializing the cipher.
Method Detail

main

public static final void main(java.lang.String[] argv)
Deprecated. 
Entry point for very basic self_test.


self_test

public static final void self_test()
                            throws CryptoError
Deprecated. 
Do some basic tests. Three of the certification data are included only, no output, success or exception. If you want more, write a test program!

Throws:
CryptoError
See Also:
cryptix.examples.IDEA