org.bouncycastle.pqc.jcajce.spec.BIKEParameterSpec 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.
package org.bouncycastle.pqc.jcajce.spec;
import java.security.spec.AlgorithmParameterSpec;
import java.util.HashMap;
import java.util.Map;
import org.bouncycastle.pqc.crypto.bike.BIKEParameters;
import org.bouncycastle.util.Strings;
public class BIKEParameterSpec
implements AlgorithmParameterSpec
{
public static final BIKEParameterSpec bike128 = new BIKEParameterSpec(BIKEParameters.bike128);
public static final BIKEParameterSpec bike192 = new BIKEParameterSpec(BIKEParameters.bike192);
public static final BIKEParameterSpec bike256 = new BIKEParameterSpec(BIKEParameters.bike256);
private static Map parameters = new HashMap();
static
{
parameters.put("bike128", bike128);
parameters.put("bike192", bike192);
parameters.put("bike256", bike256);
}
private final String name;
private BIKEParameterSpec(BIKEParameters parameters)
{
this.name = parameters.getName();
}
public String getName()
{
return name;
}
public static BIKEParameterSpec fromName(String name)
{
return (BIKEParameterSpec) parameters.get(Strings.toLowerCase(name));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy