Top Fields Constructors Methods
org.bouncycastle.crypto.hpke

public Class AEAD

extends Object
Class Inheritance
Imports
org.bouncycastle.crypto.CipherParameters, .InvalidCipherTextException, org.bouncycastle.crypto.engines.AESEngine, org.bouncycastle.crypto.modes.AEADCipher, .ChaCha20Poly1305, .GCMBlockCipher, org.bouncycastle.crypto.params.KeyParameter, .ParametersWithIV, org.bouncycastle.util.Arrays, .Pack

Field Summary

Modifier and TypeField and Description
private final short
private final byte[]
private AEADCipher
private final byte[]
private long

Constructor Summary

AccessConstructor and Description
public
AEAD(short aeadId, byte[] key, byte[] baseNonce)

Method Summary

Modifier and TypeMethod and Description
private byte[]
public byte[]
open(byte[] aad, byte[] ct, int ctOffset, int ctLength)

public byte[]
open(byte[] aad, byte[] ct)

public byte[]
seal(byte[] aad, byte[] pt, int ptOffset, int ptLength)

public byte[]
seal(byte[] aad, byte[] pt)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aeadIdback to summary
private final short aeadId
baseNonceback to summary
private final byte[] baseNonce
cipherback to summary
private AEADCipher cipher
keyback to summary
private final byte[] key
seqback to summary
private long seq

Constructor Detail

AEADback to summary
public AEAD(short aeadId, byte[] key, byte[] baseNonce)

Method Detail

ComputeNonceback to summary
private byte[] ComputeNonce()
openback to summary
public byte[] open(byte[] aad, byte[] ct, int ctOffset, int ctLength) throws InvalidCipherTextException
openback to summary
public byte[] open(byte[] aad, byte[] ct) throws InvalidCipherTextException
sealback to summary
public byte[] seal(byte[] aad, byte[] pt, int ptOffset, int ptLength) throws InvalidCipherTextException
sealback to summary
public byte[] seal(byte[] aad, byte[] pt) throws InvalidCipherTextException