com.maverick.ssh.components.standalone
Class AES128Ctr

java.lang.Object
  extended by com.maverick.ssh.components.SshCipher
      extended by com.maverick.ssh.components.standalone.AES128Ctr

public class AES128Ctr
extends SshCipher

128 bit Counter Mode AES cipher

Author:
Lee David Painter

Field Summary
static String AES128_CTR
           
 
Fields inherited from class com.maverick.ssh.components.SshCipher
DECRYPT_MODE, ENCRYPT_MODE
 
Constructor Summary
AES128Ctr()
           
 
Method Summary
 int getBlockSize()
           
 void init(int mode, byte[] iv, byte[] keydata)
           
 int processBlock(byte[] in, int inOff, byte[] out, int outOff)
           
 void transform(byte[] in, int start, byte[] output, int offset, int len)
           
 
Methods inherited from class com.maverick.ssh.components.SshCipher
getAlgorithm, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AES128_CTR

public static final String AES128_CTR
See Also:
Constant Field Values
Constructor Detail

AES128Ctr

public AES128Ctr()
Method Detail

transform

public void transform(byte[] in,
                      int start,
                      byte[] output,
                      int offset,
                      int len)
               throws IOException
Specified by:
transform in class SshCipher
Throws:
IOException

init

public void init(int mode,
                 byte[] iv,
                 byte[] keydata)
          throws IOException
Specified by:
init in class SshCipher
Throws:
IOException

getBlockSize

public int getBlockSize()
Specified by:
getBlockSize in class SshCipher

processBlock

public int processBlock(byte[] in,
                        int inOff,
                        byte[] out,
                        int outOff)
                 throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.