java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.crypto.mlkem.MLKEMKeyParameters
- All Implemented Interfaces:
CipherParameters
- Direct Known Subclasses:
MLKEMPrivateKeyParameters, MLKEMPublicKeyParameters
Base key parameters for ML-KEM (Module-Lattice Key Encapsulation Mechanism). Provides common functionality for both public and private key parameters.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionMLKEMKeyParameters(boolean isPrivate, MLKEMParameters params) Wraps the ML-KEM parameter set alongside the public/private flag.Method Summary
All MethodsModifier and TypeMethodDescriptionReturns the ML-KEM parameter set this key was created with.Methods inherited from class AsymmetricKeyParameter
isPrivate
Field Details
params
The parameter set this key belongs to.
Constructor Details
MLKEMKeyParameters
Wraps the ML-KEM parameter set alongside the public/private flag.- Parameters:
isPrivate- passed to the AsymmetricKeyParameter superclass to mark the key private (true) or public (false)params- the ML-KEM parameter set carrying the scheme's degree and key sizes
Method Details
getParameters
Returns the ML-KEM parameter set this key was created with.- Returns:
- the parameter set supplied to the constructor, never null