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.19 $
- Author:
- $author$
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
algorithmName
-
Fields inherited from class com.sshtools.j2ssh.transport.cipher.SshCipher
DECRYPT_MODE, ENCRYPT_MODE
-
-
Constructor Summary
Constructors Constructor Description TripleDesCbc()
Creates a new TripleDesCbc object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBlockSize()
void
init(int mode, byte[] iv, byte[] keydata)
byte[]
transform(byte[] data, int offset, int len)
-
-
-
Method Detail
-
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize
in classSshCipher
- Returns:
-
init
public void init(int mode, byte[] iv, byte[] keydata) throws AlgorithmOperationException
- Specified by:
init
in classSshCipher
- Parameters:
mode
-iv
-keydata
-- Throws:
AlgorithmOperationException
-
transform
public byte[] transform(byte[] data, int offset, int len) throws AlgorithmOperationException
- Specified by:
transform
in classSshCipher
- Parameters:
data
-offset
-len
-- Returns:
- Throws:
AlgorithmOperationException
-
-