EC_KEY_get_method
const EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key);
if ((meth = EC_KEY_get_method(ec)) == NULL)