Class MLKEMParameters
java.lang.Object
org.bouncycastle.crypto.params.MLKEMParameters
- All Implemented Interfaces:
CipherParameters, KEMParameters, PQCParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MLKEMParametersstatic final MLKEMParametersstatic final MLKEMParameters -
Method Summary
Modifier and TypeMethodDescriptionintReturn the classical security strength of this parameter set: 128 bits for ML-KEM-512, 192 for ML-KEM-768 and 256 for ML-KEM-1024 (NIST IR 8547, Table 5).intintgetK()getName()intReturn the NIST security category of this parameter set: 1 for ML-KEM-512, 3 for ML-KEM-768 and 5 for ML-KEM-1024 (NIST IR 8547, Table 5).int
-
Field Details
-
ml_kem_512
-
ml_kem_768
-
ml_kem_1024
-
-
Method Details
-
getK
public int getK() -
getEncapsulationLength
public int getEncapsulationLength() -
getName
-
getSecurityCategory
public int getSecurityCategory()Return the NIST security category of this parameter set: 1 for ML-KEM-512, 3 for ML-KEM-768 and 5 for ML-KEM-1024 (NIST IR 8547, Table 5).- 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-KEM-512, 192 for ML-KEM-768 and 256 for ML-KEM-1024 (NIST IR 8547, Table 5).- Specified by:
getClassicalSecurityStrengthin interfacePQCParameters- Returns:
- the classical security strength in bits.
-
getSessionKeySize
public int getSessionKeySize()
-