Sorry, I think my previous comment was unclear; I meant that this functino `_int_to_bn` could be it's own PR, and that `generate_rsa_private_key` could use it (right now!). I don't think making these other two functions in this PR helps.

Sorry about the confusion!