| Constructor and Description |
|---|
Idea(byte[] key,
boolean encrypt)
Creates an instance of the IDEA processor, initialized with a 16-byte binary key.
|
Idea(String charKey,
boolean encrypt)
Creates an instance of the IDEA processor, initialized with a character string key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
crypt(byte[] data)
Encrypts or decrypts a block of 8 data bytes.
|
void |
crypt(byte[] data,
int dataPos)
Encrypts or decrypts a block of 8 data bytes.
|
public Idea(byte[] key,
boolean encrypt)
key - A 16-byte binary key.encrypt - true to encrypt, false to decrypt.public Idea(String charKey, boolean encrypt)
charKey - A string of ASCII characters within the range 0x21 .. 0x7E.encrypt - true to encrypt, false to decrypt.public void crypt(byte[] data)
data - Buffer containing the 8 data bytes to be encrypted/decrypted.public void crypt(byte[] data,
int dataPos)
data - Data buffer containing the bytes to be encrypted/decrypted.dataPos - Start position of the 8 bytes within the buffer.