Package org.apache.sshd.common.cipher
Class BaseCBCCipher
java.lang.Object
org.apache.sshd.common.cipher.BaseCipher
org.apache.sshd.common.cipher.BaseCBCCipher
- All Implemented Interfaces:
AlgorithmNameProvider,Cipher,CipherInformation,KeySizeIndicator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.common.cipher.Cipher
Cipher.Mode -
Field Summary
Fields inherited from class org.apache.sshd.common.cipher.BaseCipher
mode -
Constructor Summary
ConstructorsConstructorDescriptionBaseCBCCipher(int ivsize, int authSize, int kdfSize, String algorithm, int keySize, String transformation, int blkSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected AlgorithmParameterSpecdetermineNewParameters(byte[] processed, int offset, int length) voidupdate(byte[] input, int inputOffset, int inputLen) Performs in-place encryption or decryption on the given data.Methods inherited from class org.apache.sshd.common.cipher.BaseCipher
createCipherInstance, getAlgorithm, getAuthenticationTagSize, getCipherBlockSize, getCipherInstance, getIVSize, getKdfSize, getKeySize, getTransformation, init, initializeIVData, initializeKeyData, reInit, resize, toString, updateAADMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.common.cipher.Cipher
update, updateAAD, updateWithAAD
-
Constructor Details
-
BaseCBCCipher
-
-
Method Details
-
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
-
determineNewParameters
- Overrides:
determineNewParametersin classBaseCipher
-