#include <tps.h>
List of all members.
Detailed Description
Definition at line 71 of file tps.h.
Constructor & Destructor Documentation
| cTpsKey::cTpsKey |
( |
void |
| ) |
|
| cTpsKey::cTpsKey |
( |
void |
| ) |
|
Member Function Documentation
| const unsigned char* cTpsKey::Key |
( |
int |
st | ) |
const [inline] |
| const unsigned char* cTpsKey::Key |
( |
int |
st | ) |
const [inline] |
Definition at line 83 of file tps.h.
| int cTpsKey::Mode |
( |
int |
st | ) |
const [inline] |
| int cTpsKey::Mode |
( |
int |
st | ) |
const [inline] |
Definition at line 84 of file tps.h.
{ return step[st].mode; }
| int cTpsKey::Opmode |
( |
void |
| ) |
const [inline] |
Definition at line 85 of file tps.h.
| int cTpsKey::Opmode |
( |
void |
| ) |
const [inline] |
| void cTpsKey::Set |
( |
const unsigned char * |
mem | ) |
|
| void cTpsKey::Set |
( |
const cTpsKey * |
k | ) |
|
| void cTpsKey::Set |
( |
const cTpsKey * |
k | ) |
|
| void cTpsKey::Set |
( |
const unsigned char * |
mem | ) |
|
Definition at line 469 of file tps.c.
References i, and key.
{
timestamp=*((unsigned int *)mem);
if((unsigned int)timestamp>0x7FFFFFFFUL) timestamp=0x7FFFFFFFL;
opmode=mem[52+3];
for(int i=0; i<3; i++) {
memcpy(step[i].key,&mem[4+i*16],16);
step[i].mode=mem[52+i];
}
}
| time_t cTpsKey::Timestamp |
( |
void |
| ) |
const [inline] |
Definition at line 86 of file tps.h.
| time_t cTpsKey::Timestamp |
( |
void |
| ) |
const [inline] |
Definition at line 86 of file tps.h.
| cString cTpsKey::ToString |
( |
bool |
hide = false | ) |
[virtual] |
Reimplemented from cStructItem.
Definition at line 490 of file tps.c.
References crc32_le(), and HexStr().
{
unsigned char tmp[60];
Put(&tmp[4]);
*((unsigned int *)tmp)=crc32_le(0,&tmp[4],sizeof(tmp)-4);
char str[420];
HexStr(str,tmp,sizeof(tmp));
return str;
}
| virtual cString cTpsKey::ToString |
( |
bool |
hide = false | ) |
[virtual] |
Member Data Documentation
Definition at line 76 of file tps.h.
The documentation for this class was generated from the following files:
- contrib/sasc-ng/sc/PLUGINS/src/sc-src/systems/viaccess/tps.h
- systems/viaccess/tps.h
- contrib/sasc-ng/sc/PLUGINS/src/sc-src/systems/viaccess/tps.c
- systems/viaccess/tps.c