Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
Typedefs | Functions
WSB_MediaDataDecrypter Class

Marlin protected media data decryption. More...

Typedefs

typedef struct WSB_MediaDataDecrypter WSB_MediaDataDecrypter
 

Functions

WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Create (WSB_MediaDataDecrypterType type, const void *init_info, WSB_MediaDataDecrypterKeyFormat key_format, const WSB_UInt8 *key, unsigned int key_size, WSB_MediaDataDecrypter **decrypter)
 Create a WSB_MediaDataDecrypter instance. More...
 
WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Decrypt (WSB_MediaDataDecrypter *self, const WSB_UInt8 *in, unsigned int in_size, WSB_UInt8 *out, unsigned int *out_size)
 Decrypt a media payload. More...
 
WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Destroy (WSB_MediaDataDecrypter *self)
 Destroy a WSB_MediaDataDecrypter instance. More...
 

Detailed Description

Marlin protected media data decryption.

Typedef Documentation

◆ WSB_MediaDataDecrypter

Function Documentation

◆ WSB_MediaDataDecrypter_Create()

WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Create ( WSB_MediaDataDecrypterType  type,
const void *  init_info,
WSB_MediaDataDecrypterKeyFormat  key_format,
const WSB_UInt8 key,
unsigned int  key_size,
WSB_MediaDataDecrypter **  decrypter 
)

Create a WSB_MediaDataDecrypter instance.

Parameters
typeType of decrypter instance requested.
init_infoPointer to the initialization info necessary to initialize the decrypter, or NULL if no initialization info is necessary. The data pointed to by this parameter depends on the type of decrypter requested. For a decrypter of type WSB_MEDIA_DATA_DECRYPTER_TYPE_CENC, this parameter must point to a WSB_DashCencInfo structure.
key_formatIdentifier of the format of data pointed to by the key parameter.
keyPointer to the decryption key data.
key_sizeSize in bytes of the data pointed to by the key parameter.
decrypterAddress of a WSB_MediaDataDecrypter pointer that will be set to refer to the newly created WSB_MediaDataDecrypter object.
Returns
WSB_SUCCESS if the call succeeds, or a negative error code if it fails.

◆ WSB_MediaDataDecrypter_Decrypt()

WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Decrypt ( WSB_MediaDataDecrypter self,
const WSB_UInt8 in,
unsigned int  in_size,
WSB_UInt8 out,
unsigned int *  out_size 
)

Decrypt a media payload.

Parameters
selfPointer to the decrypter object that will perform the decryption.
inPointer to the data to decrypt.
in_sizeSize in bytes of the data to decrypt.
outPointer to the buffer that will receive the decrypted data.
out_sizeAddress of a variable that contains the size, in bytes, of the buffer pointed to by the out parameter. When this function returns, this variable will be updated with the number of bytes actually written in the out buffer.
Returns
WSB_SUCCESS if the call succeeds, or a negative error code if it fails.

◆ WSB_MediaDataDecrypter_Destroy()

WSB_EXPORT WSB_Result WSB_MediaDataDecrypter_Destroy ( WSB_MediaDataDecrypter self)

Destroy a WSB_MediaDataDecrypter instance.

Parameters
selfPointer to the decrypter object to destroy.
Returns
WSB_SUCCESS if the call succeeds, or a negative error code if it fails.