|
SASC-NG
DVBSoftCAM
|
#include <parse.h>
Static Public Member Functions | |
| static int | CmdLen (const unsigned char *data) |
| static int | Payload (const unsigned char *data, const unsigned char **payload) |
| static int | SysMode (const unsigned char *data) |
| static int | KeyNr (const unsigned char *data) |
| static const unsigned char * | ProvIdPtr (const unsigned char *data) |
| static int | ProvId (const unsigned char *data) |
| int cParseSeca::CmdLen | ( | const unsigned char * | data | ) | [static] |
Definition at line 270 of file parse.c.
References SecaCmd::cmdLen1, and SecaCmd::cmdLen2.
Referenced by Payload(), and cSystemSeca::ProcessEMM().
| int cParseSeca::KeyNr | ( | const unsigned char * | data | ) | [static] |
Definition at line 301 of file parse.c.
References TID.
Referenced by cSmartCardSeca::Decode(), cSystemSeca::ProcessECM(), cCardClientRadegast::ProcessECM(), cSystemSeca::ProcessEMM(), and cSmartCardSeca::Update().
{
switch(TID(data)) {
case 0x80:
case 0x81: return ((struct SecaEcm *)data)->keyNr; break;
case 0x82: return ((struct SecaEmmUnique *)data)->keyNr; break;
case 0x84: return ((struct SecaEmmShared *)data)->keyNr; break;
default: return -1;
}
}
| int cParseSeca::Payload | ( | const unsigned char * | data, |
| const unsigned char ** | payload | ||
| ) | [static] |
Definition at line 276 of file parse.c.
Referenced by cSmartCardSeca::Decode(), cSystemSeca::ProcessECM(), cSystemSeca::ProcessEMM(), and cSmartCardSeca::Update().
| int cParseSeca::ProvId | ( | const unsigned char * | data | ) | [static] |
Definition at line 323 of file parse.c.
References ProvIdPtr().
Referenced by cSmartCardSeca::Decode(), and cSystemSeca::ProcessEMM().
{
const unsigned char *id=cParseSeca::ProvIdPtr(data);
return id ? (id[0]<<8)+id[1] : -1;
}
| const unsigned char * cParseSeca::ProvIdPtr | ( | const unsigned char * | data | ) | [static] |
Definition at line 312 of file parse.c.
References TID.
Referenced by cProviderSeca::MatchID(), and ProvId().
{
switch(TID(data)) {
case 0x80:
case 0x81: return ((struct SecaEcm *)data)->id;
case 0x82: return ((struct SecaEmmUnique *)data)->id;
case 0x84: return ((struct SecaEmmShared *)data)->id;
}
return 0;
}
| int cParseSeca::SysMode | ( | const unsigned char * | data | ) | [static] |
Definition at line 290 of file parse.c.
References TID.
Referenced by cSmartCardSeca::Decode(), cSystemSeca::ProcessECM(), cSystemSeca::ProcessEMM(), and cSmartCardSeca::Update().
{
switch(TID(data)) {
case 0x80:
case 0x81: return ((struct SecaEcm *)data)->sm; break;
case 0x82: return ((struct SecaEmmUnique *)data)->sm; break;
case 0x84: return ((struct SecaEmmShared *)data)->sm; break;
default: return -1;
}
}