instance method
OpenSSL::PKey::EC#public?
() -> bool
key.public? => true or false
ext/openssl/ossl_pkey_ec.c
View on GitHub ↗
static VALUE ossl_ec_key_is_public(VALUE self)
{
OSSL_3_const EC_KEY *ec;
GetEC(self, ec);
return EC_KEY_get0_public_key(ec) ? Qtrue : Qfalse;
}
Returns whether this EC instance has a public key. The public key (EC::Point) can be retrieved with EC#public_key.
See also
#private_key?
#public_key
#private_key=
#public_key=
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0