Added SHA256 and SHA512 support