⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system-common.h

📁 这是一个LINUX环境的 VDR 插件源代码,可支持Irdeto, Seca, Viaccess, Nagra, Conax & Cryptoworks等CA系统的读卡、共享等操作。
💻 H
字号:
/* * Softcam plugin to VDR (C++) * * This code is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Or, point your browser to http://www.gnu.org/copyleft/gpl.html */#ifndef ___SYSTEM_COMMON_H#define ___SYSTEM_COMMON_H#include "data.h"#include "system.h"#define MBC(a,b)    (((a)<<8)+(b))#define ADDC3(ab,c) ((ab)+((c)<<16))#define MBC3(a,b,c) ADDC3(MBC((a),(b)),(c))#define C2(x)       (((x)>>8)&0xFF)#define C3(x)       (((x)>>16)&0xFF)#define C2MASK      0xFFFF// ----------------------------------------------------------------class cHexKey : public cPlainKey {private:  int keylen;  unsigned char *key;protected:  virtual bool SetKey(void *Key, int Keylen);  virtual bool SetBinKey(unsigned char *Mem, int Keylen);  virtual cString Print(void);  virtual bool Cmp(void *Key, int Keylen);  virtual bool Cmp(cPlainKey *k);  virtual void Get(void *mem);  virtual int Size(void) { return keylen; }public:  cHexKey(bool Super);  virtual ~cHexKey();  virtual bool Parse(const char *line) { return false; }  };// ----------------------------------------------------------------class cBN;class cBNKey : public cPlainKey {private:  bool rotate;  int keylen;  cBN *key;protected:  virtual bool SetKey(void *Key, int Keylen);  virtual bool SetBinKey(unsigned char *Mem, int Keylen);  virtual cString Print(void);  virtual bool Cmp(void *Key, int Keylen);  virtual bool Cmp(cPlainKey *k);  virtual void Get(void *mem);  virtual int Size(void) { return keylen; }public:  cBNKey(bool Super, bool Rotate=false);  virtual ~cBNKey();  virtual bool Parse(const char *line) { return false; }  };// ----------------------------------------------------------------class cDualKey : public cMutableKey {private:  bool rotate;protected:  virtual bool IsBNKey(void) const=0;  virtual cPlainKey *Alloc(void) const;public:  cDualKey(bool Super, bool Rotate);  };// ----------------------------------------------------------------class cPlainKeyStd : public cHexKey {public:  cPlainKeyStd(bool Super);  virtual bool Parse(const char *line);  };// ----------------------------------------------------------------class cSystemScCore : public cSystem {private:  int scId;  const char *scName;public:  cSystemScCore(const char *Name, int Pri, int ScId, const char *ScName);  virtual bool ProcessECM(const cEcmInfo *ecm, unsigned char *data);  virtual void ProcessEMM(int pid, int caid, unsigned char *data);  };#endif //___SYSTEM_COMMON_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -