correct byte length for hmac and adjust sender code example