org.bouncycastle.crypto.params
Class MLKEMParameters
java.lang.Object
org.bouncycastle.crypto.params.MLKEMParameters
- All Implemented Interfaces:
- CipherParameters, KEMParameters, PQCParameters
- public class MLKEMParameters
- extends java.lang.Object
- implements KEMParameters, PQCParameters
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ml_kem_512
public static final MLKEMParameters ml_kem_512
ml_kem_768
public static final MLKEMParameters ml_kem_768
ml_kem_1024
public static final MLKEMParameters ml_kem_1024
getK
public int getK()
getEncapsulationLength
public int getEncapsulationLength()
getName
public java.lang.String 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:
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-KEM-512,
192 for ML-KEM-768 and 256 for ML-KEM-1024 (NIST IR 8547, Table 5).
- Specified by:
getClassicalSecurityStrength in interface PQCParameters
- Returns:
- the classical security strength in bits.
getSessionKeySize
public int getSessionKeySize()