com.trilead.ssh2.crypto.cipher
Class CTRMode
java.lang.Object
com.trilead.ssh2.crypto.cipher.CTRMode
- BlockCipher
public class CTRMode
extends java.lang.Object
This is CTR mode as described in draft-ietf-secsh-newmodes-XY.txt
CTRMode
public CTRMode(BlockCipher tc,
byte[] iv,
boolean doEnc)
throws IllegalArgumentException
init
public void init(boolean forEncryption,
byte[] key)
- init in interface BlockCipher
transformBlock
public final void transformBlock(byte[] src,
int srcoff,
byte[] dst,
int dstoff)
- transformBlock in interface BlockCipher