org.bouncycastle.pqc.crypto.crystals.kyber.KyberParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-debug-jdk15to18 Show documentation
Show all versions of bcprov-debug-jdk15to18 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.5 to JDK 1.8.
package org.bouncycastle.pqc.crypto.crystals.kyber;
public class KyberParameters
{
public static final KyberParameters kyber512 = new KyberParameters("kyber512", 2, 128, false);
public static final KyberParameters kyber768 = new KyberParameters("kyber768", 3, 192, false);
public static final KyberParameters kyber1024 = new KyberParameters("kyber1024", 4, 256, false);
public static final KyberParameters kyber512_aes = new KyberParameters("kyber512-aes", 2, 128, true);
public static final KyberParameters kyber768_aes = new KyberParameters("kyber768-aes", 3, 192, true);
public static final KyberParameters kyber1024_aes = new KyberParameters("kyber1024-aes", 4, 256, true);
private final String name;
private final int k;
private final int sessionKeySize;
private final boolean usingAes;
private KyberParameters(String name, int k, int sessionKeySize, boolean usingAes)
{
this.name = name;
this.k = k;
this.sessionKeySize = sessionKeySize;
this.usingAes = usingAes;
}
public String getName()
{
return name;
}
KyberEngine getEngine()
{
return new KyberEngine(k, usingAes);
}
public int getSessionKeySize()
{
return sessionKeySize;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy