de.mud.ssh
Class Cipher

java.lang.Object
  |
  +--de.mud.ssh.Cipher
Direct Known Subclasses:
Blowfish, DES, DES3, IDEA

public abstract class Cipher
extends java.lang.Object


Constructor Summary
Cipher()
           
 
Method Summary
 byte[] decrypt(byte[] src)
           
abstract  void decrypt(byte[] src, int srcOff, byte[] dest, int destOff, int len)
           
 byte[] encrypt(byte[] src)
           
abstract  void encrypt(byte[] src, int srcOff, byte[] dest, int destOff, int len)
           
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

Cipher

public Cipher()
Method Detail

getInstance

public static Cipher getInstance(java.lang.String algorithm)

encrypt

public byte[] encrypt(byte[] src)

encrypt

public abstract void encrypt(byte[] src,
                             int srcOff,
                             byte[] dest,
                             int destOff,
                             int len)

decrypt

public byte[] decrypt(byte[] src)

decrypt

public abstract void decrypt(byte[] src,
                             int srcOff,
                             byte[] dest,
                             int destOff,
                             int len)

setKey

public abstract void setKey(byte[] key)

setKey

public void setKey(java.lang.String key)