Updated the HMAC-SHA1 function