| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the cipher transformation and required key length are supportedThe full cipher transformation - e.g., AES/CBC/NoPadding - never xform, int null/emptyThe required key length in bits - always positive keyLength)
|
| public void | |
| public default void | update(byte[]
The input/output bytes input)Performs in-place encryption or decryption on the given data. |
| public void | update(byte[]
The input/output bytes input, int The offset of the data in the data buffer inputOffset, int The number of bytes to update, starting at the given offset; must be a multiple of the
cipher's block size inputLen)Performs in-place encryption or decryption on the given data. |
| public default void | updateAAD(byte[]
The data to authenticate data)Adds the provided input data as additional authenticated data during encryption or decryption. |
| public void | updateAAD(byte[]
The additional data to authenticate data, int The offset of the additional data in the buffer offset, int The number of bytes in the buffer to use for authentication length)Adds the provided input data as additional authenticated data during encryption or decryption. |
| public default void | updateWithAAD(byte[]
The input/output bytes input, int The offset of the data in the input buffer offset, int The number of bytes to use as additional authenticated data - starting at offset aadLen, int The number of bytes to update, starting at offset + aadLen; must be a multiple of the cipher's
block size inputLen)Performs in-place authenticated encryption or decryption with additional data (AEAD). |
| checkSupported | back to summary |
|---|---|
public static boolean checkSupported(String xform, int keyLength)
| |
| init | back to summary |
|---|---|
| public void init(Cipher. Initialize the cipher for encryption or decryption with the given key and initialization vector | |
| update | back to summary |
|---|---|
| public default void update(byte[] input) throws Exception Performs in-place encryption or decryption on the given data. Note
| |
| update | back to summary |
|---|---|
| public void update(byte[] input, int inputOffset, int inputLen) throws Exception Performs in-place encryption or decryption on the given data.
| |
| updateAAD | back to summary |
|---|---|
| public default void updateAAD(byte[] data) throws Exception Adds the provided input data as additional authenticated data during encryption or decryption.
| |
| updateAAD | back to summary |
|---|---|
| public void updateAAD(byte[] data, int offset, int length) throws Exception Adds the provided input data as additional authenticated data during encryption or decryption.
| |
| updateWithAAD | back to summary |
|---|---|
| public default void updateWithAAD(byte[] input, int offset, int aadLen, int inputLen) throws Exception Performs in-place authenticated encryption or decryption with additional data (AEAD). Authentication tags are
implicitly appended after the output ciphertext or implicitly verified after the input ciphertext. Header data
indicated by the Note on encryption the
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Cipher. | |
| public static final Cipher. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Cipher. | |
| public static Cipher. |
| Decrypt | back to summary |
|---|---|
| public static final Cipher. | |
| Encrypt | back to summary |
|---|---|
| public static final Cipher. | |
| Mode | back to summary |
|---|---|
| private Mode() | |
| valueOf | back to summary |
|---|---|
| public static Cipher. | |
| values | back to summary |
|---|---|
| public static Cipher. | |