check_key()
Raises an exception if the key is invalid.
See the OpenSSL documentation for EC_KEY_check_key()
static VALUE ossl_ec_key_check_key(VALUE self) { EC_KEY *ec; GetEC(self, ec); if (EC_KEY_check_key(ec) != 1) ossl_raise(eECError, "EC_KEY_check_key"); return Qtrue; }