instance method
OpenSSL::PKey::EC::Group#curve_name
() -> ::String
group.curve_name → string or nil
ext/openssl/ossl_pkey_ec.c
View on GitHub ↗
static VALUE ossl_ec_group_get_curve_name(VALUE self)
{
EC_GROUP *group;
int nid;
GetECGroup(self, group);
nid = EC_GROUP_get_curve_name(group);
if (nid == NID_undef)
return Qnil;
return rb_str_new_cstr(OBJ_nid2sn(nid));
}
Returns the curve name (short name) corresponding to this group, or nil if OpenSSL does not have an OID associated with the group.
See the OpenSSL documentation for EC_GROUP_get_curve_name()