Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
Functions
WSB_EcmDecrypter Class

A helper module for extracting the traffic key information from BBTS. More...

Functions

WSB_EXPORT WSB_Result WSB_EcmDecrypter_Create (const WSB_EcmDecrypter_Listener listener, WSB_Mpeg2TsTrafficKey_Format key_format, const void *key_format_params, WSB_EcmDecrypter **ecm_decrypter)
 Instantiates a new WSB_EcmDecrypter object. More...
 
WSB_EXPORT WSB_Result WSB_EcmDecrypter_Destroy (WSB_EcmDecrypter *ecm_decrypter)
 Destroys a WSB_EcmDecrypter object. More...
 
WSB_EXPORT WSB_Result WSB_EcmDecrypter_UpdatePmt (WSB_EcmDecrypter *ecm_decrypter, const WSB_Byte *pmt_table, WSB_Size pmt_len, WSB_UInt16 *ecm_pid)
 Provides the ECM decrypter object with a new PMT table. More...
 
WSB_EXPORT WSB_Result WSB_EcmDecrypter_UpdateCat (WSB_EcmDecrypter *ecm_decrypter, const WSB_Byte *cat_table, WSB_Size cat_len, WSB_UInt16 *mrt_pid)
 Provides the ECM decrypter object with a new CAT table. More...
 
WSB_EXPORT WSB_Result WSB_EcmDecrypter_UpdateEcm (WSB_EcmDecrypter *ecm_decrypter, const WSB_Byte *ecm_table, WSB_Size ecm_len)
 Provides the ECM decrypter object with a new ECM table (KSMT in IEC 62455 terms). More...
 
WSB_EXPORT WSB_Result WSB_EcmDecrypter_UpdateMrt (WSB_EcmDecrypter *ecm_decrypter, const WSB_Byte *mr_table, WSB_Size mrt_len)
 Provides the ECM decrypter object with a new MRT (Marlin Rights Table) table. More...
 

Detailed Description

A helper module for extracting the traffic key information from BBTS.

Function Documentation

◆ WSB_EcmDecrypter_Create()

WSB_EXPORT WSB_Result WSB_EcmDecrypter_Create ( const WSB_EcmDecrypter_Listener  listener,
WSB_Mpeg2TsTrafficKey_Format  key_format,
const void *  key_format_params,
WSB_EcmDecrypter **  ecm_decrypter 
)

Instantiates a new WSB_EcmDecrypter object.

The object must be destroyed through WSB_EcmDecrypter_Destroy once it is no longer needed.

Parameters
listenerThe callback object to be called upon notifications as a result of finding a new media file or a new traffic key.
key_formatThe format in which the caller wants the traffic keys.
key_format_paramsThe parameters of the key format.
ecm_decrypterAddress of a WSB_EcmDecrypter pointer that will be set to refer to the WSB_EcmDecrypter object created.

◆ WSB_EcmDecrypter_Destroy()

WSB_EXPORT WSB_Result WSB_EcmDecrypter_Destroy ( WSB_EcmDecrypter ecm_decrypter)

Destroys a WSB_EcmDecrypter object.

The client code may not subsequently make references to any WSB_MediaFile or WSB_KeyManager object possibly obtained from interaction with the WSB_EcmDecrypter object being destroyed.

Parameters
ecm_decrypterThe WSB_EcmDecrypter object to be destroyed.

◆ WSB_EcmDecrypter_UpdateCat()

WSB_EXPORT WSB_Result WSB_EcmDecrypter_UpdateCat ( WSB_EcmDecrypter ecm_decrypter,
const WSB_Byte cat_table,
WSB_Size  cat_len,
WSB_UInt16 mrt_pid 
)

Provides the ECM decrypter object with a new CAT table.

As the CAT table gets processed, the CA descriptor gets extracted and the state of the ECM decrypter gets updated based on that and other information in the CAT.

Parameters
ecm_decrypterThe WSB_EcmDecrypter object.
cat_tablePointer to the CAT data.
cat_lenLength of the CAT data in bytes.
mrt_pidThe MPEG-2 TS PID of the MRT packets.

◆ WSB_EcmDecrypter_UpdateEcm()

WSB_EXPORT WSB_Result WSB_EcmDecrypter_UpdateEcm ( WSB_EcmDecrypter ecm_decrypter,
const WSB_Byte ecm_table,
WSB_Size  ecm_len 
)

Provides the ECM decrypter object with a new ECM table (KSMT in IEC 62455 terms).

As the ECM table gets processed, a new content ID or a new traffic key may be detected, and the listener object's methods get invoked accordingly.

Parameters
ecm_decrypterThe WSB_EcmDecrypter object.
ecm_tablePointer to the ECM table data.
ecm_lenLength of the ECM table data in bytes.

◆ WSB_EcmDecrypter_UpdateMrt()

WSB_EXPORT WSB_Result WSB_EcmDecrypter_UpdateMrt ( WSB_EcmDecrypter ecm_decrypter,
const WSB_Byte mr_table,
WSB_Size  mrt_len 
)

Provides the ECM decrypter object with a new MRT (Marlin Rights Table) table.

As the MRT table gets processed, a new Silent License Acquisition URL may be detected, and in that case the OnNewMediaFile listener method is invoked.

Parameters
ecm_decrypterThe WSB_EcmDecrypter object.
mr_tablePointer to the MRT table data.
mrt_lenLength of the MRT table data in bytes.

◆ WSB_EcmDecrypter_UpdatePmt()

WSB_EXPORT WSB_Result WSB_EcmDecrypter_UpdatePmt ( WSB_EcmDecrypter ecm_decrypter,
const WSB_Byte pmt_table,
WSB_Size  pmt_len,
WSB_UInt16 ecm_pid 
)

Provides the ECM decrypter object with a new PMT table.

As the PMT table gets processed, the CA descriptor gets extracted and the state of the ECM decrypter gets updated based on that and other information in the PMT.

Parameters
ecm_decrypterThe WSB_EcmDecrypter object.
pmt_tablePointer to the PMT data.
pmt_lenLength of the PMT data in bytes.
ecm_pidThe MPEG-2 TS PID of the ECM packets.