com.trilead.ssh2.crypto.cipher

Class NullCipher

Implemented Interfaces:
BlockCipher

public class NullCipher
extends java.lang.Object
implements BlockCipher

NullCipher.

Constructor Summary

NullCipher()
NullCipher(int blockSize)

Method Summary

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

Constructor Details

NullCipher

public NullCipher()

NullCipher

public NullCipher(int blockSize)

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