Some code for measuring HMAC encoding and sending