Package org.bouncycastle.crypto.hpke
Class HPKEContext
java.lang.Object
org.bouncycastle.crypto.hpke.HPKEContext
- Direct Known Subclasses:
HPKEContextWithEncapsulation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AEADprotected final byte[]protected final org.bouncycastle.crypto.hpke.HKDFprotected final byte[] -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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)
-
Field Details
-
aead
-
hkdf
protected final org.bouncycastle.crypto.hpke.HKDF hkdf -
exporterSecret
protected final byte[] exporterSecret -
suiteId
protected final byte[] suiteId
-
-
Method Details
-
export
public byte[] export(byte[] exportContext, int L) -
seal
- Throws:
InvalidCipherTextException
-
seal
public byte[] seal(byte[] aad, byte[] pt, int ptOffset, int ptLength) throws InvalidCipherTextException - Throws:
InvalidCipherTextException
-
open
- Throws:
InvalidCipherTextException
-
open
public byte[] open(byte[] aad, byte[] ct, int ctOffset, int ctLength) throws InvalidCipherTextException - Throws:
InvalidCipherTextException
-
extract
public byte[] extract(byte[] salt, byte[] ikm) -
expand
public byte[] expand(byte[] prk, byte[] info, int L)
-