Refactor calls in rsa.c to make code more clear. Make sure bit length of p and q are long enough