Package org.bouncycastle.crypto.hpke
Class HPKEContextWithEncapsulation
- java.lang.Object
-
- org.bouncycastle.crypto.hpke.HPKEContext
-
- org.bouncycastle.crypto.hpke.HPKEContextWithEncapsulation
-
public class HPKEContextWithEncapsulation extends HPKEContext
Sender-sideHPKEContextthat additionally carries theencoctet 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 theencas input to the matchingsetup*Rcall.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).
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.crypto.hpke.HPKEContext
aead, exporterSecret, hkdf, suiteId
-
-
Constructor Summary
Constructors Constructor Description HPKEContextWithEncapsulation(HPKEContext context, byte[] encapsulation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getEncapsulation()
-
-
-
Constructor Detail
-
HPKEContextWithEncapsulation
public HPKEContextWithEncapsulation(HPKEContext context, byte[] encapsulation)
-
-