Class XWingKEMGenerator
java.lang.Object
org.bouncycastle.pqc.crypto.xwing.XWingKEMGenerator
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateEncapsulated
(AsymmetricKeyParameter recipientKey) Generate secret/encapsulation based on the recipient public key.
-
Constructor Details
-
XWingKEMGenerator
-
-
Method Details
-
generateEncapsulated
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.
-