Package org.bouncycastle.crypto.hpke
Class AEAD
java.lang.Object
org.bouncycastle.crypto.hpke.AEAD
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AEAD
public AEAD(short aeadId, byte[] key, byte[] baseNonce)
-
-
Method Details
-
seal
public byte[] seal(byte[] aad, byte[] pt, int ptOffset, int ptLength) throws InvalidCipherTextException - Throws:
InvalidCipherTextException
-
seal
- Throws:
InvalidCipherTextException
-
open
public byte[] open(byte[] aad, byte[] ct, int ctOffset, int ctLength) throws InvalidCipherTextException - Throws:
InvalidCipherTextException
-
open
- Throws:
InvalidCipherTextException
-