removed commented code (expecting RSA struct instead)