/* eval_buffers Evaluate if two given buffers are equal  */
static int eval_buffers(const struct buf_ctx *buf, const uint8_t *expected, uint16_t len)
/* eval_buffers Evaluate if two given buffers are equal  */
static int eval_buffers(const struct buf_ctx *buf, const uint8_t *expected, uint16_t len)
{
	if (buf->end - buf->cur != len) {
		goto exit_eval;
	}
	if (memcmp(expected, buf->cur, buf->end - buf->cur) != 0) {
		goto exit_eval;
	}
	return TC_PASS;
exit_eval:
	TC_PRINT("FAIL\n");
	TC_PRINT("Computed:");
	print_array(buf->cur, buf->end - buf->cur);
	TC_PRINT("Expected:");
	print_array(expected, len);
	return TC_FAIL;
}