[ec] Match built-in curves on EC_GROUP_new_from_ecparameters