Fix odd bitlength RSA key generation

Fix issue that caused a hang up when generating RSA keys of odd
bitlength.
2 files changed