| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: length of the auth tagAEAD algorithm identifier aeadAlgorithmTag)Return the length of the authentication tag used by the given AEAD algorithm in octets. |
| public static int | Returns: length of the IVAEAD algorithm identifier aeadAlgorithmTag)Return the length of the IV used by the given AEAD algorithm in octets. |
| public static byte[][] | Returns: array of arrays containing message key and IVm+n-8bytes of concatenated message key and IV symmetric cipher algorithm cipherAlgo, int AEAD algorithm aeadAlgo)Split a given byte array containing m |
| AEADUtils | back to summary |
|---|---|
| private AEADUtils() | |
| getAuthTagLength | back to summary |
|---|---|
| public static int getAuthTagLength(int aeadAlgorithmTag) Return the length of the authentication tag used by the given AEAD algorithm in octets.
| |
| getIVLength | back to summary |
|---|---|
| public static int getIVLength(int aeadAlgorithmTag) Return the length of the IV used by the given AEAD algorithm in octets.
| |
| splitMessageKeyAndIv | back to summary |
|---|---|
| public static byte[][] splitMessageKeyAndIv(byte[] messageKeyAndIv, int cipherAlgo, int aeadAlgo) Split a given byte array containing mbytes of key and n-8bytes of IV into two separate byte arrays. mis the key length of the cipher algorithm, while nis the IV length of the AEAD algorithm. Note, that the IV is filled with n-8bytes only, the remainder is left as 0s. Return an array of both arrays with the key and index 0 and the IV at index 1.
| |