org.bouncycastle.pqc.crypto.crystals.dilithium.DilithiumParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-ext-debug-jdk18on Show documentation
Show all versions of bcprov-ext-debug-jdk18on 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 Java 1.8 and later with debug enabled.
The newest version!
package org.bouncycastle.pqc.crypto.crystals.dilithium;
import java.security.SecureRandom;
public class DilithiumParameters
{
public static final DilithiumParameters dilithium2 = new DilithiumParameters("dilithium2", 2, false);
public static final DilithiumParameters dilithium3 = new DilithiumParameters("dilithium3", 3, false);
public static final DilithiumParameters dilithium5 = new DilithiumParameters("dilithium5", 5, false);
private final int k;
private final String name;
/**
* @deprecated
* obsolete to be removed
*/
private final boolean usingAES;// or shake
private DilithiumParameters(String name, int k, boolean usingAES)
{
this.name = name;
this.k = k;
this.usingAES = usingAES;
}
DilithiumEngine getEngine(SecureRandom random)
{
return new DilithiumEngine(k, random, usingAES);
}
public String getName()
{
return name;
}
}