Code example for ECParameterSpec

0
                spec.getN(),
                spec.getH());
        } 
        else 
        { 
            return new ECParameterSpec(
                ellipticCurve,
                new ECPoint(
                    spec.getG().getX().toBigInteger(),
                    spec.getG().getY().toBigInteger()),
                spec.getN(),
                spec.getH().intValue());
        } 
    } 
 
    public static org.bouncycastle.jce.spec.ECParameterSpec convertSpec( 
        ECParameterSpec ecSpec,
        boolean withCompression)
    { 
        ECCurve curve = convertCurve(ecSpec.getCurve());