com.sshtools.j2ssh.transport.cipher
Class SshCipher

java.lang.Object
  extended by com.sshtools.j2ssh.transport.cipher.SshCipher
Direct Known Subclasses:
BlowfishCbc, TripleDesCbc

public abstract class SshCipher
extends java.lang.Object

Version:
$Revision: 1.19 $
Author:
$author$

Field Summary
static int DECRYPT_MODE
           
static int ENCRYPT_MODE
           
 
Constructor Summary
SshCipher()
           
 
Method Summary
abstract  int getBlockSize()
           
abstract  void init(int mode, byte[] iv, byte[] keydata)
           
 byte[] transform(byte[] data)
           
abstract  byte[] transform(byte[] data, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCRYPT_MODE

public static final int ENCRYPT_MODE
See Also:
Constant Field Values

DECRYPT_MODE

public static final int DECRYPT_MODE
See Also:
Constant Field Values
Constructor Detail

SshCipher

public SshCipher()
Method Detail

getBlockSize

public abstract int getBlockSize()
Returns:

init

public abstract void init(int mode,
                          byte[] iv,
                          byte[] keydata)
                   throws AlgorithmOperationException
Parameters:
mode -
iv -
keydata -
Throws:
AlgorithmOperationException

transform

public byte[] transform(byte[] data)
                 throws AlgorithmOperationException
Parameters:
data -
Returns:
Throws:
AlgorithmOperationException

transform

public abstract byte[] transform(byte[] data,
                                 int offset,
                                 int len)
                          throws AlgorithmOperationException
Parameters:
data -
offset -
len -
Returns:
Throws:
AlgorithmOperationException


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.