SASC-NG
DVBSoftCAM

cSeca2ProvPL Class Reference

Inheritance diagram for cSeca2ProvPL:

List of all members.

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)

Detailed Description

Definition at line 1045 of file seca.c.


Constructor & Destructor Documentation

cSeca2ProvPL::cSeca2ProvPL ( unsigned short  Id)

Definition at line 1086 of file seca.c.

References cSeca2Prov::pData, cSeca2Prov::perm, provDataPL, and ptPL.


Member Function Documentation

void cSeca2ProvPL::ChainTableXor ( unsigned char *  data,
unsigned short  index 
) [protected, virtual]

Implements cSeca2Prov.

Definition at line 1102 of file seca.c.

References cSeca2Prov::MT().

{
  const unsigned char *T1=MT();
  for(int i=0; i<8; i++) data[i]^=T1[index++];
}
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]];
}

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines