| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private static final boolean | |
| private final Cipher | |
| private final int | |
| private final JcaTlsCrypto | |
| private final JcaJceHelper | |
| private SecretKey | |
| private final int | |
| private int | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | JceAEADCipherImpl(JcaTlsCrypto crypto, JcaJceHelper helper, String cipherName, String algorithm, int keySize, boolean isEncrypting)
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public int | doFinal(byte[]
any additional data to be included in the MAC calculation. additionalData, byte[] array holding input data to the cipher. input, int offset into input array data starts at. inputOffset, int length of the input data in the array. inputLength, byte[] array to hold the cipher output. output, int offset into output array to start saving output. outputOffset)Implements org. Perform the cipher encryption/decryption returning the output in output. |
| private static String | |
| public int | getOutputSize(int
the length (in bytes) of the proposed input. inputLength)Implements org. Return the maximum size of the output for input of inputLength bytes. |
| public void | init(byte[]
the nonce. nonce, int MAC size in bytes. macSize)Implements org. Initialise the parameters for the AEAD operator. |
| public void | setKey(byte[]
array holding the AEAD cipher key. key, int offset into the array the key starts at. keyOff, int length of the key in the array. keyLen)Implements org. Set the key to be used by the AEAD cipher implementation supporting this service. |
| algorithm | back to summary |
|---|---|
| private final String algorithm | |
| algorithmParamsName | back to summary |
|---|---|
| private final String algorithmParamsName | |
| canDoAEAD | back to summary |
|---|---|
| private static final boolean canDoAEAD | |
| cipher | back to summary |
|---|---|
| private final Cipher cipher | |
| cipherMode | back to summary |
|---|---|
| private final int cipherMode | |
| crypto | back to summary |
|---|---|
| private final JcaTlsCrypto crypto | |
| helper | back to summary |
|---|---|
| private final JcaJceHelper helper | |
| key | back to summary |
|---|---|
| private SecretKey key | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| macSize | back to summary |
|---|---|
| private int macSize | |
| nonce | back to summary |
|---|---|
| private byte[] nonce | |
| JceAEADCipherImpl | back to summary |
|---|---|
| public JceAEADCipherImpl(JcaTlsCrypto crypto, JcaJceHelper helper, String cipherName, String algorithm, int keySize, boolean isEncrypting) throws GeneralSecurityException | |
| checkForAEAD | back to summary |
|---|---|
private static boolean checkForAEAD()
| |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] additionalData, byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws IOException Implements org. Doc from org. Perform the cipher encryption/decryption returning the output in output. Note we have to use doFinal() here as it is the only way to guarantee output from the underlying cipher.
| |
| getAlgParamsName | back to summary |
|---|---|
| private static String getAlgParamsName(JcaJceHelper helper, String cipherName) | |
| getOutputSize | back to summary |
|---|---|
| public int getOutputSize(int inputLength) Implements org. Doc from org. Return the maximum size of the output for input of inputLength bytes.
| |
| init | back to summary |
|---|---|
| public void init(byte[] nonce, int macSize) Implements org. Doc from org. Initialise the parameters for the AEAD operator.
| |
| setKey | back to summary |
|---|---|
| public void setKey(byte[] key, int keyOff, int keyLen) Implements org. Doc from org. Set the key to be used by the AEAD cipher implementation supporting this service.
| |