com.maverick.ssh.cipher
Class NoneCipher

java.lang.Object
  extended bycom.maverick.ssh.cipher.SshCipher
      extended bycom.maverick.ssh.cipher.NoneCipher

public class NoneCipher
extends SshCipher


Field Summary
 
Fields inherited from class com.maverick.ssh.cipher.SshCipher
DECRYPT_MODE, ENCRYPT_MODE
 
Constructor Summary
NoneCipher()
           
 
Method Summary
 int getBlockSize()
          Get the cipher block size.
 void init(int mode, byte[] iv, byte[] keydata)
          Initialize the cipher with up to 40 bytes of iv and key data.
 void transform(byte[] src, int start, byte[] dest, int offset, int len)
          Transform the byte array according to the cipher mode; it is legal for the source and destination arrays to reference the same physical array so care should be taken in the transformation process to safeguard this rule.
 
Methods inherited from class com.maverick.ssh.cipher.SshCipher
getAlgorithm, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoneCipher

public NoneCipher()
Method Detail

getBlockSize

public int getBlockSize()
Get the cipher block size.

Specified by:
getBlockSize in class SshCipher
Returns:
the block size in bytes.

init

public void init(int mode,
                 byte[] iv,
                 byte[] keydata)
          throws java.io.IOException
Initialize the cipher with up to 40 bytes of iv and key data.

Specified by:
init in class SshCipher
Parameters:
mode - the mode to operate
iv - the initiaization vector
keydata - the key data
Throws:
java.io.IOException

transform

public void transform(byte[] src,
                      int start,
                      byte[] dest,
                      int offset,
                      int len)
               throws java.io.IOException
Transform the byte array according to the cipher mode; it is legal for the source and destination arrays to reference the same physical array so care should be taken in the transformation process to safeguard this rule.

Specified by:
transform in class SshCipher
Parameters:
src - byte[]
start - int
dest - byte[]
offset - int
len - int
Returns:
the transformed data
Throws:
java.io.IOException


Copyright © 2003 3SP LTD. All Rights Reserved.