SASC
DVBSoftCAM

irdeto.h

Go to the documentation of this file.
00001 /*
00002  * Softcam plugin to VDR (C++)
00003  *
00004  * This code is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This code is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
00018  */
00019 
00020 #ifndef __IRDETO_H
00021 #define __IRDETO_H
00022 
00023 #define SYSTEM_IRDETO        0x0600
00024 #define SYSTEM_BETA          0x1700
00025 
00026 #define SYSTEM_NAME          "Irdeto"
00027 #define SYSTEM_PRI           -10
00028 #define SYSTEM_NAME2         "Irdeto2"
00029 #define SYSTEM_PRI2          -8
00030 
00031 #define TYPE_I1   0
00032 #define TYPE_OP   1
00033 #define TYPE_IV   2
00034 #define TYPE_SEED 3
00035 #define TYPE_PMK  4
00036 
00037 #define PROV(keynr)         (((keynr)>>16)&0xFF)
00038 #define TYPE(keynr)         (((keynr)>> 8)&0xFF)
00039 #define ID(keynr)           (((keynr)   )&0xFF)
00040 #define KEYSET(prov,typ,id) ((((prov)&0xFF)<<16)|(((typ)&0xFF)<<8)|((id)&0xFF))
00041 
00042 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines