Shaka Packager SDK
Loading...
Searching...
No Matches
Public Attributes | List of all members
shaka::media::CpixContentKey Struct Reference

A content key from a CPIX ContentKeyList. More...

#include <cpix_parser.h>

Public Attributes

std::vector< uint8_t > key_id
 16-byte CENC key ID, from the kid attribute.
 
std::vector< uint8_t > key
 
std::optional< CpixEncryptedValueencrypted_key
 
std::vector< uint8_t > iv
 Optional IV, from the explicitIV attribute. Empty if not present.
 
std::string common_encryption_scheme
 

Detailed Description

A content key from a CPIX ContentKeyList.

Definition at line 35 of file cpix_parser.h.

Member Data Documentation

◆ common_encryption_scheme

std::string shaka::media::CpixContentKey::common_encryption_scheme

Optional commonEncryptionScheme attribute, e.g. "cenc" or "cbcs". Empty if not present.

Definition at line 49 of file cpix_parser.h.

◆ encrypted_key

std::optional<CpixEncryptedValue> shaka::media::CpixContentKey::encrypted_key

Set when Data/Secret contains an EncryptedValue instead of a PlainValue. The key must then be decrypted with the document key before use.

Definition at line 44 of file cpix_parser.h.

◆ iv

std::vector<uint8_t> shaka::media::CpixContentKey::iv

Optional IV, from the explicitIV attribute. Empty if not present.

Definition at line 46 of file cpix_parser.h.

◆ key

std::vector<uint8_t> shaka::media::CpixContentKey::key

Clear key value, from Data/Secret/PlainValue. Empty if the key is encrypted (see encrypted_key).

Definition at line 40 of file cpix_parser.h.

◆ key_id

std::vector<uint8_t> shaka::media::CpixContentKey::key_id

16-byte CENC key ID, from the kid attribute.

Definition at line 37 of file cpix_parser.h.


The documentation for this struct was generated from the following file: