Top Description Constructors Methods
org.apache.sshd.common.cipher

public Class CipherNone

extends Object
implements Cipher
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.cipher.Cipher, org.apache.sshd.common.cipher.CipherInformation, org.apache.sshd.common.keyprovider.KeySizeIndicator, org.apache.sshd.common.AlgorithmNameProvider

Represents a no-op cipher. This cipher can not really be used during authentication and should only be used after, so that authentication remains secured, but not the remaining of the exchanges.
Author
Apache MINA SSHD Project

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public int
public int
public int
public int
public int
public String
public void
init(Cipher.Mode
Encrypt/Decrypt initialization
mode
,
byte[]
Key bytes
key
,
byte[]
Initialization vector bytes
iv
)

Implements org.apache.sshd.common.cipher.Cipher.init.

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

public void
update(byte[]
The input/output bytes
input
,
int
The offset of the data in the data buffer
inputOffset
,
int
The number of bytes to update, starting at the given offset; must be a multiple of the cipher's block size
inputLen
)

Implements org.apache.sshd.common.cipher.Cipher.update.

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

public void
updateAAD(byte[]
The additional data to authenticate
data
,
int
The offset of the additional data in the buffer
offset
,
int
The number of bytes in the buffer to use for authentication
length
)

Implements org.apache.sshd.common.cipher.Cipher.updateAAD.

Adds the provided input data as additional authenticated data during encryption or decryption.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CipherNoneback to summary
public CipherNone()

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements org.apache.sshd.common.AlgorithmNameProvider.getAlgorithm.

Annotations
@Override
getAuthenticationTagSizeback to summary
public int getAuthenticationTagSize()

Implements org.apache.sshd.common.cipher.CipherInformation.getAuthenticationTagSize.

Returns:int

Doc from org.apache.sshd.common.cipher.CipherInformation.getAuthenticationTagSize.

Size of the authentication tag (AT) in bytes or 0 if this cipher does not support authentication

Annotations
@Override
getCipherBlockSizeback to summary
public int getCipherBlockSize()

Implements org.apache.sshd.common.cipher.CipherInformation.getCipherBlockSize.

Returns:int

Doc from org.apache.sshd.common.cipher.CipherInformation.getCipherBlockSize.

Size of block data used by the cipher (in bytes). For stream ciphers this value is (currently) used to indicate some average work buffer size to be used for the automatic re-keying mechanism described in RFC 4253 - Section 9

Annotations
@Override
getIVSizeback to summary
public int getIVSize()

Implements org.apache.sshd.common.cipher.CipherInformation.getIVSize.

Returns:int

Doc from org.apache.sshd.common.cipher.CipherInformation.getIVSize.

Size of the initialization vector (in bytes)

Annotations
@Override
getKdfSizeback to summary
public int getKdfSize()

Implements org.apache.sshd.common.cipher.CipherInformation.getKdfSize.

Returns:int

Doc from org.apache.sshd.common.cipher.CipherInformation.getKdfSize.

The block size (in bytes) used to derive the secret key for this cipher

Annotations
@Override
getKeySizeback to summary
public int getKeySize()

Implements org.apache.sshd.common.keyprovider.KeySizeIndicator.getKeySize.

Returns:int

Doc from org.apache.sshd.common.keyprovider.KeySizeIndicator.getKeySize.

The number of bits used in the key

Annotations
@Override
getTransformationback to summary
public String getTransformation()

Implements org.apache.sshd.common.cipher.CipherInformation.getTransformation.

Returns:String

Doc from org.apache.sshd.common.cipher.CipherInformation.getTransformation.

The actual transformation used - e.g., AES/CBC/NoPadding

Annotations
@Override
initback to summary
public void init(Cipher.Mode mode, byte[] key, byte[] iv) throws Exception

Implements org.apache.sshd.common.cipher.Cipher.init.

Doc from org.apache.sshd.common.cipher.Cipher.init.

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

Parameters
mode:Cipher.Mode

Encrypt/Decrypt initialization

key:byte[]

Key bytes

iv:byte[]

Initialization vector bytes

Annotations
@Override
Exceptions
Exception:
If failed to initialize
updateback to summary
public void update(byte[] input, int inputOffset, int inputLen) throws Exception

Implements org.apache.sshd.common.cipher.Cipher.update.

Doc from org.apache.sshd.common.cipher.Cipher.update.

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

Parameters
input:byte[]

The input/output bytes

inputOffset:int

The offset of the data in the data buffer

inputLen:int

The number of bytes to update, starting at the given offset; must be a multiple of the cipher's block size

Annotations
@Override
Exceptions
Exception:
If failed to execute
updateAADback to summary
public void updateAAD(byte[] data, int offset, int length) throws Exception

Implements org.apache.sshd.common.cipher.Cipher.updateAAD.

Doc from org.apache.sshd.common.cipher.Cipher.updateAAD.

Adds the provided input data as additional authenticated data during encryption or decryption.

Parameters
data:byte[]

The additional data to authenticate

offset:int

The offset of the additional data in the buffer

length:int

The number of bytes in the buffer to use for authentication

Annotations
@Override
Exceptions
Exception:
If failed to execute