Hashing support for SHA-256 and SHA-512