FileDocCategorySizeDatePackage
ECNamedCurveTable.javaAPI DocAzureus 3.0.3.41438Mon Mar 20 04:56:46 GMT 2006org.bouncycastle.jce

ECNamedCurveTable

public class ECNamedCurveTable extends Object
a table of locally supported named curves.

Fields Summary
Constructors Summary
Methods Summary
public static java.util.EnumerationgetNames()
return an enumeration of the names of the available curves.

return
an enumeration of the names of the available curves.

        return X962NamedCurves.getNames();
    
public static org.bouncycastle.jce.spec.ECNamedCurveParameterSpecgetParameterSpec(java.lang.String name)
return a parameter spec representing the passed in named curve. The routine returns null if the curve is not present.

param
name the name of the curve requested
return
a parameter spec for the curve, null if it is not available.

        X9ECParameters  ecP = X962NamedCurves.getByName(name);
        if (ecP == null)
        {
            return null;
        }

        return new ECNamedCurveParameterSpec(
                                        name,
                                        ecP.getCurve(),
                                        ecP.getG(),
                                        ecP.getN(),
                                        ecP.getH(),
                                        ecP.getSeed());