Add support for SHA256 and PKCS#8

I needed RSA signatures with SHA256 digests and PKCS#8 keys so I had to make some modifications. I thought maybe these could be a part of the standard package.