All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.pqc.jcajce.spec.BIKEParameterSpec Maven / Gradle / Ivy

Go to download

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.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