instance method
OpenSSL::PKey::DSA#private?
() -> bool
dsa.private? → true | false
ext/openssl/ossl_pkey_dsa.c
View on GitHub ↗
static VALUE
ossl_dsa_is_private(VALUE self)
{
OSSL_3_const DSA *dsa;
GetDSA(self, dsa);
return DSA_PRIVATE(self, dsa) ? Qtrue : Qfalse;
}
Indicates whether this DSA instance has a private key associated with it or not. The private key may be retrieved with DSA#private_key.