added RSA basic functions