| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final byte[] | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | decrypt(byte[] ct, int ctOfs, int ctLen, byte[] pt, int ptOfs)
Implements abstract com. Performs decryption operation. |
| pack-priv int | Returns: the number of bytes placed intoctthe input buffer with the data to be decrypted ct, int the offset in dummy1, int ct which is always 0the length of the input data ctLen, byte[] the output buffer for the decryption which is always ct dummy2, int the offset in the output buffer which is always 0 dummy3)Overrides com. Performs single-part decryption operation. |
| pack-priv int | encrypt(byte[] pt, int ptOfs, int ptLen, byte[] ct, int ctOfs)
Implements abstract com. Performs encryption operation. |
| pack-priv int | Returns: the number of bytes placed intoptthe input buffer with the data to be encrypted pt, int the offset in dummy1, int pt which is always 0the length of the input data ptLen, byte[] the output buffer for the encryption which is always pt dummy2, int the offset in the output buffer which is always 0 dummy3)Overrides com. Performs single-part encryption operation. |
| pack-priv String | Returns: the stringKWImplements abstract com. Gets the name of this feedback mode. |
| pack-priv void | init(boolean
flag indicating encryption or decryption decrypting, String the algorithm name algorithm, byte[] the key key, byte[] the iv iv)Implements abstract com. Initializes the cipher in the specified mode with the given key and iv. |
| pack-priv void | reset()
Implements abstract com. Resets the iv to its original value. |
| pack-priv void | restore()
Implements abstract com. Restores the content of this cipher to the previous saved one. |
| pack-priv void | save()
Implements abstract com. Save the current content of this cipher. |
| private static void | |
| private static int |
| ICV2 | back to summary |
|---|---|
| pack-priv static final byte[] ICV2 | |
| PAD_BLK | back to summary |
|---|---|
| private static final byte[] PAD_BLK | |
| AESKeyWrapPadded | back to summary |
|---|---|
| pack-priv AESKeyWrapPadded() | |
| decrypt | back to summary |
|---|---|
| pack-priv int decrypt(byte[] ct, int ctOfs, int ctLen, byte[] pt, int ptOfs) Implements abstract com. Doc from com. Performs decryption operation. The input The subclass that implements Cipher should ensure that
| |
| decryptFinal | back to summary |
|---|---|
| pack-priv int decryptFinal(byte[] ct, int dummy1, int ctLen, byte[] dummy2, int dummy3) throws IllegalBlockSizeException Overrides com. Performs single-part decryption operation. The input The subclass that implements Cipher should ensure that
| |
| encrypt | back to summary |
|---|---|
| pack-priv int encrypt(byte[] pt, int ptOfs, int ptLen, byte[] ct, int ctOfs) Implements abstract com. Doc from com. Performs encryption operation. The input The subclass that implements Cipher should ensure that
| |
| encryptFinal | back to summary |
|---|---|
| pack-priv int encryptFinal(byte[] pt, int dummy1, int ptLen, byte[] dummy2, int dummy3) throws IllegalBlockSizeException Overrides com. Performs single-part encryption operation. The input The subclass that implements Cipher should ensure that
| |
| getFeedback | back to summary |
|---|---|
| pack-priv String getFeedback() Implements abstract com. Gets the name of this feedback mode. | |
| init | back to summary |
|---|---|
| pack-priv void init(boolean decrypting, String algorithm, byte[] key, byte[] iv) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract com. Initializes the cipher in the specified mode with the given key and iv.
| |
| reset | back to summary |
|---|---|
| pack-priv void reset() Implements abstract com. 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 void restore() Implements abstract com. Restores the content of this cipher to the previous saved one.
| |
| save | back to summary |
|---|---|
| pack-priv void save() Implements abstract com. Save the current content of this cipher.
| |
| setIvAndLen | back to summary |
|---|---|
| private static void setIvAndLen(byte[] dest, byte[] iv, int inLen) | |
| validateIV | back to summary |
|---|---|
| private static int validateIV(byte[] ivAndLen, byte[] iv) throws IllegalBlockSizeException | |