DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Macros | Typedefs | Functions
stbcikeys.c File Reference

CI Content Control - descrambler keys. More...

#include <string.h>
#include "techtype.h"
#include "dbgfuncs.h"
#include "stbhwos.h"
#include "stbci.h"
#include "stberc.h"
#include "stbdpc.h"
#include "stbpvr.h"
#include "stbheap.h"
#include "stbcikeys.h"
#include "stbci_int.h"

Macros

#define EVEN_KEY_REGISTER   0
 
#define ODD_KEY_REGISTER   1
 

Typedefs

typedef struct key_info S_KEY_INFO
 
typedef struct s_cikeys_info S_CIKEYS_INFO
 

Functions

void STB_CiKeysInitialise (void)
 CI descrambler keys support initialise.
 
void STB_CiKeysDisable (U8BIT slot_id)
 Disable CC keys for slot, as CAM has been removed. More...
 
void STB_CiKeysRemove (U8BIT slot_id)
 Notify module removal. More...
 
void STB_CINotifyCCKey (U8BIT slot_id, U8BIT cipher, U8BIT key_register, U8BIT *key, U8BIT *civ)
 Handle content control keys. More...
 
void STB_CiKeysApply (U8BIT path, U8BIT slot_id)
 Apply stored CC keys (if any) on given path. More...
 
void STB_CiKeysClear (U8BIT path, U8BIT slot_id)
 Clear CC keys (if any) from given path. More...
 

Detailed Description

CI Content Control - descrambler keys.

Date
28 November 2016
Author
Adam Sturtridge

Function Documentation

void STB_CiKeysApply ( U8BIT  path,
U8BIT  slot_id 
)

Apply stored CC keys (if any) on given path.

Parameters
pathPath to apply keys on
slot_idzero-based CI slot identifier (0, 1, ...)
void STB_CiKeysClear ( U8BIT  path,
U8BIT  slot_id 
)

Clear CC keys (if any) from given path.

Parameters
pathPath to clear keys from
slot_idzero-based CI slot identifier (0, 1, ...)
void STB_CiKeysDisable ( U8BIT  slot_id)

Disable CC keys for slot, as CAM has been removed.

Disable CC keys for slot, as CAM is being removed.

Parameters
slot_idzero-based CI slot identifier (0, 1, ...)
void STB_CiKeysRemove ( U8BIT  slot_id)

Notify module removal.

Process CAM removal from slot for CI Keys support.

Parameters
slot_idzero-based CI slot identifier (0, 1, ...)
void STB_CINotifyCCKey ( U8BIT  slot_id,
U8BIT  cipher,
U8BIT  key_register,
U8BIT *  key,
U8BIT *  civ 
)

Handle content control keys.

Parameters
slot_idzero-based CI slot identifier (0, 1, ...)
ciphercipher to be used
key_registerkey register to be used
keyAES/DES key (according to cipher)
civinitialisation vector for cipher