Two ways of calculating an hmac