Code to look at, if you look for RSA implementation.