`generate_rsa_private_key` is already in master, but I've put an improved _int_to_bn + the private/public RSA struct creation methods in #657.