refactor RSA signing to prep for prehash support (#3240)

1 file changed