Changeset 6630
- Timestamp:
- 04/23/12 14:42:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-bulcrypt.c
r6628 r6630 492 492 } 493 493 494 static void bulcrypt_get_emm_filter(struct s_reader * rdr, uchar *filter) 495 { 496 int32_t idx = 2; 497 498 filter[0] = 0xFF; 499 filter[1] = 0; 500 501 filter[1]++; 502 filter[idx++] = EMM_UNIQUE; 503 filter[idx++] = 0; 504 filter[idx + 0] = 0x82; 505 filter[idx + 1] = rdr->hexserial[0]; 506 filter[idx + 2] = rdr->hexserial[1]; 507 filter[idx + 3] = rdr->hexserial[2]; 508 filter[idx + 4] = 0xFF; 509 filter[idx + 0 + 16] = 0xFF; 510 filter[idx + 1 + 16] = 0xFF; 511 filter[idx + 2 + 16] = 0xFF; 512 filter[idx + 3 + 16] = 0xFF; 513 filter[idx + 4 + 16] = 0xFF; 514 idx += 32; 515 516 filter[1]++; 517 filter[idx++] = EMM_UNIQUE; 518 filter[idx++] = 0; 519 filter[idx + 0] = 0x85; 520 filter[idx + 1] = rdr->hexserial[0]; 521 filter[idx + 2] = rdr->hexserial[1]; 522 filter[idx + 3] = rdr->hexserial[2]; 523 filter[idx + 4] = 0xFF; 524 filter[idx + 0 + 16] = 0xFF; 525 filter[idx + 1 + 16] = 0xFF; 526 filter[idx + 2 + 16] = 0xFF; 527 filter[idx + 3 + 16] = 0xFF; 528 filter[idx + 4 + 16] = 0xFF; 529 idx += 32; 530 531 filter[1]++; 532 filter[idx++] = EMM_SHARED; 533 filter[idx++] = 0; 534 filter[idx + 0] = 0x84; 535 filter[idx + 2] = rdr->hexserial[0]; 536 filter[idx + 2] = rdr->hexserial[1]; 537 filter[idx + 3] = 0xFF; 538 filter[idx + 0 + 16] = 0xFF; 539 filter[idx + 1 + 16] = 0xFF; 540 filter[idx + 2 + 16] = 0xFF; 541 filter[idx + 3 + 16] = 0xFF; 542 idx += 32; 543 544 filter[1]++; 545 filter[idx++] = EMM_GLOBAL; 546 filter[idx++] = 0; 547 filter[idx + 0] = 0x8a; 548 filter[idx + 1] = 0x00; 549 filter[idx + 2] = rdr->hexserial[0]; 550 filter[idx + 3] = rdr->hexserial[1]; 551 filter[idx + 4] = 0xFF; 552 filter[idx + 0 + 16] = 0xFF; 553 filter[idx + 1 + 16] = 0xFF; 554 filter[idx + 2 + 16] = 0xFF; 555 filter[idx + 3 + 16] = 0xFF; 556 filter[idx + 4 + 16] = 0xFF; 557 idx += 32; 558 559 filter[1]++; 560 filter[idx++] = EMM_UNKNOWN; 561 filter[idx++] = 0; 562 filter[idx + 0] = 0x8b; 563 filter[idx + 1] = 0x00; 564 filter[idx + 2] = rdr->hexserial[0]; 565 filter[idx + 3] = 0xFF; 566 filter[idx + 0 + 16] = 0xFF; 567 filter[idx + 1 + 16] = 0xFF; 568 filter[idx + 2 + 16] = 0xFF; 569 filter[idx + 3 + 16] = 0xFF; 570 idx += 32; 571 572 return; 573 } 574 494 575 static int32_t bulcrypt_do_emm(struct s_reader *reader, EMM_PACKET *ep) 495 576 { … … 643 724 ph->card_init = bulcrypt_card_init; 644 725 ph->get_emm_type = bulcrypt_get_emm_type; 726 ph->get_emm_filter = bulcrypt_get_emm_filter; 645 727 ph->desc = "bulcrypt"; 646 728 ph->caids[0] = 0x5581;
Note:
See TracChangeset
for help on using the changeset viewer.