Fix bug RSA class implementation