Method: OpenSSL::PKey::DSA#public?
- Defined in:
- ossl_pkey_dsa.c
permalink #public? ⇒ Boolean
Indicates whether this DSA instance has a public key associated with it or not. The public key may be retrieved with DSA#public_key.
294 295 296 297 298 299 300 301 302 303 304 |
# File 'ossl_pkey_dsa.c', line 294
static VALUE
ossl_dsa_is_public(VALUE self)
{
DSA *dsa;
const BIGNUM *bn;
GetDSA(self, dsa);
DSA_get0_key(dsa, &bn, NULL);
return bn ? Qtrue : Qfalse;
}
|