Package com.trilead.ssh2.crypto.cipher
Class CBCMode
java.lang.Object
com.trilead.ssh2.crypto.cipher.CBCMode
- All Implemented Interfaces:
BlockCipher
public class CBCMode extends Object implements BlockCipher
CBCMode.
- Version:
- $Id: CBCMode.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
Constructor Summary
Constructors Constructor Description CBCMode(BlockCipher tc, byte[] iv, boolean doEncrypt) -
Method Summary
Modifier and Type Method Description intgetBlockSize()voidinit(boolean forEncryption, byte[] key)voidtransformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)
-
Constructor Details
-
CBCMode
- Throws:
IllegalArgumentException
-
-
Method Details
-
init
public void init(boolean forEncryption, byte[] key)- Specified by:
initin interfaceBlockCipher
-
getBlockSize
public int getBlockSize()- Specified by:
getBlockSizein interfaceBlockCipher
-
transformBlock
public void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)- Specified by:
transformBlockin interfaceBlockCipher
-