SASC
DVBSoftCAM

sc-cryptoworks.c File Reference

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "system-common.h"
#include "smartcard.h"
#include "data.h"
#include "parse.h"
#include "crypto.h"
#include "opts.h"
#include "misc.h"
#include "log-sc.h"
#include "log-core.h"
#include "version.h"

Go to the source code of this file.

Classes

class  cSystemScCryptoworks
class  cSystemLinkScCryptoworks
class  cSmartCardDataCryptoworks
class  cSmartCardCryptoworks
struct  chid_dat
class  cSmartCardLinkCryptoworks

Defines

#define SYSTEM_NAME   "SC-Cryptoworks"
#define SYSTEM_PRI   -5
#define SC_NAME   "Cryptoworks"
#define SC_ID   MAKE_SC_ID('C','r','W','o')
#define L_SC   10
#define L_SC_EXTRA   LCLASS(L_SC,L_SC_LASTDEF<<1)
#define L_SC_ALL   LALL(L_SC_EXTRA)

Enumerations

enum  eDataType {
  dtPIN, dtIPK, dtUCPK, dtPIN,
  dtPIN, dtAES, dtBoxId, dtSeed,
  dtPIN, dtIPK, dtUCPK, dtPIN,
  dtPIN, dtAES, dtBoxId, dtSeed
}

Functions

 SCAPIVERSTAG ()

Variables

static struct LogModule lm_sc
static int disableParental = 0
static cSystemLinkScCryptoworks staticInit
static struct StatusMsg msgs []
static struct CardConfig cardCfg
static cSmartCardLinkCryptoworks staticScInit

Define Documentation

#define L_SC   10

Definition at line 43 of file sc-cryptoworks.c.

#define L_SC_ALL   LALL(L_SC_EXTRA)

Definition at line 45 of file sc-cryptoworks.c.

#define L_SC_EXTRA   LCLASS(L_SC,L_SC_LASTDEF<<1)

Definition at line 44 of file sc-cryptoworks.c.

#define SC_ID   MAKE_SC_ID('C','r','W','o')

Definition at line 41 of file sc-cryptoworks.c.

#define SC_NAME   "Cryptoworks"

Definition at line 40 of file sc-cryptoworks.c.

#define SYSTEM_NAME   "SC-Cryptoworks"

Definition at line 37 of file sc-cryptoworks.c.

#define SYSTEM_PRI   -5

Definition at line 38 of file sc-cryptoworks.c.


Enumeration Type Documentation

enum eDataType
Enumerator:
dtPIN 
dtIPK 
dtUCPK 
dtPIN 
dtPIN 
dtAES 
dtBoxId 
dtSeed 
dtPIN 
dtIPK 
dtUCPK 
dtPIN 
dtPIN 
dtAES 
dtBoxId 
dtSeed 

Definition at line 107 of file sc-cryptoworks.c.


Function Documentation

SCAPIVERSTAG ( )

Variable Documentation

struct CardConfig cardCfg [static]
Initial value:
 {
  SM_8E2,1000,100
  }

Definition at line 211 of file sc-cryptoworks.c.

int disableParental = 0 [static]

Definition at line 55 of file sc-cryptoworks.c.

struct LogModule lm_sc [static]
Initial value:
 {
  (LMOD_ENABLE|L_SC_ALL)&LOPT_MASK,
  (LMOD_ENABLE|L_SC_DEFDEF)&LOPT_MASK,
  "sc-cryptoworks",
  { L_SC_DEFNAMES,"extra" }
  }

Definition at line 47 of file sc-cryptoworks.c.

struct StatusMsg msgs[] [static]
Initial value:
 {
  { { 0x90,0x00 }, "Instruction executed without errors", true },
  { { 0x92,0x40 }, "Memory problem", false },
  { { 0x94,0x02 }, "Out of range", false },
  { { 0x94,0x04 }, "File not found", false },
  { { 0x98,0x04 }, "Verification failed (wrong PIN)", false },
  { { 0x98,0x05 }, "Wrong signature", false },
  { { 0x98,0x40 }, "Verification failed, card blocked (deblocking by uplink required)", false },
  { { 0x9F,0xFF }, "Instruction accepted, data to be read", true },
  { { 0xFF,0xFF }, 0, false }
  }

Definition at line 199 of file sc-cryptoworks.c.

Definition at line 79 of file sc-cryptoworks.c.

Definition at line 568 of file sc-cryptoworks.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines