public class CTRMode extends java.lang.Object implements BlockCipher
| Constructor and Description |
|---|
CTRMode(BlockCipher tc,
byte[] iv,
boolean doEnc) |
| 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 CTRMode(BlockCipher tc, byte[] iv, boolean doEnc) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic void init(boolean forEncryption,
byte[] key)
init in interface BlockCipherpublic final int getBlockSize()
getBlockSize in interface BlockCipherpublic final void transformBlock(byte[] src,
int srcoff,
byte[] dst,
int dstoff)
transformBlock in interface BlockCipher