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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CBCMode
public CBCMode(BlockCipher tc,
byte[] iv,
boolean doEncrypt)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
init
public void init(boolean forEncryption,
byte[] key)
- Specified by:
init
in interface BlockCipher
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize
in interface BlockCipher
transformBlock
public void transformBlock(byte[] src,
int srcoff,
byte[] dst,
int dstoff)
- Specified by:
transformBlock
in interface BlockCipher