public class DESede extends DES
Modifier and Type | Field and Description |
---|---|
private boolean |
encrypt |
private int[] |
key1 |
private int[] |
key2 |
private int[] |
key3 |
Constructor and Description |
---|
DESede()
standard constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmName() |
int |
getBlockSize() |
void |
init(boolean encrypting,
byte[] key)
initialise a DES cipher.
|
void |
reset() |
void |
transformBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
desFunc, generateWorkingKey
private int[] key1
private int[] key2
private int[] key3
private boolean encrypt
public void init(boolean encrypting, byte[] key)
init
in interface BlockCipher
init
in class DES
encrypting
- whether or not we are for encryption.key
- the parameters required to set up the cipher.java.lang.IllegalArgumentException
- if the params argument is inappropriate.public java.lang.String getAlgorithmName()
getAlgorithmName
in class DES
public int getBlockSize()
getBlockSize
in interface BlockCipher
getBlockSize
in class DES
public void transformBlock(byte[] in, int inOff, byte[] out, int outOff)
transformBlock
in interface BlockCipher
transformBlock
in class DES