Changeset 723
- Timestamp:
- 12/06/09 15:29:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-nagra.c
r720 r723 12 12 extern ushort cta_lr; 13 13 int is_pure_nagra=0; 14 int hasMod=0;15 14 unsigned char rom[15]; 16 15 unsigned char plainDT08RSA[64]; … … 344 343 345 344 getCamID(); 346 cs_debug("[nagra-reader] using irdID%sfor dt08 calc",cs_hexdump (1,camid,4));345 cs_debug("[nagra-reader] using camid %sfor dt08 calc",cs_hexdump (1,camid,4)); 347 346 348 347 // Calculate signature … … 351 350 memcpy (static_dt08 + 4, camid, 4); 352 351 Signature(sign2,IdeaCamKey,static_dt08,72); 353 354 memcpy (plainDT08RSA, static_dt08+8, 64);355 352 356 353 BN_CTX_free (ctx); … … 360 357 if (memcmp (signature, sign2, 8)==0) 361 358 { 359 memcpy (plainDT08RSA, static_dt08+8, 64); 362 360 cs_debug("[nagra-reader] DT08 signature check ok"); 363 hasMod=1;364 361 } 365 362 else 366 363 { 364 memcpy (plainDT08RSA, reader[ridx].rsa_mod, 64); 367 365 cs_debug("[nagra-reader] DT08 signature check nok"); 368 hasMod=0;366 cs_debug("[nagra-reader] DT08 use n3_rsakey as pairingkey"); 369 367 } 370 368 }
Note:
See TracChangeset
for help on using the changeset viewer.