Top Fields Constructors Methods
org.bouncycastle.crypto.hpke

public Class HPKEContext

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.crypto.hpke.HPKEContextWithEncapsulation
Imports
org.bouncycastle.crypto.InvalidCipherTextException

Field Summary

Modifier and TypeField and Description
protected final AEAD
protected final byte[]
protected final HKDF
protected final byte[]

Constructor Summary

AccessConstructor and Description
pack-priv
HPKEContext(AEAD aead, HKDF hkdf, byte[] exporterSecret, byte[] suiteId)

Method Summary

Modifier and TypeMethod and Description
public byte[]
expand(byte[] prk, byte[] info, int L)

public byte[]
export(byte[] exportContext, int L)

public byte[]
extract(byte[] salt, byte[] ikm)

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

public byte[]
open(byte[] aad, byte[] ct, int ctOffset, int ctLength)

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aeadback to summary
protected final AEAD aead
exporterSecretback to summary
protected final byte[] exporterSecret
hkdfback to summary
protected final HKDF hkdf
suiteIdback to summary
protected final byte[] suiteId

Constructor Detail

HPKEContextback to summary
pack-priv HPKEContext(AEAD aead, HKDF hkdf, byte[] exporterSecret, byte[] suiteId)

Method Detail

expandback to summary
public byte[] expand(byte[] prk, byte[] info, int L)
exportback to summary
public byte[] export(byte[] exportContext, int L)
extractback to summary
public byte[] extract(byte[] salt, byte[] ikm)
openback to summary
public byte[] open(byte[] aad, byte[] ct) throws InvalidCipherTextException
openback to summary
public byte[] open(byte[] aad, byte[] ct, int ctOffset, int ctLength) throws InvalidCipherTextException
sealback to summary
public byte[] seal(byte[] aad, byte[] message) throws InvalidCipherTextException
sealback to summary
public byte[] seal(byte[] aad, byte[] pt, int ptOffset, int ptLength) throws InvalidCipherTextException