Class XWingKeyPairGenerator
java.lang.Object
org.bouncycastle.pqc.crypto.xwing.XWingKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
Generates key pairs compatible with the X-Wing hybrid Key Encapsulation Mechanism (KEM).
This class produces key pairs that include both X25519 and ML-KEM-768 components, suitable for use in the X-Wing KEM as specified in the IETF draft.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn an AsymmetricCipherKeyPair containing the generated keys.void
init
(KeyGenerationParameters param) intialise the key pair generator.
-
Constructor Details
-
XWingKeyPairGenerator
public XWingKeyPairGenerator()
-
-
Method Details
-
init
Description copied from interface:AsymmetricCipherKeyPairGenerator
intialise the key pair generator.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
- Parameters:
param
- the parameters the key pair is to be initialised with.
-
generateKeyPair
Description copied from interface:AsymmetricCipherKeyPairGenerator
return an AsymmetricCipherKeyPair containing the generated keys.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- an AsymmetricCipherKeyPair containing the generated keys.
-