Class MLDSAParameters
java.lang.Object
org.bouncycastle.crypto.params.MLDSAParameters
- All Implemented Interfaces:
PQCParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MLDSAParametersML-DSA-44.static final MLDSAParametersstatic final MLDSAParametersstatic final MLDSAParametersstatic final MLDSAParametersstatic final MLDSAParametersstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintReturn 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).intgetK()getName()intReturn 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).intgetType()boolean
-
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
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
-
ml_dsa_87
-
ml_dsa_44_with_sha512
-
ml_dsa_65_with_sha512
-
ml_dsa_87_with_sha512
-
-
Method Details
-
isPreHash
public boolean isPreHash() -
getType
public int getType() -
getK
public int getK() -
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:
getSecurityCategoryin interfacePQCParameters- 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:
getClassicalSecurityStrengthin interfacePQCParameters- Returns:
- the classical security strength in bits.
-