add hash and hmac for sha256