Class java.crypt.IDEA
All Packages Class Hierarchy This Package Previous Next Index
Class java.crypt.IDEA
java.crypt.BlockCipher
|
+----java.crypt.IDEA
- public final class IDEA
- extends BlockCipher
This class Implements the IDEA block cipher.
Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/)
All rights reserved.
-
BLOCK_LENGTH
- This is the length of a block.
-
KEY_LENGTH
- This is the length of a the user key.
-
IDEA(byte[])
- This creates a Idea block cipher from a byte array of the correct length.
-
blockDecrypt(byte[], int, byte[], int)
- Decrypt a block.
-
blockEncrypt(byte[], int, byte[], int)
- Encrypt a block.
-
blockLength()
- Return the block length of this cipher.
-
keyLength()
- Return the key length of this cipher.
BLOCK_LENGTH
public final static int BLOCK_LENGTH
- This is the length of a block.
KEY_LENGTH
public final static int KEY_LENGTH
- This is the length of a the user key.
IDEA
public IDEA(byte userKey[])
- This creates a Idea block cipher from a byte array of the correct length.
- Parameters:
- userKey - the user key.
blockEncrypt
protected void blockEncrypt(byte in[],
int in_offset,
byte out[],
int out_offset)
- Encrypt a block.
The in and out buffers can be the same.
- Parameters:
- in - The data to be encrypted.
- in_offset - The start of data within the in buffer.
- out - The encrypted data.
- out_offset - The start of data within the out buffer.
- Overrides:
- blockEncrypt in class BlockCipher
blockDecrypt
protected void blockDecrypt(byte in[],
int in_offset,
byte out[],
int out_offset)
- Decrypt a block.
The in and out buffers can be the same.
- Parameters:
- in - The data to be decrypted.
- in_offset - The start of data within the in buffer.
- out - The decrypted data.
- out_offset - The start of data within the out buffer.
- Overrides:
- blockDecrypt in class BlockCipher
blockLength
public int blockLength()
- Return the block length of this cipher.
- Returns:
- s the block length of this cipher.
- Overrides:
- blockLength in class BlockCipher
keyLength
public int keyLength()
- Return the key length of this cipher.
- Returns:
- s the key length of this cipher.
- Overrides:
- keyLength in class BlockCipher
All Packages Class Hierarchy This Package Previous Next Index