I don't believe OpenSSL has any mechanism to directly calculate P and Q; this requires an iterative process. Once you have those, however, calculating the rest are simple calculations using the BN library.
.................................... Erik Tkal Juniper OAC/UAC/Pulse Development -----Original Message----- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of David Madden Sent: Thursday, August 09, 2012 5:11 PM To: openssl-users@openssl.org Subject: p2q RSA key augmentation Hi, I have an RSA key { D, E, N } generated by another library. I can use OpenSSL to encrypt & decrypt interoperably, but I would like to extend the key with the other factors OpenSSL uses to work faster (factors P, Q, DMP1, DMQ1, IQMP). Is there a library function that computes these other factors? Thanks, -- Mersenne Law LLC * www.mersenne.com * +1-503-679-1671 - Small Business, Startup and Intellectual Property Law - 1500 SW First Ave. * Suite 1170 * Portland, Oregon 97201 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org