Fix the hmac code. Create a unit test for it using convey.