Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bouncycastle.jce;
 
 
a table of locally supported named curves.
{
    
return a parameter spec representing the passed in named curve. The routine returns null if the curve is not present.

Parameters:
name the name of the curve requested
Returns:
a parameter spec for the curve, null if it is not available.
        String  name)
    {
        ECDomainParameters  ecP = ECGOST3410NamedCurves.getByName(name);
        if (ecP == null)
        {
            try
            {
                ecP = ECGOST3410NamedCurves.getByOID(new ASN1ObjectIdentifier(name));
            }
            catch (IllegalArgumentException e)
            {
                return null// not an oid.
            }
        }
        
        if (ecP == null)
        {
            return null;
        }
        return new ECNamedCurveParameterSpec(
                                        name,
                                        ecP.getCurve(),
                                        ecP.getG(),
                                        ecP.getN(),
                                        ecP.getH(),
                                        ecP.getSeed());
    }

    
return an enumeration of the names of the available curves.

Returns:
an enumeration of the names of the available curves.
    public static Enumeration getNames()
    {
        return ECGOST3410NamedCurves.getNames();
    }
New to GrepCode? Check out our FAQ X