public class HPKEContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AEAD |
aead |
protected byte[] |
exporterSecret |
protected org.bouncycastle.crypto.hpke.HKDF |
hkdf |
protected byte[] |
suiteId |
Modifier and Type | Method and Description |
---|---|
byte[] |
expand(byte[] prk,
byte[] info,
int L) |
byte[] |
export(byte[] exportContext,
int L) |
byte[] |
extract(byte[] salt,
byte[] ikm) |
byte[] |
open(byte[] aad,
byte[] ct) |
byte[] |
open(byte[] aad,
byte[] ct,
int ctOffset,
int ctLength) |
byte[] |
seal(byte[] aad,
byte[] message) |
byte[] |
seal(byte[] aad,
byte[] pt,
int ptOffset,
int ptLength) |
protected final AEAD aead
protected final org.bouncycastle.crypto.hpke.HKDF hkdf
protected final byte[] exporterSecret
protected final byte[] suiteId
public byte[] export(byte[] exportContext, int L)
public byte[] seal(byte[] aad, byte[] message) throws InvalidCipherTextException
InvalidCipherTextException
public byte[] seal(byte[] aad, byte[] pt, int ptOffset, int ptLength) throws InvalidCipherTextException
InvalidCipherTextException
public byte[] open(byte[] aad, byte[] ct) throws InvalidCipherTextException
InvalidCipherTextException
public byte[] open(byte[] aad, byte[] ct, int ctOffset, int ctLength) throws InvalidCipherTextException
InvalidCipherTextException
public byte[] extract(byte[] salt, byte[] ikm)
public byte[] expand(byte[] prk, byte[] info, int L)