Class XWingKEMGenerator
- java.lang.Object
-
- org.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
Constructors Constructor Description XWingKEMGenerator(java.security.SecureRandom random)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretWithEncapsulation
generateEncapsulated(AsymmetricKeyParameter recipientKey)
Generate secret/encapsulation based on the recipient public key.
-
-
-
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 interfaceEncapsulatedSecretGenerator
- Returns:
- An SecretWithEncapsulation derived from the recipient public key.
-
-