- for (int i = 0; i < len; i += 2) {
- sscanf(&data[i], "%02x", (unsigned int *)&buf[i / 2]);
- }
- ComputeCrc14443(CRC_14443_B, buf, len, &buf[len], &buf[len+1]);
+ for (int i = 0; i < size; i += 2)
+ sscanf(&data[i], "%02x", (unsigned int *)&buf[i / 2]);