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

public Class BaseRC4Cipher

extends BaseCipher
Class Inheritance
Imports
javax.crypto.spec.SecretKeySpec, org.apache.sshd.common.util.security.SecurityUtils

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final int
Inherited from org.apache.sshd.common.cipher.BaseCipher:
alwaysReInitfactorymode

Constructor Summary

AccessConstructor and Description
public
BaseRC4Cipher(int ivsize, int kdfSize, int keySize, int blkSize)

Method Summary

Modifier and TypeMethod and Description
protected Cipher
protected byte[]
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
)

Overrides org.apache.sshd.common.cipher.BaseCipher.update.

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

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

Inherited from org.apache.sshd.common.cipher.BaseCipher:
determineNewParametersgetAlgorithmgetAuthenticationTagSizegetCipherBlockSizegetCipherInstancegetIVSizegetKdfSizegetKeySizegetTransformationinitinitializeKeyDatareInitresizetoStringupdateAAD

Field Detail

SKIP_SIZEback to summary
public static final int SKIP_SIZE

Constructor Detail

BaseRC4Cipherback to summary
public BaseRC4Cipher(int ivsize, int kdfSize, int keySize, int blkSize)

Method Detail

createCipherInstanceback to summary
protected Cipher createCipherInstance(Cipher.Mode mode, byte[] key, byte[] iv) throws Exception

Overrides org.apache.sshd.common.cipher.BaseCipher.createCipherInstance.

Annotations
@Override
initializeIVDataback to summary
protected byte[] initializeIVData(Cipher.Mode mode, byte[] iv, int reqLen)

Overrides org.apache.sshd.common.cipher.BaseCipher.initializeIVData.

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

Overrides org.apache.sshd.common.cipher.BaseCipher.update.

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