|
SASC-NG
DVBSoftCAM
|
Inheritance diagram for cSeca2ProvPL:Public Member Functions | |
| cSeca2ProvPL (unsigned short Id) | |
Protected Member Functions | |
| virtual void | PreCW (unsigned char *data) |
| virtual void | ChainTableXor (unsigned char *data, unsigned short index) |
| cSeca2ProvPL::cSeca2ProvPL | ( | unsigned short | Id | ) |
Definition at line 1086 of file seca.c.
References cSeca2Prov::pData, cSeca2Prov::perm, provDataPL, and ptPL.
:cSeca2Prov(Id) { pData=&provDataPL; perm=ptPL; }
| void cSeca2ProvPL::ChainTableXor | ( | unsigned char * | data, |
| unsigned short | index | ||
| ) | [protected, virtual] |
| void cSeca2ProvPL::PreCW | ( | unsigned char * | data | ) | [protected, virtual] |
Reimplemented from cSeca2Prov.
Definition at line 1092 of file seca.c.
References xxor.
{
static const unsigned char XT[]={ 0xA0,0x12,0x23,0x35,0x46,0xB0,0xDF,0xCA, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 };
static const unsigned char PT[]={ 0x05,0x04,0x06,0x07,0x03,0x00,0x01,0x02, 0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F };
unsigned char temp[16];
xxor(temp,16,data,XT);
for(int i=15; i>=0; i--) data[i]=temp[PT[i]];
}