ec-info: Overhaul elliptic curve domain parameter checking.