|
SASC-NG
DVBSoftCAM
|
#include <data.h>
Inheritance diagram for cPlainKey: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 |
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) |
Friends | |
| class | cPlainKeys |
| class | cMutableKey |
| cPlainKey::cPlainKey | ( | bool | CanSupersede | ) |
| bool cPlainKey::CanSupersede | ( | void | ) | const [inline, protected] |
Definition at line 274 of file data.h.
Referenced by cDualKey::Alloc(), and cPlainKey().
{ return super; }
| virtual bool cPlainKey::Cmp | ( | cPlainKey * | k | ) | [pure virtual] |
Implemented in cPlainKeyDummy, cMutableKey, cHexKey, and cBNKey.
Referenced by cMutableKey::Cmp().
| virtual bool cPlainKey::CmpExtId | ( | cPlainKey * | k | ) | [inline, protected, virtual] |
| virtual void cPlainKey::Get | ( | void * | mem | ) | [pure virtual] |
Implemented in cPlainKeyDummy, cMutableKey, cHexKey, and cBNKey.
Referenced by cN2Prov0101::Algo(), cMutableKey::Get(), cTpsKeys::GetV2Key(), cN2Prov4101::PostProcAU(), cSystemViaccess::ProcessECM(), cSystemSeca::ProcessECM(), cSystemNagra2::ProcessECM(), cSystemNagra::ProcessECM(), cSystemIrd2::ProcessECM(), cSystemIrd::ProcessECM(), cSystemCryptoworks::ProcessECM(), cSystemConstCw::ProcessECM(), cSystemConax::ProcessECM(), cSystemSeca::ProcessEMM(), cSystemNagra2::ProcessEMM(), cSystemNagra::ProcessEMM(), and cSystemIrd2::ProcessEMM().
| int cPlainKey::IdSize | ( | void | ) | [protected, virtual] |
Reimplemented in 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 bool cPlainKey::Parse | ( | const char * | line | ) | [pure virtual] |
Implemented in cPlainKeyDummy, cHexKey, cBNKey, cPlainKeyStd, cPlainKeyConax, cPlainKeyConstCw, cPlainKeyCryptoworks, cPlainKeyIrd, cPlainKeyNagra, cPlainKeySeca, and cPlainKeyVia.
Referenced by cPlainKeys::ParseLine().
| virtual cString cPlainKey::Print | ( | void | ) | [protected, pure virtual] |
Implemented in cPlainKeyDummy, cMutableKey, cHexKey, and cBNKey.
Referenced by cMutableKey::Print(), and ToString().
| cString cPlainKey::PrintKeyNr | ( | void | ) | [protected, virtual] |
Reimplemented in cPlainKeyDummy, cPlainKeyConax, cPlainKeyConstCw, cPlainKeyCryptoworks, cPlainKeyIrd, cPlainKeyNagra, cPlainKeySeca, and cPlainKeyVia.
Definition at line 719 of file data.c.
References keynr, and cString::sprintf().
Referenced by cPlainKeys::KeyString(), and ToString().
{
return cString::sprintf("%02X",keynr);
}
| bool cPlainKey::Set | ( | int | Type, |
| int | Id, | ||
| int | Keynr, | ||
| void * | Key, | ||
| int | Keylen | ||
| ) |
| virtual bool cPlainKey::SetBinKey | ( | unsigned char * | Mem, |
| int | Keylen | ||
| ) | [pure virtual] |
Implemented in cPlainKeyDummy, cMutableKey, cHexKey, cBNKey, cPlainKeyIrd, and cPlainKeyVia.
Referenced by cMutableKey::SetBinKey().
| virtual bool cPlainKey::SetKey | ( | void * | Key, |
| int | Keylen | ||
| ) | [pure virtual] |
Implemented in cPlainKeyDummy, cMutableKey, cHexKey, cBNKey, cPlainKeyIrd, and cPlainKeyVia.
Referenced by Set(), and cMutableKey::SetKey().
| 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] |
Implemented in cPlainKeyDummy, cMutableKey, cHexKey, and cBNKey.
Referenced by cSystemViaccess::ProcessECM(), and cMutableKey::Size().
| 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());
}
friend class cMutableKey [friend] |
friend class cPlainKeys [friend] |
| int cPlainKey::id |
Definition at line 280 of file data.h.
Referenced by cPlainKeys::FindKeyNoTrig(), cSystem::KeyOK(), cPlainKeys::KeyString(), and cPlainKeyIrd::Parse().
| int cPlainKey::keynr |
Definition at line 280 of file data.h.
Referenced by cPlainKeys::FindKeyNoTrig(), cPlainKeySeca::IsBNKey(), cPlainKeyNagra::IsBNKey(), cPlainKeyCryptoworks::IsBNKey(), cSystem::KeyOK(), cPlainKeys::KeyString(), cPlainKeyVia::Parse(), cPlainKeySeca::Parse(), cPlainKeyNagra::Parse(), cPlainKeyIrd::Parse(), cPlainKeyCryptoworks::Parse(), cPlainKeyConstCw::Parse(), cPlainKeyConax::Parse(), cPlainKeyStd::Parse(), cPlainKeyVia::PrintKeyNr(), cPlainKeySeca::PrintKeyNr(), cPlainKeyNagra::PrintKeyNr(), cPlainKeyIrd::PrintKeyNr(), cPlainKeyCryptoworks::PrintKeyNr(), cPlainKeyConax::PrintKeyNr(), PrintKeyNr(), Set(), cPlainKeyVia::SetBinKey(), and cPlainKeyVia::SetKey().
| int cPlainKey::type |
Definition at line 280 of file data.h.
Referenced by cPlainKeys::FindKeyNoTrig(), cSystem::KeyOK(), cPlainKeys::KeyString(), cPlainKeyVia::Parse(), cPlainKeySeca::Parse(), cPlainKeyNagra::Parse(), cPlainKeyIrd::Parse(), cPlainKeyCryptoworks::Parse(), cPlainKeyConstCw::Parse(), cPlainKeyConax::Parse(), cPlainKeyStd::Parse(), cPlainKeyDummy::Parse(), Set(), and ToString().