org.bouncycastle.pqc.jcajce.spec.SIKEParameterSpec 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.jcajce.spec;
import java.security.spec.AlgorithmParameterSpec;
import java.util.HashMap;
import java.util.Map;
import org.bouncycastle.pqc.crypto.sike.SIKEParameters;
import org.bouncycastle.util.Strings;
public class SIKEParameterSpec
implements AlgorithmParameterSpec
{
public static final SIKEParameterSpec sikep434 = new SIKEParameterSpec(SIKEParameters.sikep434);
public static final SIKEParameterSpec sikep503 = new SIKEParameterSpec(SIKEParameters.sikep503);
public static final SIKEParameterSpec sikep610 = new SIKEParameterSpec(SIKEParameters.sikep610);
public static final SIKEParameterSpec sikep751 = new SIKEParameterSpec(SIKEParameters.sikep751);
public static final SIKEParameterSpec sikep434_compressed = new SIKEParameterSpec(SIKEParameters.sikep434_compressed);
public static final SIKEParameterSpec sikep503_compressed = new SIKEParameterSpec(SIKEParameters.sikep503_compressed);
public static final SIKEParameterSpec sikep610_compressed = new SIKEParameterSpec(SIKEParameters.sikep610_compressed);
public static final SIKEParameterSpec sikep751_compressed = new SIKEParameterSpec(SIKEParameters.sikep751_compressed);
private static Map parameters = new HashMap();
private final String name;
private SIKEParameterSpec(SIKEParameters parameters)
{
this.name = parameters.getName();
}
public String getName()
{
return name;
}
public static SIKEParameterSpec fromName(String name)
{
return (SIKEParameterSpec) parameters.get(Strings.toLowerCase(name));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy