org.bouncycastle.pqc.jcajce.spec.FalconParameterSpec 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.falcon.FalconParameters;
import org.bouncycastle.util.Strings;
public class FalconParameterSpec
implements AlgorithmParameterSpec
{
public static final FalconParameterSpec falcon_512 = new FalconParameterSpec(FalconParameters.falcon_512);
public static final FalconParameterSpec falcon_1024 = new FalconParameterSpec(FalconParameters.falcon_1024);
private static Map parameters = new HashMap();
static
{
parameters.put("falcon-512", falcon_512);
parameters.put("falcon-1024", falcon_1024);
}
private final String name;
private FalconParameterSpec(FalconParameters parameters)
{
this.name = Strings.toUpperCase(parameters.getName());
}
public String getName()
{
return name;
}
public static FalconParameterSpec fromName(String name)
{
return (FalconParameterSpec)parameters.get(Strings.toLowerCase(name));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy