Changeset 1200 for trunk/reader-irdeto.c


Ignore:
Timestamp:
01/12/10 23:02:14 (12 years ago)
Author:
nightmann
Message:

For irdeto cards you can now use boxkey in oscam.server as irdeto 'camkey' and rsakey in oscam.server as irdeto camkey-data. (not fully tested yet)
For further information and discussion see: http://streamboard.gmc.to/wbb2/thread.php?postid=317175#post317175 or http://streamboard.gmc.to:8001/ticket/333

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/reader-irdeto.c

    r1125 r1200  
    164164    return(0);
    165165  nagra=0;
    166 
    167   /*
    168    * Check Nagra
    169    */
    170   /*if ((!reader_cmd2icc(sc_GetROM, sizeof(sc_GetROM))) && (cta_res[cta_lr-2]==0x90))
    171   {
    172     nagra=1;
    173     if (cta_res[0]==0x90)
    174     {
    175       char *ptr;
    176       cta_res[cta_res[1]+4]='\0';
    177       if( (ptr=strstr(cta_res+2, "ASP")) )
    178       {
    179         sprintf(buf, ", rom=%c.%c%c", ptr[3], ptr[4], ptr[5]);
    180         if( (ptr=strstr(cta_res+2, "Rev")) )
    181           sprintf(buf+10, "(%c%c%c)", ptr[3], ptr[4], ptr[5]);
    182       }
    183     }
    184   } */
     166 
     167  if(reader[ridx].has_rsa) // we use rsa from config as camkey
     168  {
     169    cs_debug("[irdeto-reader] using camkey data from config");
     170    memcpy(&sc_GetCamKey383C[5], reader[ridx].rsa_mod, 0x40);
     171    memcpy(sc_CamKey, reader[ridx].nagra_boxkey, 8);
     172    cs_debug("[irdeto-reader]      camkey: %s", cs_hexdump (0, sc_CamKey, 8));
     173    cs_debug("[irdeto-reader] camkey-data: %s", cs_hexdump (0, &sc_GetCamKey383C[5], 32));
     174    cs_debug("[irdeto-reader] camkey-data: %s", cs_hexdump (0, &sc_GetCamKey383C[37], 32));
     175  }
    185176
    186177  /*
     
    247238 
    248239  cs_ptyp=D_DEVICE;
    249   cs_debug("set camkey for type=%d", camkey);
     240  cs_debug("[irdeto-reader] set camkey for type=%d", camkey);
    250241  cs_ptyp=cs_ptyp_orig;
    251242
Note: See TracChangeset for help on using the changeset viewer.