Fix crypto_hash_sha256 usage. Reported by sam.