com.sshtools.j2ssh.transport.cipher
Class TripleDesCbc
java.lang.Object
com.sshtools.j2ssh.transport.cipher.SshCipher
com.sshtools.j2ssh.transport.cipher.TripleDesCbc
public class TripleDesCbc
- extends SshCipher
- Version:
- $Revision: 1.1 $
- Author:
- $author$
Field Summary |
protected static java.lang.String |
algorithmName
|
(package private) javax.crypto.Cipher |
cipher
|
Constructor Summary |
TripleDesCbc()
Creates a new TripleDesCbc 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 |
algorithmName
protected static java.lang.String algorithmName
cipher
javax.crypto.Cipher cipher
TripleDesCbc
public TripleDesCbc()
- Creates a new TripleDesCbc 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