public class CBCMode extends Object implements BlockCipher
| Constructor and Description |
|---|
CBCMode(BlockCipher tc,
byte[] iv,
boolean doEncrypt) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockSize() |
void |
init(boolean forEncryption,
byte[] key) |
void |
transformBlock(byte[] src,
int srcoff,
byte[] dst,
int dstoff) |
public CBCMode(BlockCipher tc, byte[] iv, boolean doEncrypt) throws IllegalArgumentException
IllegalArgumentExceptionpublic void init(boolean forEncryption,
byte[] key)
init in interface BlockCipherpublic int getBlockSize()
getBlockSize in interface BlockCipherpublic void transformBlock(byte[] src,
int srcoff,
byte[] dst,
int dstoff)
transformBlock in interface BlockCipherCopyright © 2014. All rights reserved.