Lines Matching refs:binSimResponse
2535 unsigned char *binSimResponse = NULL; local
2617 binSimResponse = (unsigned char*)malloc(binSimResponseLen + sizeof(char));
2618 if (binSimResponse == NULL) goto error;
2619 memset(binSimResponse, 0, binSimResponseLen);
2621 binSimResponse[0] = (sresLen / 2) & 0xFF;
2623 snprintf((char*)(binSimResponse + 1), sresLen / 2, "%s", tmpBinSimResponse);
2627 binSimResponse[1 + sresLen / 2] = (kcLen / 2) & 0xFF;
2629 snprintf((char*)(binSimResponse + 1 + sresLen / 2 + 1), kcLen / 2, "%s", tmpBinSimResponse);
2647 binSimResponse = (unsigned char*)malloc(binSimResponseLen + sizeof(char));
2648 if (binSimResponse == NULL) goto error;
2649 memset(binSimResponse, 0, binSimResponseLen);
2651 binSimResponse[0] = 0xDB;
2653 binSimResponse[1] = (ckLen / 2) & 0xFF;
2655 snprintf((char*)(binSimResponse + 2), ckLen / 2 + 1, "%s", tmpBinSimResponse);
2659 binSimResponse[2 + ckLen / 2] = (ikLen / 2) & 0xFF;
2661 snprintf((char*)(binSimResponse + 2 + ckLen / 2 + 1), ikLen / 2 + 1, "%s",
2666 binSimResponse[2 + ckLen / 2 + 1 + ikLen / 2] = (resAutsLen / 2) & 0xFF;
2668 snprintf((char*)(binSimResponse + 2 + ckLen / 2 + 1 + ikLen / 2 + 1), resAutsLen / 2 + 1,
2676 if (NULL == base64_encode(binSimResponse, response.simResponse, binSimResponseLen - 1)) {
2689 free(binSimResponse);
2698 free(binSimResponse);