com.sshtools.j2ssh.transport.cipher
Class BlowfishCbc
java.lang.Object
com.sshtools.j2ssh.transport.cipher.SshCipher
com.sshtools.j2ssh.transport.cipher.BlowfishCbc
public class BlowfishCbc
- extends SshCipher
- Version:
- $Revision: 1.1 $
- Author:
- $author$
Field Summary |
protected static java.lang.String |
algorithmName
|
(package private) javax.crypto.Cipher |
cipher
|
private static org.apache.commons.logging.Log |
log
|
Constructor Summary |
BlowfishCbc()
Creates a new BlowfishCbc object. |
Method Summary |
int |
getBlockSize()
|
void |
init(int mode,
byte[] iv,
byte[] keydata)
|
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 |
log
private static org.apache.commons.logging.Log log
algorithmName
protected static java.lang.String algorithmName
cipher
javax.crypto.Cipher cipher
BlowfishCbc
public BlowfishCbc()
- Creates a new BlowfishCbc object.
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize
in class SshCipher
- Returns:
init
public void init(int mode,
byte[] iv,
byte[] keydata)
throws AlgorithmOperationException
- Specified by:
init
in class SshCipher
- Parameters:
mode
- iv
- keydata
-
- Throws:
AlgorithmOperationException
transform
public byte[] transform(byte[] data,
int offset,
int len)
throws AlgorithmOperationException
- Specified by:
transform
in class SshCipher
- Parameters:
data
- offset
- len
-
- Returns:
-
- Throws:
AlgorithmOperationException