Add support for SHA256

I needed SHA256 RSA signing support and so I had to make some modifications. I thought maybe these could be a part of the standard package.