Class SshCipher
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static int
DECRYPT_MODE
static int
ENCRYPT_MODE
-
Constructor Summary
Constructors Constructor Description SshCipher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-
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
-
-