Marlin protected media data decryption.
More...
Marlin protected media data decryption.
Create a WSB_MediaDataDecrypter instance.
- Parameters
-
type | Type of decrypter instance requested. |
init_info | Pointer 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_format | Identifier of the format of data pointed to by the key parameter. |
key | Pointer to the decryption key data. |
key_size | Size in bytes of the data pointed to by the key parameter. |
decrypter | Address 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.
Decrypt a media payload.
- Parameters
-
self | Pointer to the decrypter object that will perform the decryption. |
in | Pointer to the data to decrypt. |
in_size | Size in bytes of the data to decrypt. |
out | Pointer to the buffer that will receive the decrypted data. |
out_size | Address 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.
Destroy a WSB_MediaDataDecrypter instance.
- Parameters
-
self | Pointer to the decrypter object to destroy. |
- Returns
- WSB_SUCCESS if the call succeeds, or a negative error code if it fails.