|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--de.mud.ssh.Cipher
Cipher class is the type for all other ciphers.
| Constructor Summary | |
Cipher()
|
|
| Method Summary | |
byte[] |
decrypt(byte[] src)
Decrypt source byte array using the instantiated algorithm. |
abstract void |
decrypt(byte[] src,
int srcOff,
byte[] dest,
int destOff,
int len)
The actual decryption takes place here. |
byte[] |
encrypt(byte[] src)
Encrypt source byte array using the instantiated algorithm. |
abstract void |
encrypt(byte[] src,
int srcOff,
byte[] dest,
int destOff,
int len)
The actual encryption takes place here. |
static Cipher |
getInstance(java.lang.String algorithm)
|
abstract void |
setKey(byte[] key)
|
void |
setKey(java.lang.String key)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Cipher()
| Method Detail |
public static Cipher getInstance(java.lang.String algorithm)
public byte[] encrypt(byte[] src)
public abstract void encrypt(byte[] src,
int srcOff,
byte[] dest,
int destOff,
int len)
public byte[] decrypt(byte[] src)
public abstract void decrypt(byte[] src,
int srcOff,
byte[] dest,
int destOff,
int len)
public abstract void setKey(byte[] key)
public void setKey(java.lang.String key)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||