Fix issues in RSA::setKey

Related issue: #22