Package com.trilead.ssh2.crypto.cipher
Class CTRMode
java.lang.Object
com.trilead.ssh2.crypto.cipher.CTRMode
- All Implemented Interfaces:
BlockCipher
This is CTR mode as described in draft-ietf-secsh-newmodes-XY.txt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intvoidinit(boolean forEncryption, byte[] key) final voidtransformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)
-
Constructor Details
-
CTRMode
- Throws:
IllegalArgumentException
-
-
Method Details
-
init
public void init(boolean forEncryption, byte[] key) - Specified by:
initin interfaceBlockCipher
-
getBlockSize
public final int getBlockSize()- Specified by:
getBlockSizein interfaceBlockCipher
-
transformBlock
public final void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff) - Specified by:
transformBlockin interfaceBlockCipher
-