measurement code and switch to HMACSHA256