Method: OpenSSL::PKey::RSA#public?
- Defined in:
- ossl_pkey_rsa.c
#public? ⇒ true
The return value is always true
since every private key is also a public key.
174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'ossl_pkey_rsa.c', line 174
static VALUE
ossl_rsa_is_public(VALUE self)
{
OSSL_3_const RSA *rsa;
GetRSA(self, rsa);
/*
* This method should check for n and e. BUG.
*/
(void)rsa;
return Qtrue;
}
|