public class

CBCMode

extends Object
implements BlockCipher
java.lang.Object
   ↳ com.trilead.ssh2.crypto.cipher.CBCMode

Class Overview

CBCMode.

Summary

Fields
int blockSize
byte[] cbc_vector
boolean doEncrypt
BlockCipher tc
byte[] tmp_vector
Public Constructors
CBCMode(BlockCipher tc, byte[] iv, boolean doEncrypt)
Public Methods
int getBlockSize()
void init(boolean forEncryption, byte[] key)
void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.trilead.ssh2.crypto.cipher.BlockCipher

Fields

int blockSize

byte[] cbc_vector

boolean doEncrypt

byte[] tmp_vector

Public Constructors

public CBCMode (BlockCipher tc, byte[] iv, boolean doEncrypt)

Parameters
tc
iv
doEncrypt

Public Methods

public int getBlockSize ()

public void init (boolean forEncryption, byte[] key)

Parameters
forEncryption
key

public void transformBlock (byte[] src, int srcoff, byte[] dst, int dstoff)

Parameters
src
srcoff
dst
dstoff