|
SASC-NG
DVBSoftCAM
|
#include <parse.h>
Static Public Member Functions | |
| static const unsigned char * | PayloadStart (const unsigned char *data) |
| static const unsigned char * | NanoStart (const unsigned char *data) |
| static const unsigned char * | CheckNano90 (const unsigned char *data) |
| static const unsigned char * | CheckNano90FromNano (const unsigned char *data) |
| static int | KeyNr (const unsigned char *data) |
| static int | KeyNrFromNano (const unsigned char *data) |
| static const unsigned char * | ProvIdPtr (const unsigned char *data) |
| static int | ProvId (const unsigned char *data) |
| const unsigned char * cParseViaccess::CheckNano90 | ( | const unsigned char * | data | ) | [static] |
Definition at line 474 of file parse.c.
References CheckNano90FromNano(), and NanoStart().
Referenced by KeyNr(), and ProvIdPtr().
{
return CheckNano90FromNano(NanoStart(data));
}
| const unsigned char * cParseViaccess::CheckNano90FromNano | ( | const unsigned char * | data | ) | [static] |
Definition at line 479 of file parse.c.
References data.
Referenced by CheckNano90(), and cSystemViaccess::ProcessECM().
| int cParseViaccess::KeyNr | ( | const unsigned char * | data | ) | [static] |
Definition at line 485 of file parse.c.
References CheckNano90(), and KeyNrFromNano().
Referenced by cSmartCardViaccess::Decode(), and cCardClientRadegast::ProcessECM().
{
return KeyNrFromNano(CheckNano90(data));
}
| int cParseViaccess::KeyNrFromNano | ( | const unsigned char * | data | ) | [static] |
Definition at line 490 of file parse.c.
Referenced by KeyNr(), cSystemViaccess::ProcessECM(), cSystemViaccess::ProcessEMM(), and cSmartCardViaccess::Update().
| const unsigned char * cParseViaccess::NanoStart | ( | const unsigned char * | data | ) | [static] |
Definition at line 464 of file parse.c.
References PayloadStart().
Referenced by cProviderViaccess::Assemble(), CheckNano90(), cSystemViaccess::ProcessEMM(), and cSmartCardViaccess::Update().
{
const unsigned char *p=PayloadStart(data);
switch(data[0]) {
case 0x80:
case 0x81: if(p && p[0]==0xD2) return p+p[1]+2; // skip TPS
}
return p;
}
| const unsigned char * cParseViaccess::PayloadStart | ( | const unsigned char * | data | ) | [static] |
Definition at line 451 of file parse.c.
Referenced by cSmartCardViaccess::Decode(), NanoStart(), and cSystemViaccess::ProcessECM().
| int cParseViaccess::ProvId | ( | const unsigned char * | data | ) | [static] |
Definition at line 501 of file parse.c.
References ProvIdPtr().
{
const unsigned char *id=cParseViaccess::ProvIdPtr(data);
return id ? (id[0]<<16)+(id[1]<<8)+(id[2]&0xf0) : -1;
}
| const unsigned char * cParseViaccess::ProvIdPtr | ( | const unsigned char * | data | ) | [static] |
Definition at line 495 of file parse.c.
References CheckNano90().
Referenced by cSmartCardViaccess::Decode(), cProviderViaccess::MatchID(), and ProvId().
{
data=CheckNano90(data);
return data ? &data[2] : 0;
}