Class BaseRC4Cipher
java.lang.Object
org.apache.sshd.common.cipher.BaseCipher
org.apache.sshd.common.cipher.BaseRC4Cipher
- All Implemented Interfaces:
AlgorithmNameProvider, Cipher, CipherInformation, KeySizeIndicator
-
Nested Class Summary
Nested classes/interfaces inherited from class BaseCipher
BaseCipher.CipherFactoryNested classes/interfaces inherited from interface Cipher
Cipher.Mode -
Field Summary
FieldsFields inherited from class BaseCipher
alwaysReInit, factory, mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CiphercreateCipherInstance(Cipher.Mode mode, byte[] key, byte[] iv) protected byte[]initializeIVData(Cipher.Mode mode, byte[] iv, int reqLen) voidupdate(byte[] input, int inputOffset, int inputLen) Performs in-place encryption or decryption on the given data.Methods inherited from class BaseCipher
determineNewParameters, getAlgorithm, getAuthenticationTagSize, getCipherBlockSize, getCipherInstance, getIVSize, getKdfSize, getKeySize, getTransformation, init, initializeKeyData, reInit, resize, toString, updateAADMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Cipher
update, updateAAD, updateWithAAD
-
Field Details
-
SKIP_SIZE
public static final int SKIP_SIZE- See Also:
-
-
Constructor Details
-
BaseRC4Cipher
public BaseRC4Cipher(int ivsize, int kdfSize, int keySize, int blkSize)
-
-
Method Details
-
initializeIVData
- Overrides:
initializeIVDatain classBaseCipher
-
createCipherInstance
- Overrides:
createCipherInstancein classBaseCipher- Throws:
Exception
-
update
Description copied from interface:CipherPerforms in-place encryption or decryption on the given data.- Specified by:
updatein interfaceCipher- Overrides:
updatein classBaseCipher- Parameters:
input- The input/output bytesinputOffset- The offset of the data in the data bufferinputLen- The number of bytes to update, starting at the given offset; must be a multiple of the cipher's block size- Throws:
Exception- If failed to execute
-