Bouncy Castle Cryptography Library 1.85

org.bouncycastle.crypto.hpke
Class HPKEContextWithEncapsulation

java.lang.Object
  extended byorg.bouncycastle.crypto.hpke.HPKEContext
      extended byorg.bouncycastle.crypto.hpke.HPKEContextWithEncapsulation

public class HPKEContextWithEncapsulation
extends HPKEContext

Sender-side HPKEContext that additionally carries the octet string produced by the KEM's encapsulation step.

Returned by / / / . The recipient never produces this subclass — the recipient already has the as input to the matching 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).


Field Summary
 
Fields inherited from class org.bouncycastle.crypto.hpke.HPKEContext
aead, exporterSecret, hkdf, suiteId
 
Constructor Summary
HPKEContextWithEncapsulation(HPKEContext context, byte[] encapsulation)
           
 
Method Summary
 byte[] getEncapsulation()
           
 
Methods inherited from class org.bouncycastle.crypto.hpke.HPKEContext
expand, export, extract, open, open, seal, seal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HPKEContextWithEncapsulation

public HPKEContextWithEncapsulation(HPKEContext context,
                                    byte[] encapsulation)
Method Detail

getEncapsulation

public byte[] getEncapsulation()

Bouncy Castle Cryptography Library 1.85