End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::PKey::EC#group
key.group => group
ext/openssl/ossl_pkey_ec.c
View on GitHub ↗
static VALUE
ossl_ec_key_get_group(VALUE self)
{
EC_KEY *ec;
const EC_GROUP *group;
GetEC(self, ec);
group = EC_KEY_get0_group(ec);
if (!group)
return Qnil;
return ec_group_new(group);
}
Returns the EC::Group that the key is associated with. Modifying the returned group does not affect key.
See also
#group=
#generate_key!
#generate_key
#initialize_copy
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1