|
SASC-NG
DVBSoftCAM
|
#include <nagra2.h>
Public Member Functions | |
| cMapReg (int &_pos, int *_defwordsize=0, int _maxwordsize=DEF_MAXWORDSIZE) | |
| operator BIGNUM * () | |
| BIGNUM * | operator-> () |
| BIGNUM * | Value (int wsize=0, bool mask=false) |
| void | Commit (int wsize=-1, int resync=-1) |
| void | Reload (int wsize=0) |
| void | GetLE (const unsigned char *in, int n=0) |
| void | PutLE (unsigned char *out, int n=0) |
| void | Set (BIGNUM *val, int wsize) |
| void | Clear (int wsize) |
| void | SetPos (int _pos) |
Protected Member Functions | |
| void | SetMaxWordSize (int max) |
| void | SetDefWordSize (int *_defwordsize) |
| cMapReg::cMapReg | ( | int & | _pos, |
| int * | _defwordsize = 0, |
||
| int | _maxwordsize = DEF_MAXWORDSIZE |
||
| ) |
Definition at line 356 of file nagra2.c.
References DEF_WORDSIZE, SetDefWordSize(), and SetMaxWordSize().
:pos(_pos)
{
SetDefWordSize(_defwordsize);
SetMaxWordSize(_maxwordsize);
wordsize=DEF_WORDSIZE;
}
| void cMapReg::Clear | ( | int | wsize | ) |
| void cMapReg::Commit | ( | int | wsize = -1, |
| int | resync = -1 |
||
| ) |
Definition at line 400 of file nagra2.c.
Referenced by Clear(), GetLE(), cMap0101::Map(), PutLE(), Set(), and Value().
{
if(resync<0 && wsize<0) resync=1;
wsize=OpWordSize(wsize>=0?wsize:wordsize);
ClearFullReg(wsize);
PrepTmp(reg,wsize);
BN_add(fullreg,fullreg,tmp);
if(resync) {
if(wordsize==wsize) BN_mask_bits(reg,wsize*64);
else wordsize=wsize;
}
}
| void cMapReg::GetLE | ( | const unsigned char * | in, |
| int | n = 0 |
||
| ) |
Definition at line 421 of file nagra2.c.
References Commit(), and cBN::GetLE().
Referenced by cMap4101::Map(), cMap0501::Map(), and cMap0101::Map().
| cMapReg::operator BIGNUM * | ( | ) | [inline] |
| BIGNUM* cMapReg::operator-> | ( | ) | [inline] |
| void cMapReg::PutLE | ( | unsigned char * | out, |
| int | n = 0 |
||
| ) |
Definition at line 430 of file nagra2.c.
References Commit(), i, and cBN::PutLE().
Referenced by cMap0101::Map().
| void cMapReg::Reload | ( | int | wsize = 0 | ) |
| void cMapReg::Set | ( | BIGNUM * | val, |
| int | wsize | ||
| ) |
| void cMapReg::SetDefWordSize | ( | int * | _defwordsize | ) | [inline, protected] |
| void cMapReg::SetMaxWordSize | ( | int | max | ) | [inline, protected] |
| void cMapReg::SetPos | ( | int | _pos | ) | [inline] |
Definition at line 81 of file nagra2.h.
Referenced by cMapCore::IMonInit0(), and cMap0101::Map().
{ pos=_pos; }
| BIGNUM * cMapReg::Value | ( | int | wsize = 0, |
| bool | mask = false |
||
| ) |
Definition at line 364 of file nagra2.c.
References Commit(), and Reload().
Referenced by operator BIGNUM *(), and operator->().