Fully functional RSA generation and use