Method: OpenSSL::PKey::DSA#private?

Defined in:
ossl_pkey_dsa.c

#private?Boolean

Indicates whether this DSA instance has a private key associated with it or not. The private key may be retrieved with DSA#private_key.

Returns:

  • (Boolean)
[View source]

313
314
315
316
317
318
319
320
321
# File 'ossl_pkey_dsa.c', line 313

static VALUE
ossl_dsa_is_private(VALUE self)
{
    DSA *dsa;

    GetDSA(self, dsa);

    return DSA_PRIVATE(self, dsa) ? Qtrue : Qfalse;
}