|
abcdef | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.trilead.ssh2.crypto.cipher.DES
public class DES
DES.
| Constructor Summary | |
|---|---|
DES()
standard constructor. |
|
| Method Summary | |
|---|---|
protected void |
desFunc(int[] wKey,
byte[] in,
int inOff,
byte[] out,
int outOff)
the DES engine. |
protected int[] |
generateWorkingKey(boolean encrypting,
byte[] key,
int off)
generate an integer based working key based on our secret key and what we processing we are planning to do. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DES()
| Method Detail |
|---|
public void init(boolean encrypting,
byte[] key)
init in interface BlockCipherencrypting - 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()
public int getBlockSize()
getBlockSize in interface BlockCipher
public void transformBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
transformBlock in interface BlockCipherpublic void reset()
protected int[] generateWorkingKey(boolean encrypting,
byte[] key,
int off)
protected void desFunc(int[] wKey,
byte[] in,
int inOff,
byte[] out,
int outOff)
|
abcdef | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||