Package org.apache.sshd.common.cipher
Class BaseRC4Cipher
- java.lang.Object
-
- org.apache.sshd.common.cipher.BaseCipher
-
- org.apache.sshd.common.cipher.BaseRC4Cipher
-
- All Implemented Interfaces:
AlgorithmNameProvider
,Cipher
,CipherInformation
,KeySizeIndicator
public class BaseRC4Cipher extends BaseCipher
- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.common.cipher.Cipher
Cipher.Mode
-
-
Field Summary
Fields Modifier and Type Field Description static int
SKIP_SIZE
-
Constructor Summary
Constructors Constructor Description BaseRC4Cipher(int ivsize, int kdfSize, int keySize, int blkSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Cipher
createCipherInstance(Cipher.Mode mode, byte[] key, byte[] iv)
protected byte[]
initializeIVData(Cipher.Mode mode, byte[] iv, int reqLen)
-
Methods inherited from class org.apache.sshd.common.cipher.BaseCipher
getAlgorithm, getAuthenticationTagSize, getCipherBlockSize, getCipherInstance, getIVSize, getKdfSize, getKeySize, getTransformation, init, initializeKeyData, resize, toString, update, updateAAD
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.cipher.Cipher
update, updateAAD, updateWithAAD
-
-
-
-
Field Detail
-
SKIP_SIZE
public static final int SKIP_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeIVData
protected byte[] initializeIVData(Cipher.Mode mode, byte[] iv, int reqLen)
- Overrides:
initializeIVData
in classBaseCipher
-
createCipherInstance
protected Cipher createCipherInstance(Cipher.Mode mode, byte[] key, byte[] iv) throws Exception
- Overrides:
createCipherInstance
in classBaseCipher
- Throws:
Exception
-
-