Changeset 1074


Ignore:
Timestamp:
01/05/10 17:57:00 (12 years ago)
Author:
nightmann
Message:

prepare oscam config for tigercard values.
Note: use tiger_ideakey or n3_boxkey 8Byte for Idea Signature calc. Use tiger_rsakey 120Byte for tiger RSA key

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/globals.h

    r1030 r1074  
    388388  int       nagra_native;
    389389  uchar     aes_key[16];
    390   uchar     rsa_mod[64]; //rsa modulus for nagra cards
     390  uchar     rsa_mod[120]; //rsa modulus for nagra cards.
    391391  ulong     sidtabok;   // positiv services
    392392  ulong     sidtabno;   // negative services
  • trunk/oscam-config.c

    r1048 r1074  
    11171117    if (key_atob_l(value, rdr->rsa_mod, 128))
    11181118    {
    1119       fprintf(stderr, "Configuration reader: Error in RSA Key\n");
     1119      fprintf(stderr, "Configuration reader: Error in n3_rsakey\n");
    11201120      exit(1);
    11211121    }
    11221122    return;
    11231123  }
    1124   if (!strcmp(token, "n3_boxkey"))
     1124  if (!strcmp(token, "tiger_rsakey"))
     1125  {
     1126    rdr->nagra_native=1;
     1127    if (key_atob_l(value, rdr->rsa_mod, 240))
     1128    {
     1129      fprintf(stderr, "Configuration reader: Error in tiger_rsakey\n");
     1130      exit(1);
     1131    }
     1132    return;
     1133  }
     1134  if (!strcmp(token, "n3_boxkey") || !strcmp(token, "tiger_ideakey"))
    11251135  {
    11261136    if (key_atob_l(value, rdr->nagra_boxkey, 16))
Note: See TracChangeset for help on using the changeset viewer.