Started adding RSA functions