Shaka Packager SDK
|
#include <decrypt_config.h>
Public Member Functions | |
SubsampleEntry (uint16_t clear_bytes, uint32_t cipher_bytes) | |
Public Attributes | |
uint16_t | clear_bytes |
uint32_t | cipher_bytes |
The Common Encryption spec provides for subsample encryption, where portions of a sample are not encrypted. A SubsampleEntry specifies the number of clear and encrypted bytes in each subsample. For decryption, all of the encrypted bytes in a sample should be considered a single logical stream, regardless of how they are divided into subsamples, and the clear bytes should not be considered as part of decryption. This is logically equivalent to concatenating all cipher_bytes portions of subsamples, decrypting that result, and then copying each byte from the decrypted block over the corresponding encrypted byte.
Definition at line 27 of file decrypt_config.h.