CHANGED:correct the HMAC algorithm and apply