|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.bcpg.AEADUtils
Field Summary |
Fields inherited from interface org.bouncycastle.bcpg.AEADAlgorithmTags |
EAX, GCM, OCB |
Method Summary | |
static int |
getAuthTagLength(int aeadAlgorithmTag)
Return the length of the authentication tag used by the given AEAD algorithm in octets. |
static int |
getIVLength(int aeadAlgorithmTag)
Return the length of the IV used by the given AEAD algorithm in octets. |
static byte[][] |
splitMessageKeyAndIv(byte[] messageKeyAndIv,
int cipherAlgo,
int aeadAlgo)
Split a given byte array containing m bytes of key and n-8 bytes of IV into two separate byte arrays. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int getIVLength(int aeadAlgorithmTag)
aeadAlgorithmTag
- AEAD algorithm identifier
public static int getAuthTagLength(int aeadAlgorithmTag)
aeadAlgorithmTag
- AEAD algorithm identifier
public static byte[][] splitMessageKeyAndIv(byte[] messageKeyAndIv, int cipherAlgo, int aeadAlgo)
messageKeyAndIv
- m+n-8 bytes of concatenated message key and IVcipherAlgo
- symmetric cipher algorithmaeadAlgo
- AEAD algorithm
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |