Hello,
>   Is there a quick and easy way to learn about an RSA key size (in
>   bits) after reading it from a PEM-file with the
>   "PEM_read_RSAPrivateKey()" function?
>   I need to limit the accepted keys to be exactly of certain size, for
>   example - 1024 bits.
key_bits = RSA_size(key) * 8;

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to