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 java.lang.Object implements BlockCipher
CBCMode.
-
-
Constructor Summary
Constructors Constructor Description CBCMode(BlockCipher tc, byte[] iv, boolean doEncrypt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBlockSize()
void
init(boolean forEncryption, byte[] key)
void
transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)
-
-
-
Constructor Detail
-
CBCMode
public CBCMode(BlockCipher tc, byte[] iv, boolean doEncrypt) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
init
public void init(boolean forEncryption, byte[] key)
- Specified by:
init
in interfaceBlockCipher
-
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize
in interfaceBlockCipher
-
transformBlock
public void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)
- Specified by:
transformBlock
in interfaceBlockCipher
-
-