org.bouncycastle.crypto.hpke
Class AEAD
java.lang.Object
|
+--org.bouncycastle.crypto.hpke.AEAD
- public class AEAD
- extends java.lang.Object
Constructor Summary |
AEAD(short aeadId,
byte[] key,
byte[] baseNonce)
|
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AEAD
public AEAD(short aeadId,
byte[] key,
byte[] baseNonce)
seal
public byte[] seal(byte[] aad,
byte[] pt,
int ptOffset,
int ptLength)
throws InvalidCipherTextException
seal
public byte[] seal(byte[] aad,
byte[] pt)
throws InvalidCipherTextException
open
public byte[] open(byte[] aad,
byte[] ct,
int ctOffset,
int ctLength)
throws InvalidCipherTextException
open
public byte[] open(byte[] aad,
byte[] ct)
throws InvalidCipherTextException