de.mud.ssh
Constructor and Description |
---|
Cipher() |
Modifier and Type | Method and Description |
---|---|
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) |
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)