org.bouncycastle.pqc.jcajce.spec.QTESLAParameterSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-ext-jdk15on Show documentation
Show all versions of bcprov-ext-jdk15on 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. Note: this package includes the NTRU encryption algorithms.
package org.bouncycastle.pqc.jcajce.spec;
import java.security.spec.AlgorithmParameterSpec;
import org.bouncycastle.pqc.crypto.qtesla.QTESLASecurityCategory;
/**
* qTESLA parameter details. These are divided up on the basis of the security categories for each
* individual parameter set.
*/
public class QTESLAParameterSpec
implements AlgorithmParameterSpec
{
/**
* Available security categories.
*/
public static final String HEURISTIC_I = QTESLASecurityCategory.getName(QTESLASecurityCategory.HEURISTIC_I);
public static final String HEURISTIC_III_SIZE = QTESLASecurityCategory.getName(QTESLASecurityCategory.HEURISTIC_III_SIZE);
public static final String HEURISTIC_III_SPEED = QTESLASecurityCategory.getName(QTESLASecurityCategory.HEURISTIC_III_SPEED);
public static final String PROVABLY_SECURE_I = QTESLASecurityCategory.getName(QTESLASecurityCategory.PROVABLY_SECURE_I);
public static final String PROVABLY_SECURE_III = QTESLASecurityCategory.getName(QTESLASecurityCategory.PROVABLY_SECURE_III);
private String securityCategory;
/**
* Base constructor.
*
* @param securityCategory the security category we want this parameterSpec to match.
*/
public QTESLAParameterSpec(String securityCategory)
{
this.securityCategory = securityCategory;
}
/**
* Return the security category.
*
* @return the security category.
*/
public String getSecurityCategory()
{
return securityCategory;
}
}