|
SASC
DVBSoftCAM
|
Inheritance diagram for cSeca2ProvSSE:Public Member Functions | |
| cSeca2ProvSSE (unsigned short Id) | |
| virtual | ~cSeca2ProvSSE () |
| virtual bool | Init (void) |
| cSeca2ProvSSE (unsigned short Id) | |
| virtual | ~cSeca2ProvSSE () |
| virtual bool | Init (void) |
Protected Member Functions | |
| virtual bool | InitSSE (void)=0 |
| virtual void | PreSSE (unsigned char *data, int pos) |
| virtual void | PostSSE (unsigned char *data, int pos) |
| const unsigned char * | SSET1 (void) const |
| const unsigned char * | SSET2 (void) const |
| const unsigned char * | SSEPT1 (void) const |
| const unsigned char * | SSEPT2 (void) const |
| const unsigned char * | CWT1 (void) const |
| virtual bool | InitSSE (void)=0 |
| virtual void | PreSSE (unsigned char *data, int pos) |
| virtual void | PostSSE (unsigned char *data, int pos) |
| const unsigned char * | SSET1 (void) const |
| const unsigned char * | SSET2 (void) const |
| const unsigned char * | SSEPT1 (void) const |
| const unsigned char * | SSEPT2 (void) const |
| const unsigned char * | CWT1 (void) const |
Protected Attributes | |
| cDes | des |
| cFileMap * | sse |
| cFileMap * | sseP |
| cFileMap * | cw |
| cSeca2ProvSSE::cSeca2ProvSSE | ( | unsigned short | Id | ) |
| cSeca2ProvSSE::~cSeca2ProvSSE | ( | ) | [virtual] |
| cSeca2ProvSSE::cSeca2ProvSSE | ( | unsigned short | Id | ) |
| virtual cSeca2ProvSSE::~cSeca2ProvSSE | ( | ) | [virtual] |
| const unsigned char* cSeca2ProvSSE::CWT1 | ( | void | ) | const [inline, protected] |
Definition at line 670 of file seca.c.
References cFileMap::Addr(), and cw.
Referenced by cSeca2ProvNL::PostCW(), and cSeca2ProvFR::PostCW().
| const unsigned char* cSeca2ProvSSE::CWT1 | ( | void | ) | const [inline, protected] |
| bool cSeca2ProvSSE::Init | ( | void | ) | [virtual] |
Reimplemented from cSeca2Prov.
Definition at line 691 of file seca.c.
References InitSSE().
{
return InitSSE() && cSeca2Prov::Init();
}
| virtual bool cSeca2ProvSSE::Init | ( | void | ) | [virtual] |
Reimplemented from cSeca2Prov.
| virtual bool cSeca2ProvSSE::InitSSE | ( | void | ) | [protected, pure virtual] |
Implemented in cSeca2ProvFR, cSeca2ProvNL, cSeca2ProvFR, and cSeca2ProvNL.
Referenced by Init().
| virtual bool cSeca2ProvSSE::InitSSE | ( | void | ) | [protected, pure virtual] |
Implemented in cSeca2ProvFR, cSeca2ProvNL, cSeca2ProvFR, and cSeca2ProvNL.
| void cSeca2ProvSSE::PostSSE | ( | unsigned char * | data, |
| int | pos | ||
| ) | [protected, virtual] |
Reimplemented from cSeca2Prov.
Definition at line 709 of file seca.c.
References afterSig, beforeSig, cSeca2Prov::CalcSHASignature(), cDes::Des(), des, and SECA_DES_ENCR.
{
PostSSECore1(data,pos);
// create the SHA hash buffer
unsigned char tmpBuf[64];
memcpy(tmpBuf+0,&data[beforeSig+0],4);
memcpy(tmpBuf+4,&data[afterSig +4],4);
PostSSECore2(tmpBuf+8,data,pos);
// Calc Signature of the generated buffer here
unsigned char MD[20];
CalcSHASignature(tmpBuf,sizeof(tmpBuf),MD,false);
// Prepare DES data
memcpy(tmpBuf+0,&data[beforeSig+4],4);
memcpy(tmpBuf+4,&data[afterSig +0],4);
// DES Enrypt
des.Des(tmpBuf,MD,SECA_DES_ENCR);
// modify data with encrypted DES data
PostSSECore3(data,tmpBuf,pos);
// save the signature
memcpy(tmpBuf,data+afterSig,8);
PostSSECore4(data,pos);
// put the signature in the data
memcpy(data+beforeSig,tmpBuf,8);
}
| virtual void cSeca2ProvSSE::PostSSE | ( | unsigned char * | data, |
| int | pos | ||
| ) | [protected, virtual] |
Reimplemented from cSeca2Prov.
| void cSeca2ProvSSE::PreSSE | ( | unsigned char * | data, |
| int | pos | ||
| ) | [protected, virtual] |
Reimplemented from cSeca2Prov.
| virtual void cSeca2ProvSSE::PreSSE | ( | unsigned char * | data, |
| int | pos | ||
| ) | [protected, virtual] |
Reimplemented from cSeca2Prov.
| const unsigned char* cSeca2ProvSSE::SSEPT1 | ( | void | ) | const [inline, protected] |
| const unsigned char* cSeca2ProvSSE::SSEPT1 | ( | void | ) | const [inline, protected] |
| const unsigned char* cSeca2ProvSSE::SSEPT2 | ( | void | ) | const [inline, protected] |
| const unsigned char* cSeca2ProvSSE::SSEPT2 | ( | void | ) | const [inline, protected] |
Definition at line 669 of file seca.c.
References cFileMap::Addr(), and sseP.
Referenced by cSeca2ProvNL::PostCW(), cSeca2ProvFR::PostCW(), and cSeca2ProvFR::SignatureMod().
| const unsigned char* cSeca2ProvSSE::SSET1 | ( | void | ) | const [inline, protected] |
Definition at line 666 of file seca.c.
References cFileMap::Addr(), and sse.
Referenced by cSeca2ProvNL::ChainTableXor(), cSeca2ProvFR::ChainTableXor(), cSeca2ProvNL::PostCW(), and cSeca2ProvFR::PostCW().
| const unsigned char* cSeca2ProvSSE::SSET1 | ( | void | ) | const [inline, protected] |
| const unsigned char* cSeca2ProvSSE::SSET2 | ( | void | ) | const [inline, protected] |
| const unsigned char* cSeca2ProvSSE::SSET2 | ( | void | ) | const [inline, protected] |
Definition at line 667 of file seca.c.
References cFileMap::Addr(), and sse.
Referenced by cSeca2ProvNL::PostCW(), and cSeca2ProvFR::PostCW().
cFileMap * cSeca2ProvSSE::cw [protected] |
Definition at line 660 of file seca.c.
Referenced by cSeca2ProvSSE(), CWT1(), cSeca2ProvNL::InitSSE(), cSeca2ProvFR::InitSSE(), and ~cSeca2ProvSSE().
cDes cSeca2ProvSSE::des [protected] |
Definition at line 659 of file seca.c.
Referenced by cSeca2ProvNL::PostCW(), cSeca2ProvFR::PostCW(), PostSSE(), and cSeca2ProvFR::SignatureMod().
cFileMap * cSeca2ProvSSE::sse [protected] |
Definition at line 660 of file seca.c.
Referenced by cSeca2ProvSSE(), cSeca2ProvNL::InitSSE(), cSeca2ProvFR::InitSSE(), SSET1(), SSET2(), and ~cSeca2ProvSSE().
cFileMap * cSeca2ProvSSE::sseP [protected] |
Definition at line 660 of file seca.c.
Referenced by cSeca2ProvSSE(), cSeca2ProvNL::InitSSE(), cSeca2ProvFR::InitSSE(), SSEPT1(), SSEPT2(), and ~cSeca2ProvSSE().