ElectronicCodeBook, CipherBlockChaining, CipherFeedback, OutputFeedback, PCBC
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final SymmetricCipher | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract int | Returns: the number of bytes placed intoplainthe input buffer with the data to be decrypted cipher, int the offset in cipherOffset, int cipherthe length of the input data cipherLen, byte[] the buffer for the decryption result plain, int the offset in plainOffset)plainPerforms decryption operation. |
| pack-priv int | Returns: the number of bytes placed intoplainthe input buffer with the data to be decrypted cipher, int the offset in cipherOffset, int cipherthe length of the input data cipherLen, byte[] the buffer for the decryption result plain, int the offset in plainOffset)plainPerforms decryption operation for the last time. |
| pack-priv abstract int | Returns: the number of bytes placed intocipherthe input buffer with the data to be encrypted plain, int the offset in plainOffset, int plainthe length of the input data plainLen, byte[] the buffer for the encryption result cipher, int the offset in cipherOffset)cipherPerforms encryption operation. |
| pack-priv int | Returns: the number of bytes placed intocipherthe input buffer with the data to be encrypted plain, int the offset in plainOffset, int plainthe length of the input data plainLen, byte[] the buffer for the encryption result cipher, int the offset in cipherOffset)cipherPerforms encryption operation for the last time. |
| pack-priv final int | Returns: the block size of the embedded cipherGets the block size of the embedded cipher. |
| pack-priv final SymmetricCipher | |
| pack-priv abstract String | |
| pack-priv final byte[] | |
| pack-priv abstract void | |
| pack-priv abstract void | |
| pack-priv abstract void | |
| pack-priv abstract void |
| blockSize | back to summary |
|---|---|
| pack-priv final int blockSize | |
| embeddedCipher | back to summary |
|---|---|
| pack-priv final SymmetricCipher embeddedCipher | |
| iv | back to summary |
|---|---|
| pack-priv byte[] iv | |
| FeedbackCipher | back to summary |
|---|---|
| pack-priv FeedbackCipher(SymmetricCipher embeddedCipher) | |
| decrypt | back to summary |
|---|---|
| pack-priv abstract int decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) Performs decryption operation. The input The subclass that implements Cipher should ensure that
| |
| decryptFinal | back to summary |
|---|---|
| pack-priv int decryptFinal(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) throws IllegalBlockSizeException Performs decryption operation for the last time. Note For cipher feedback modes which does not perform
special handling for the last few blocks, this is essentially
the same as
| |
| encrypt | back to summary |
|---|---|
| pack-priv abstract int encrypt(byte[] plain, int plainOffset, int plainLen, byte[] cipher, int cipherOffset) Performs encryption operation. The input The subclass that implements Cipher should ensure that
| |
| encryptFinal | back to summary |
|---|---|
| pack-priv int encryptFinal(byte[] plain, int plainOffset, int plainLen, byte[] cipher, int cipherOffset) throws IllegalBlockSizeException Performs encryption operation for the last time. Note For cipher feedback modes which does not perform
special handling for the last few blocks, this is essentially
the same as
| |
| getBlockSize | back to summary |
|---|---|
| pack-priv final int getBlockSize() Gets the block size of the embedded cipher.
| |
| getEmbeddedCipher | back to summary |
|---|---|
| pack-priv final SymmetricCipher getEmbeddedCipher() | |
| getFeedback | back to summary |
|---|---|
| pack-priv abstract String getFeedback() Gets the name of the feedback mechanism
| |
| getIV | back to summary |
|---|---|
| pack-priv final byte[] getIV() Gets the initialization vector.
| |
| init | back to summary |
|---|---|
| pack-priv abstract void init(boolean decrypting, String algorithm, byte[] key, byte[] iv) throws InvalidKeyException, InvalidAlgorithmParameterException Initializes the cipher in the specified mode with the given key and iv.
| |
| reset | back to summary |
|---|---|
| pack-priv abstract void reset() Resets the iv to its original value. This is used when doFinal is called in the Cipher class, so that the cipher can be reused (with its original iv). | |
| restore | back to summary |
|---|---|
| pack-priv abstract void restore() Restores the content of this cipher to the previous saved one. | |
| save | back to summary |
|---|---|
| pack-priv abstract void save() Save the current content of this cipher. | |