java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.crypto.mlkem.MLKEMKeyParameters
All Implemented Interfaces:
CipherParameters
Direct Known Subclasses:
MLKEMPrivateKeyParameters, MLKEMPublicKeyParameters

public class MLKEMKeyParametersextends AsymmetricKeyParameter
Base key parameters for ML-KEM (Module-Lattice Key Encapsulation Mechanism). Provides common functionality for both public and private key parameters.
  • Field Details

    • params

      private MLKEMParameters params
      The parameter set this key belongs to.
  • Constructor Details

    • MLKEMKeyParameters

      public MLKEMKeyParameters(boolean isPrivate, MLKEMParameters params)
      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

      public MLKEMParameters getParameters()
      Returns the ML-KEM parameter set this key was created with.
      Returns:
      the parameter set supplied to the constructor, never null