|
SASC
DVBSoftCAM
|
#include <system-common.h>
Inheritance diagram for cBNKey:Public Member Functions | |
| cBNKey (bool Super, bool Rotate=false) | |
| virtual | ~cBNKey () |
| virtual bool | Parse (const char *line) |
| cBNKey (bool Super, bool Rotate=false) | |
| virtual | ~cBNKey () |
| virtual bool | Parse (const char *line) |
Protected Member Functions | |
| virtual bool | SetKey (void *Key, int Keylen) |
| virtual bool | SetBinKey (unsigned char *Mem, int Keylen) |
| virtual cString | Print (void) |
| 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) |
| virtual cString | Print (void) |
| virtual bool | Cmp (cPlainKey *k) |
| virtual void | Get (void *mem) |
| virtual int | Size (void) |
Definition at line 49 of file system-common.h.
| cBNKey::cBNKey | ( | bool | Super, |
| bool | Rotate = false |
||
| ) |
Definition at line 78 of file system-common.c.
| cBNKey::~cBNKey | ( | ) | [virtual] |
Definition at line 84 of file system-common.c.
{
delete key;
}
| cBNKey::cBNKey | ( | bool | Super, |
| bool | Rotate = false |
||
| ) |
| virtual cBNKey::~cBNKey | ( | ) | [virtual] |
| bool cBNKey::Cmp | ( | cPlainKey * | k | ) | [protected, virtual] |
| void cBNKey::Get | ( | void * | mem | ) | [protected, virtual] |
Implements cPlainKey.
Definition at line 107 of file system-common.c.
{
BN_copy((BIGNUM *)mem,*key);
}
| virtual void cBNKey::Get | ( | void * | mem | ) | [protected, virtual] |
Implements cPlainKey.
| virtual bool cBNKey::Parse | ( | const char * | line | ) | [inline, virtual] |
Implements cPlainKey.
Reimplemented in cPlainKeyConax, and cPlainKeyConax.
Definition at line 64 of file system-common.h.
{ return false; }
| virtual bool cBNKey::Parse | ( | const char * | line | ) | [inline, virtual] |
Implements cPlainKey.
Reimplemented in cPlainKeyConax, and cPlainKeyConax.
Definition at line 64 of file system-common.h.
{ return false; }
| cString cBNKey::Print | ( | void | ) | [protected, virtual] |
Implements cPlainKey.
Definition at line 112 of file system-common.c.
References AUTOMEM, HexStr(), cBN::Put(), and cBN::PutLE().
| virtual bool cBNKey::SetBinKey | ( | unsigned char * | Mem, |
| int | Keylen | ||
| ) | [protected, virtual] |
Implements cPlainKey.
| bool cBNKey::SetBinKey | ( | unsigned char * | Mem, |
| int | Keylen | ||
| ) | [protected, virtual] |
Implements cPlainKey.
Definition at line 95 of file system-common.c.
References cBN::Get(), and cBN::GetLE().
Referenced by cPlainKeyConax::Parse().
| bool cBNKey::SetKey | ( | void * | Key, |
| int | Keylen | ||
| ) | [protected, virtual] |
Implements cPlainKey.
Definition at line 89 of file system-common.c.
{
keylen=Keylen;
return BN_copy(*key,(BIGNUM *)Key)!=0;
}
| virtual bool cBNKey::SetKey | ( | void * | Key, |
| int | Keylen | ||
| ) | [protected, virtual] |
Implements cPlainKey.
| virtual int cBNKey::Size | ( | void | ) | [inline, protected, virtual] |
| virtual int cBNKey::Size | ( | void | ) | [inline, protected, virtual] |