Function curveFromECParams

Parse certificate EC parameters and generate curve object