|
SASC-NG
DVBSoftCAM
|
#include <stdlib.h>#include <stdio.h>#include "crypto.h"#include "data.h"#include "system-common.h"#include "systems/nagra/cpu.c"#include "systems/nagra/nagra.c"#include "systems/nagra/nagra1.c"#include "compat.h"Go to the source code of this file.
Classes | |
| class | cTestNagra |
Defines | |
| #define | TESTER |
Functions | |
| int | main (int argc, char *argv[]) |
| #define TESTER |
Definition at line 5 of file testN1Emu.c.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 120 of file testN1Emu.c.
References InitAll(), cTestNagra::Process(), ReadRaw(), and test().
{
if(argc<3) {
printf("usage: %s <plugin-dir> <id> <rawemm-file>\n",argv[0]);
return 1;
}
InitAll(argv[1]);
unsigned char emmdata[64];
int emmlen=ReadRaw(argv[3],emmdata,sizeof(emmdata));
if(emmlen!=64) {
printf("bad rawemm file format\n");
return 1;
}
const int id=strtol(argv[2],0,0);
cTestNagra test;
test.Process(id,emmdata);
return 0;
}