Package org.bouncycastle.crypto.hpke
Class AEAD
- java.lang.Object
-
- org.bouncycastle.crypto.hpke.AEAD
-
public class AEAD extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AEAD(short aeadId, byte[] key, byte[] baseNonce)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
open(byte[] aad, byte[] ct)
byte[]
open(byte[] aad, byte[] ct, int ctOffset, int ctLength)
byte[]
seal(byte[] aad, byte[] pt)
byte[]
seal(byte[] aad, byte[] pt, int ptOffset, int ptLength)
-
-
-
Method Detail
-
seal
public byte[] seal(byte[] aad, byte[] pt, int ptOffset, int ptLength) throws InvalidCipherTextException
- Throws:
InvalidCipherTextException
-
seal
public byte[] seal(byte[] aad, byte[] pt) throws InvalidCipherTextException
- Throws:
InvalidCipherTextException
-
open
public byte[] open(byte[] aad, byte[] ct, int ctOffset, int ctLength) throws InvalidCipherTextException
- Throws:
InvalidCipherTextException
-
open
public byte[] open(byte[] aad, byte[] ct) throws InvalidCipherTextException
- Throws:
InvalidCipherTextException
-
-