instance method
OpenSSL::PKey::EC::Point#on_curve?
() -> bool
point.on_curve? => true | false
ext/openssl/ossl_pkey_ec.c
View on GitHub ↗
static VALUE ossl_ec_point_is_on_curve(VALUE self)
{
EC_POINT *point;
const EC_GROUP *group;
GetECPoint(self, point);
GetECPointGroup(self, group);
switch (EC_POINT_is_on_curve(group, point, ossl_bn_ctx)) {
case 1: return Qtrue;
case 0: return Qfalse;
default: ossl_raise(eEC_POINT, "EC_POINT_is_on_curve");
}
UNREACHABLE;
}
No documentation available