|
SASC-NG
DVBSoftCAM
|
#include <data.h>
Inheritance diagram for cMutableKey:Public Member Functions | |
| cMutableKey (bool Super) | |
| virtual | ~cMutableKey () |
| virtual bool | Cmp (cPlainKey *k) |
| virtual void | Get (void *mem) |
| virtual int | Size (void) |
| virtual bool | SetKey (void *Key, int Keylen) |
| virtual bool | SetBinKey (unsigned char *Mem, int Keylen) |
Protected Member Functions | |
| virtual cString | Print (void) |
| virtual cPlainKey * | Alloc (void) const =0 |
| cMutableKey::cMutableKey | ( | bool | Super | ) |
| virtual cPlainKey* cMutableKey::Alloc | ( | void | ) | const [protected, pure virtual] |
Implemented in cDualKey.
Referenced by SetBinKey(), and SetKey().
| bool cMutableKey::Cmp | ( | cPlainKey * | k | ) | [virtual] |
Implements cPlainKey.
Definition at line 764 of file data.c.
References cPlainKey::Cmp(), and k.
{
cMutableKey *mk=dynamic_cast<cMutableKey *>(k); // high magic ;)
return real->Cmp(mk ? mk->real : k);
}
| void cMutableKey::Get | ( | void * | mem | ) | [virtual] |
Implements cPlainKey.
Definition at line 770 of file data.c.
References cPlainKey::Get().
{
real->Get(mem);
}
| cString cMutableKey::Print | ( | void | ) | [protected, virtual] |
Implements cPlainKey.
Definition at line 775 of file data.c.
References cPlainKey::Print().
{
return real->Print();
}
| bool cMutableKey::SetBinKey | ( | unsigned char * | Mem, |
| int | Keylen | ||
| ) | [virtual] |
Implements cPlainKey.
Definition at line 753 of file data.c.
References Alloc(), and cPlainKey::SetBinKey().
Referenced by cPlainKeySeca::Parse(), cPlainKeyNagra::Parse(), and cPlainKeyCryptoworks::Parse().
| bool cMutableKey::SetKey | ( | void * | Key, |
| int | Keylen | ||
| ) | [virtual] |
| int cMutableKey::Size | ( | void | ) | [virtual] |
Implements cPlainKey.
Definition at line 759 of file data.c.
References cPlainKey::Size().
{
return real->Size();
}