![JAR search and dependency download from the Maven repository](/logo.png)
org.bouncycastle.pqc.crypto.mlkem.MLKEMParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-jdk14 Show documentation
Show all versions of bcprov-jdk14 Show documentation
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.4.
The newest version!
package org.bouncycastle.pqc.crypto.mlkem;
import org.bouncycastle.pqc.crypto.KEMParameters;
public class MLKEMParameters
implements KEMParameters
{
public static final MLKEMParameters ml_kem_512 = new MLKEMParameters("ML-KEM-512", 2, 256);
public static final MLKEMParameters ml_kem_768 = new MLKEMParameters("ML-KEM-768", 3, 256);
public static final MLKEMParameters ml_kem_1024 = new MLKEMParameters("ML-KEM-1024", 4, 256);
private final String name;
private final int k;
private final int sessionKeySize;
private MLKEMParameters(String name, int k, int sessionKeySize)
{
this.name = name;
this.k = k;
this.sessionKeySize = sessionKeySize;
}
public String getName()
{
return name;
}
public MLKEMEngine getEngine()
{
return new MLKEMEngine(k);
}
public int getSessionKeySize()
{
return sessionKeySize;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy