All Implemented Interfaces:
CipherParameters

public class MLKEMPublicKeyParametersextends MLKEMKeyParameters
Public key parameters for ML-KEM (Module-Lattice Key Encapsulation Mechanism). Contains public key components including polynomial coefficients for cryptographic operations.
  • Field Details

    • t

      final byte[] t
      Polynomial coefficients
    • rho

      final byte[] rho
      Random seed
  • Constructor Details

    • MLKEMPublicKeyParameters

      public MLKEMPublicKeyParameters(MLKEMParameters params, byte[] t, byte[] rho)
      Create public key parameters from individual components.
      Parameters:
      params - the ML-KEM parameters
      t - the polynomial coefficients
      rho - the random seed
    • MLKEMPublicKeyParameters

      public MLKEMPublicKeyParameters(MLKEMParameters params, byte[] encoding)
      Create public key parameters from an encoded byte array.
      Parameters:
      params - the ML-KEM parameters
      encoding - the encoded public key
  • Method Details

    • getEncoded

      static byte[] getEncoded(byte[] t, byte[] rho)
      Concatenate t and rho into a single encoding.
      Parameters:
      t - the polynomial coefficients
      rho - the random seed
      Returns:
      the concatenated encoding
    • getEncoded

      public byte[] getEncoded()
      Get the encoded public key.
      Returns:
      the encoded public key
    • getRho

      public byte[] getRho()
      Get the random seed.
      Returns:
      the random seed
    • getT

      public byte[] getT()
      Get the polynomial coefficients.
      Returns:
      the polynomial coefficients