This mode is implemented independently of a particular cipher. Ciphers to which this mode should apply (e.g., DES) must be plugged-in using the constructor.
Note
CTS requires the input data to be at least one block long. Thus, callers of this class has to buffer the input data to make sure the input data passed to encryptFinal()/decryptFinal() is not shorter than a block.
Note
This class does not deal with buffering or padding just like all other cipher mode implementations.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: the number of bytes placed intoplainthe buffer with the input data to be decrypted cipher, int the offset in cipherOffset, int cipherOffsetthe length of the input data cipherLen, byte[] the buffer for the result plain, int the offset in plainOffset)plainOverrides com. Performs decryption operation. |
| pack-priv int | Returns: the number of bytes placed intocipherthe buffer with the input data to be encrypted plain, int the offset in plainOffset, int plainthe length of the input data plainLen, byte[] the buffer for the result cipher, int the offset in cipherOffset)cipherOverrides com. Performs the last encryption operation. |
| pack-priv String | Returns: the stringCBCOverrides com. Gets the name of this feedback mode. |
| CipherTextStealing | back to summary |
|---|---|
| pack-priv CipherTextStealing(SymmetricCipher embeddedCipher) | |
| decryptFinal | back to summary |
|---|---|
| pack-priv int decryptFinal(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) throws IllegalBlockSizeException Overrides com. Performs decryption operation. The input cipher text It is the application's responsibility to make sure that
It is also the application's responsibility to make sure that
| |
| encryptFinal | back to summary |
|---|---|
| pack-priv int encryptFinal(byte[] plain, int plainOffset, int plainLen, byte[] cipher, int cipherOffset) throws IllegalBlockSizeException Overrides com. Performs the last encryption operation. The input plain text It is the application's responsibility to make sure that
| |
| getFeedback | back to summary |
|---|---|
| pack-priv String getFeedback() Overrides com. Gets the name of this feedback mode.
| |