SASC
DVBSoftCAM

cPlainKey Class Reference

#include <data.h>

Inheritance diagram for cPlainKey:

List of all members.

Public Member Functions

 cPlainKey (bool CanSupersede)
virtual bool Parse (const char *line)=0
virtual cString ToString (bool hide)
virtual bool Cmp (cPlainKey *k)=0
virtual void Get (void *mem)=0
virtual int Size (void)=0
bool Set (int Type, int Id, int Keynr, void *Key, int Keylen)
virtual bool SetKey (void *Key, int Keylen)=0
virtual bool SetBinKey (unsigned char *Mem, int Keylen)=0
 cPlainKey (bool CanSupersede)
virtual bool Parse (const char *line)=0
virtual cString ToString (bool hide)
virtual bool Cmp (cPlainKey *k)=0
virtual void Get (void *mem)=0
virtual int Size (void)=0
bool Set (int Type, int Id, int Keynr, void *Key, int Keylen)
virtual bool SetKey (void *Key, int Keylen)=0
virtual bool SetBinKey (unsigned char *Mem, int Keylen)=0

Public Attributes

int type
int id
int keynr

Protected Member Functions

void SetSupersede (bool val)
bool CanSupersede (void) const
virtual int IdSize (void)
virtual cString Print (void)=0
virtual cString PrintKeyNr (void)
virtual bool CmpExtId (cPlainKey *k)
void SetSupersede (bool val)
bool CanSupersede (void) const
virtual int IdSize (void)
virtual cString Print (void)=0
virtual cString PrintKeyNr (void)
virtual bool CmpExtId (cPlainKey *k)

Friends

class cPlainKeys
class cMutableKey

Detailed Description

Definition at line 267 of file data.h.


Constructor & Destructor Documentation

cPlainKey::cPlainKey ( bool  CanSupersede)

Definition at line 708 of file data.c.

References CanSupersede().

{
  super=CanSupersede;
}
cPlainKey::cPlainKey ( bool  CanSupersede)

Member Function Documentation

bool cPlainKey::CanSupersede ( void  ) const [inline, protected]

Definition at line 274 of file data.h.

Referenced by cDualKey::Alloc(), and cPlainKey().

{ return super; }
bool cPlainKey::CanSupersede ( void  ) const [inline, protected]

Definition at line 274 of file data.h.

{ return super; }
virtual bool cPlainKey::Cmp ( cPlainKey *  k) [pure virtual]
virtual bool cPlainKey::Cmp ( cPlainKey *  k) [pure virtual]
virtual bool cPlainKey::CmpExtId ( cPlainKey *  k) [inline, protected, virtual]

Reimplemented in cPlainKeyConstCw, and cPlainKeyConstCw.

Definition at line 278 of file data.h.

{ return true; }
virtual bool cPlainKey::CmpExtId ( cPlainKey *  k) [inline, protected, virtual]

Reimplemented in cPlainKeyConstCw, and cPlainKeyConstCw.

Definition at line 278 of file data.h.

{ return true; }
virtual void cPlainKey::Get ( void *  mem) [pure virtual]
int cPlainKey::IdSize ( void  ) [protected, virtual]

Reimplemented in cPlainKeyConstCw, cPlainKeyCryptoworks, cPlainKeyIrd, cPlainKeyNagra, cPlainKeySeca, cPlainKeyVia, cPlainKeyConstCw, cPlainKeyCryptoworks, cPlainKeyIrd, cPlainKeyNagra, cPlainKeySeca, and cPlainKeyVia.

Definition at line 724 of file data.c.

Referenced by cPlainKeys::KeyString(), and ToString().

{
  return id>0xFF ? (id>0xFFFF ? 6 : 4) : 2;
}
virtual cString cPlainKey::Print ( void  ) [protected, pure virtual]
virtual cString cPlainKey::Print ( void  ) [protected, pure virtual]
bool cPlainKey::Set ( int  Type,
int  Id,
int  Keynr,
void *  Key,
int  Keylen 
)

Definition at line 713 of file data.c.

References keynr, SetKey(), and type.

Referenced by cPlainKeys::NewKey().

{
  type=Type; id=Id; keynr=Keynr;
  return SetKey(Key,Keylen);
}
bool cPlainKey::Set ( int  Type,
int  Id,
int  Keynr,
void *  Key,
int  Keylen 
)
virtual bool cPlainKey::SetBinKey ( unsigned char *  Mem,
int  Keylen 
) [pure virtual]
virtual bool cPlainKey::SetBinKey ( unsigned char *  Mem,
int  Keylen 
) [pure virtual]
virtual bool cPlainKey::SetKey ( void *  Key,
int  Keylen 
) [pure virtual]
virtual bool cPlainKey::SetKey ( void *  Key,
int  Keylen 
) [pure virtual]
void cPlainKey::SetSupersede ( bool  val) [inline, protected]

Definition at line 273 of file data.h.

{ super=val; }
void cPlainKey::SetSupersede ( bool  val) [inline, protected]

Definition at line 273 of file data.h.

Referenced by cPlainKeyVia::SetBinKey(), cPlainKeyIrd::SetBinKey(), cPlainKeyVia::SetKey(), and cPlainKeyIrd::SetKey().

{ super=val; }
virtual int cPlainKey::Size ( void  ) [pure virtual]
virtual int cPlainKey::Size ( void  ) [pure virtual]
virtual cString cPlainKey::ToString ( bool  hide) [virtual]

Reimplemented from cStructItem.

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

Reimplemented from cStructItem.

Definition at line 729 of file data.c.

References IdSize(), Print(), PrintKeyNr(), cString::sprintf(), and type.

Referenced by cSystem::KeyOK().

{
  return cString::sprintf(hide ? "%c %.*X %s %.4s..." : "%c %.*X %s %s",type,IdSize(),id,*PrintKeyNr(),*Print());
}

Friends And Related Function Documentation

cMutableKey [friend]

Definition at line 269 of file data.h.

cPlainKeys [friend]

Definition at line 268 of file data.h.


Member Data Documentation


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