Package org.bouncycastle.crypto.hpke
Class HPKEContext
- java.lang.Object
-
- org.bouncycastle.crypto.hpke.HPKEContext
-
- Direct Known Subclasses:
HPKEContextWithEncapsulation
public class HPKEContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected AEADaeadprotected byte[]exporterSecretprotected org.bouncycastle.crypto.hpke.HKDFhkdfprotected byte[]suiteId
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]export(byte[] exportContext, int L)byte[]open(byte[] aad, byte[] ct)byte[]seal(byte[] aad, byte[] message)
-
-
-
Field Detail
-
aead
protected final AEAD aead
-
hkdf
protected final org.bouncycastle.crypto.hpke.HKDF hkdf
-
exporterSecret
protected final byte[] exporterSecret
-
suiteId
protected final byte[] suiteId
-
-
Method Detail
-
export
public byte[] export(byte[] exportContext, int L)
-
seal
public byte[] seal(byte[] aad, byte[] message) throws InvalidCipherTextException- Throws:
InvalidCipherTextException
-
open
public byte[] open(byte[] aad, byte[] ct) throws InvalidCipherTextException- Throws:
InvalidCipherTextException
-
-