Package com.trilead.ssh2.crypto.cipher
Class NullCipher
java.lang.Object
com.trilead.ssh2.crypto.cipher.NullCipher
- All Implemented Interfaces:
BlockCipher
NullCipher.
- Version:
- $Id: NullCipher.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
init
(boolean forEncryption, byte[] key) void
transformBlock
(byte[] src, int srcoff, byte[] dst, int dstoff)
-
Field Details
-
blockSize
private int blockSize
-
-
Constructor Details
-
NullCipher
public NullCipher() -
NullCipher
public NullCipher(int blockSize)
-
-
Method Details
-
init
public void init(boolean forEncryption, byte[] key) - Specified by:
init
in interfaceBlockCipher
-
getBlockSize
public int getBlockSize()- Specified by:
getBlockSize
in interfaceBlockCipher
-
transformBlock
public void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff) - Specified by:
transformBlock
in interfaceBlockCipher
-