public class

NoneCipher

extends Object
implements Cipher
java.lang.Object
   ↳ net.schmizz.sshj.transport.cipher.NoneCipher

Class Overview

Represents a no-op cipher.

Summary

Nested Classes
class NoneCipher.Factory Named factory for the no-op Cipher  
Public Constructors
NoneCipher()
Public Methods
int getBlockSize()
int getIVSize()
void init(Cipher.Mode mode, byte[] bytes, byte[] bytes1)
Initialize the cipher for encryption or decryption with the given private key and initialization vector
void update(byte[] input, int inputOffset, int inputLen)
Performs in-place encryption or decryption on the given data.
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.transport.cipher.Cipher

Public Constructors

public NoneCipher ()

Public Methods

public int getBlockSize ()

public int getIVSize ()

public void init (Cipher.Mode mode, byte[] bytes, byte[] bytes1)

Initialize the cipher for encryption or decryption with the given private key and initialization vector

Parameters
mode Whether this instance wil encrypt or decrypt
bytes The key for the cipher
bytes1 Initialization vector

public void update (byte[] input, int inputOffset, int inputLen)

Performs in-place encryption or decryption on the given data.

Parameters
input The subject
inputOffset Offset at which to start
inputLen Number of bytes starting at inputOffset