added support for more hash algorithms (SHA2, RIPEMED160)
(this patch required for saml2test alg config option)