public class HPKEContextWithEncapsulation extends HPKEContext
HPKEContext that additionally carries the enc
octet string produced by the KEM's encapsulation step.
Returned by HPKE.setupBaseS / SetupPSKS /
setupAuthS / setupAuthPSKS. The recipient never produces
this subclass — the recipient already has the enc as input to
the matching setup*R call.
getEncapsulation() returns a defensive copy of the encapsulated
key for transmission to the recipient (typically prepended to the first
ciphertext or carried in a wire-format wrapper such as MLS or OHTTP).
aead, exporterSecret, hkdf, suiteId| Constructor and Description |
|---|
HPKEContextWithEncapsulation(HPKEContext context,
byte[] encapsulation) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncapsulation() |
public HPKEContextWithEncapsulation(HPKEContext context, byte[] encapsulation)