Add wrapper to calculate sha256 hash and keyed_hash.
Fix crypto bug where HMAC of dummy was calculated instead of nonce hash.