instance method
OpenSSL::PKey::EC#group
() -> ::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)
{
OSSL_3_const 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.