Class MLDSAParameters

java.lang.Object
org.bouncycastle.crypto.params.MLDSAParameters
All Implemented Interfaces:
PQCParameters

public class MLDSAParameters extends Object implements PQCParameters
  • Field Details

    • TYPE_PURE

      public static final int TYPE_PURE
      See Also:
    • TYPE_SHA2_512

      public static final int TYPE_SHA2_512
      See Also:
    • ml_dsa_44

      public static final MLDSAParameters ml_dsa_44
      ML-DSA-44. NIST security category 2 provided the random bit generator used for key generation and signing has at least 192 bits of security, category 1 otherwise (NIST IR 8547, Table 3, note 2).
    • ml_dsa_65

      public static final MLDSAParameters ml_dsa_65
    • ml_dsa_87

      public static final MLDSAParameters ml_dsa_87
    • ml_dsa_44_with_sha512

      public static final MLDSAParameters ml_dsa_44_with_sha512
    • ml_dsa_65_with_sha512

      public static final MLDSAParameters ml_dsa_65_with_sha512
    • ml_dsa_87_with_sha512

      public static final MLDSAParameters ml_dsa_87_with_sha512
  • Method Details

    • isPreHash

      public boolean isPreHash()
    • getType

      public int getType()
    • getK

      public int getK()
    • getName

      public String getName()
    • getSecurityCategory

      public int getSecurityCategory()
      Return the NIST security category of this parameter set: 2 for ML-DSA-44, 3 for ML-DSA-65 and 5 for ML-DSA-87 (NIST IR 8547, Table 3). Note that NIST reduces ML-DSA-44 to category 1 when the key or signature was produced with an approved RBG of less than 192 bits of security (NIST IR 8547, Table 3, note 2).
      Specified by:
      getSecurityCategory in interface PQCParameters
      Returns:
      the security category, as given in NIST IR 8547 Tables 3 and 5.
    • getClassicalSecurityStrength

      public int getClassicalSecurityStrength()
      Return the classical security strength of this parameter set: 128 bits for ML-DSA-44, 192 for ML-DSA-65 and 256 for ML-DSA-87 (NIST IR 8547, Table 3).
      Specified by:
      getClassicalSecurityStrength in interface PQCParameters
      Returns:
      the classical security strength in bits.