#include <decrypt_config.h>
Contains all the information that a decryptor needs to decrypt a media sample.
Definition at line 39 of file decrypt_config.h.
◆ DecryptConfig() [1/2]
| shaka::media::DecryptConfig::DecryptConfig |
( |
const std::vector< uint8_t > & |
key_id, |
|
|
const std::vector< uint8_t > & |
iv, |
|
|
const std::vector< SubsampleEntry > & |
subsamples |
|
) |
| |
Create a 'cenc' decrypt config.
- Parameters
-
| key_id | is the ID that references the decryption key. |
| iv | is the initialization vector defined by the encryptor. |
| subsamples | defines the clear and encrypted portions of the sample as described in SubsampleEntry. A decrypted buffer will be equal in size to the sum of the subsample sizes. |
Definition at line 13 of file decrypt_config.cc.
◆ DecryptConfig() [2/2]
| shaka::media::DecryptConfig::DecryptConfig |
( |
const std::vector< uint8_t > & |
key_id, |
|
|
const std::vector< uint8_t > & |
iv, |
|
|
const std::vector< SubsampleEntry > & |
subsamples, |
|
|
FourCC |
protection_scheme, |
|
|
uint8_t |
crypt_byte_block, |
|
|
uint8_t |
skip_byte_block |
|
) |
| |
Create a general decrypt config with possible pattern-based encryption.
- Parameters
-
| key_id | is the ID that references the decryption key. |
| iv | is the initialization vector defined by the encryptor. |
| subsamples | defines the clear and encrypted portions of the sample as described in SubsampleEntry. A decrypted buffer will be equal in size to the sum of the subsample sizes. |
| protection_scheme | specifies the protection scheme: 'cenc', 'cens', 'cbc1', 'cbcs'. |
| crypt_byte_block | indicates number of encrypted blocks (16-byte) in pattern based encryption, 'cens' and 'cbcs'. Ignored otherwise. |
| skip_byte_block | indicates number of unencrypted blocks (16-byte) in pattern based encryption, 'cens' and 'cbcs'. Ignored otherwise. |
Definition at line 18 of file decrypt_config.cc.
◆ ~DecryptConfig()
| shaka::media::DecryptConfig::~DecryptConfig |
( |
| ) |
|
◆ AddSubsample()
| void shaka::media::DecryptConfig::AddSubsample |
( |
uint16_t |
clear_bytes, |
|
|
uint32_t |
cipher_bytes |
|
) |
| |
|
inline |
- Parameters
-
| clear_bytes | is the size of clear bytes in the subsample to be added. |
| cipher_bytes | is the size of cipher bytes in the subsample to be added. |
Definition at line 79 of file decrypt_config.h.
◆ crypt_byte_block()
| uint8_t shaka::media::DecryptConfig::crypt_byte_block |
( |
| ) |
const |
|
inline |
◆ GetTotalSizeOfSubsamples()
| size_t shaka::media::DecryptConfig::GetTotalSizeOfSubsamples |
( |
| ) |
const |
◆ iv()
| const std::vector< uint8_t > & shaka::media::DecryptConfig::iv |
( |
| ) |
const |
|
inline |
◆ key_id()
| const std::vector< uint8_t > & shaka::media::DecryptConfig::key_id |
( |
| ) |
const |
|
inline |
◆ protection_scheme()
| FourCC shaka::media::DecryptConfig::protection_scheme |
( |
| ) |
const |
|
inline |
◆ skip_byte_block()
| uint8_t shaka::media::DecryptConfig::skip_byte_block |
( |
| ) |
const |
|
inline |
◆ subsamples()
| const std::vector< SubsampleEntry > & shaka::media::DecryptConfig::subsamples |
( |
| ) |
const |
|
inline |
◆ kDecryptionKeySize
| const size_t shaka::media::DecryptConfig::kDecryptionKeySize = 16 |
|
static |
The documentation for this class was generated from the following files: