com.trilead.ssh2.crypto.cipher

Class CBCMode

Implemented Interfaces:
BlockCipher

public class CBCMode
extends java.lang.Object
implements BlockCipher

CBCMode.

Constructor Summary

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

Method Summary

int
getBlockSize()
void
init(boolean forEncryption, byte[] key)
void
transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff)

Constructor Details

CBCMode

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

Method Details

getBlockSize

public int getBlockSize()
Specified by:
getBlockSize in interface BlockCipher

init

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

transformBlock

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