Implemented getKeys for RSA