public class AEAD
extends java.lang.Object
| Constructor and Description |
|---|
AEAD(short aeadId,
byte[] key,
byte[] baseNonce) |
| Modifier and Type | Method and 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) |
public byte[] seal(byte[] aad,
byte[] pt)
throws InvalidCipherTextException
InvalidCipherTextExceptionpublic byte[] seal(byte[] aad,
byte[] pt,
int ptOffset,
int ptLength)
throws InvalidCipherTextException
InvalidCipherTextExceptionpublic byte[] open(byte[] aad,
byte[] ct)
throws InvalidCipherTextException
InvalidCipherTextExceptionpublic byte[] open(byte[] aad,
byte[] ct,
int ctOffset,
int ctLength)
throws InvalidCipherTextException
InvalidCipherTextException