Bouncy Castle Cryptography Library 1.81

org.bouncycastle.pqc.crypto.xwing
Class XWingKEMGenerator

java.lang.Object
  extended byorg.bouncycastle.pqc.crypto.xwing.XWingKEMGenerator
All Implemented Interfaces:
EncapsulatedSecretGenerator

public class XWingKEMGenerator
extends java.lang.Object
implements EncapsulatedSecretGenerator

Implements the encapsulation process of the X-Wing hybrid Key Encapsulation Mechanism (KEM).

X-Wing is a general-purpose hybrid post-quantum/traditional KEM that combines X25519 and ML-KEM-768, as specified in the IETF draft: draft-connolly-cfrg-xwing-kem-07.

This class facilitates the generation of ciphertexts and shared secrets using a recipient's public key.

See Also:
X-Wing KEM Draft

Constructor Summary
XWingKEMGenerator(java.security.SecureRandom random)
           
 
Method Summary
 SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)
          Generate secret/encapsulation based on the recipient public key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWingKEMGenerator

public XWingKEMGenerator(java.security.SecureRandom random)
Method Detail

generateEncapsulated

public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)
Description copied from interface: EncapsulatedSecretGenerator
Generate secret/encapsulation based on the recipient public key.

Specified by:
generateEncapsulated in interface EncapsulatedSecretGenerator
Returns:
An SecretWithEncapsulation derived from the recipient public key.

Bouncy Castle Cryptography Library 1.81