Class CTRMode

java.lang.Object
com.trilead.ssh2.crypto.cipher.CTRMode
All Implemented Interfaces:
BlockCipher

public class CTRMode extends Object implements BlockCipher
This is CTR mode as described in draft-ietf-secsh-newmodes-XY.txt
Version:
$Id: CTRMode.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
  • Field Details

    • X

      byte[] X
    • Xenc

      byte[] Xenc
    • bc

    • blockSize

      int blockSize
    • doEncrypt

      boolean doEncrypt
    • count

      int count
  • Constructor Details

  • Method Details

    • init

      public void init(boolean forEncryption, byte[] key)
      Specified by:
      init in interface BlockCipher
    • getBlockSize

      public final int getBlockSize()
      Specified by:
      getBlockSize in interface BlockCipher
    • transformBlock

      public final void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)
      Specified by:
      transformBlock in interface BlockCipher