added support for RSA signatures.