SASC
DVBSoftCAM

cIrdCardInfo Class Reference

Inheritance diagram for cIrdCardInfo:

List of all members.

Public Member Functions

bool Parse (const char *line)
virtual cString ToString (bool hide)
bool Parse (const char *line)
virtual cString ToString (bool hide)

Public Attributes

unsigned char PMK [8]
unsigned char HMK [10]
bool haveHMK

Detailed Description

Definition at line 33 of file irdeto1.c.


Member Function Documentation

bool cIrdCardInfo::Parse ( const char *  line)

Definition at line 42 of file irdeto1.c.

References GetHex(), haveHMK, cCardIrdeto::hexSer, HMK, PMK, cProviderIrdeto::provBase, and cProviderIrdeto::provId.

{
  haveHMK=false;
  if(GetHex(line,hexSer,sizeof(hexSer)) && GetHex(line,HMK,sizeof(HMK))) haveHMK=true;
  return GetHex(line,&provBase,sizeof(provBase)) &&
         GetHex(line,provId,sizeof(provId)) &&
         GetHex(line,PMK,sizeof(PMK));
}
bool cIrdCardInfo::Parse ( const char *  line)
virtual cString cIrdCardInfo::ToString ( bool  hide) [virtual]

Reimplemented from cStructItem.

cString cIrdCardInfo::ToString ( bool  hide) [virtual]

Reimplemented from cStructItem.

Definition at line 51 of file irdeto1.c.

References cCardIrdeto::hexSer, HexStr(), HMK, PMK, cProviderIrdeto::provBase, cProviderIrdeto::provId, and cString::sprintf().

{
  char s1[20], s2[24], s3[20], s4[20];
  return cString::sprintf("%s %s %02x %s %s",
     HexStr(s1,hexSer,sizeof(hexSer)),HexStr(s2,HMK,sizeof(HMK)),provBase,
     HexStr(s3,provId,sizeof(provId)),HexStr(s4,PMK,sizeof(PMK)));
}

Member Data Documentation

Definition at line 36 of file irdeto1.c.

Referenced by Parse(), and cSystemIrd::ProcessEMM().

unsigned char cIrdCardInfo::HMK

Definition at line 35 of file irdeto1.c.

Referenced by Parse(), cSystemIrd::ProcessEMM(), and ToString().

unsigned char cIrdCardInfo::PMK

Definition at line 35 of file irdeto1.c.

Referenced by Parse(), cSystemIrd::ProcessEMM(), ToString(), and cIrdCardInfos::Update().


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