public class CTRMode extends 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 IllegalArgumentException
IllegalArgumentException
public void init(boolean forEncryption, byte[] key)
init
in interface BlockCipher
public final int getBlockSize()
getBlockSize
in interface BlockCipher
public final void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)
transformBlock
in interface BlockCipher
Copyright © 2022. All rights reserved.