]> www.vanbest.org Git - sasc-ng.git/commitdiff
nagra-0101: map39/map3a
authorleslie <unknown>
Sun, 8 Jun 2008 13:36:34 +0000 (21:36 +0800)
committerleslie <unknown>
Sun, 8 Jun 2008 13:36:34 +0000 (21:36 +0800)
systems/nagra/nagra2-0101.c
systems/nagra/nagra2-0501.c
systems/nagra/nagra2.c

index 2b92790032730c133db9eb1dc0bec39420d3a097..d45bbc97b7e8209a2fd844f0acf229c8647c721f 100644 (file)
@@ -855,6 +855,7 @@ bool cN2Prov0101::ProcessMap(int f)
       if(l>wordsize) { l=wordsize; dl=l<<3; }
       // fall through
     case 0x32:
+    case 0x39:
     case 0x3b:
       if(l>34) { l=34; dl=34<<3; }
       GetMem(HILO(0x44),tmp,dl,0);
@@ -863,6 +864,7 @@ bool cN2Prov0101::ProcessMap(int f)
     case 0x21:
     case 0x30:
     case 0x31:
+    case 0x3a:
     case 0x43:
       DoMap(f);
       break;
index 083c3bdb1abeb26323eb650977869038631580e3..d249d7620e8ef2dcb7a291b3f8b323b78f03bd07 100644 (file)
@@ -49,11 +49,6 @@ void cMap0501::DoMap(int f, unsigned char *data, int l)
       I.GetLE(data,l<<3);
       MonMul(B,I,B);
       break;
-    case 0x3a:
-      MonInit();
-      MonMul(B,A,B);
-      MonMul(B,A,B);
-      break;
     default:
       if(!cMapCore::DoMap(f,data,l))
         PRINTF(L_SYS_MAP,"%04x: unsupported call %02x",mId,f);
index baf7c98c5354a3ab7b6c29406d5f14547de195d9..c3b6699d40e85b7e79906b3323e59e057648086c 100644 (file)
@@ -684,6 +684,13 @@ bool cMapCore::DoMap(int f, unsigned char *data, int l)
     case COPY_D_C:
       last=3; BN_copy(C,D); cycles=462+(8*l1+3)/5*5-6; break;
 
+    case 0x39:
+    case 0x3a:
+      MonInit();
+      if(f==0x39) I.GetLE(data,wordsize<<3);
+      MonMul(B,(f==0x39?I:A),B);
+      MonMul(B,A,B);
+      break;
     case 0x43: // init SHA1
       SHA1_Init(&sctx);
       break;