Shaka Packager SDK
Classes | Public Types | Public Attributes | List of all members
shaka::RawKeyParams Struct Reference

Raw key encryption/decryption parameters, i.e. with key parameters provided. More...

#include <crypto_params.h>

Classes

struct  KeyInfo
 

Public Types

using StreamLabel = std::string
 

Public Attributes

std::vector< uint8_t > iv
 
std::vector< uint8_t > pssh
 
std::map< StreamLabel, KeyInfokey_map
 

Detailed Description

Raw key encryption/decryption parameters, i.e. with key parameters provided.

Definition at line 86 of file crypto_params.h.

Member Data Documentation

◆ iv

std::vector<uint8_t> shaka::RawKeyParams::iv

An optional initialization vector. If not provided, a random iv will be generated. Note that this parameter should only be used during testing. Not needed for decryption.

Definition at line 90 of file crypto_params.h.

◆ key_map

std::map<StreamLabel, KeyInfo> shaka::RawKeyParams::key_map

Defines the KeyInfo for the streams. An empty StreamLabel indicates the default KeyInfo, which applies to all the StreamLabels not present in key_map.

Definition at line 104 of file crypto_params.h.

◆ pssh

std::vector<uint8_t> shaka::RawKeyParams::pssh

Inject a custom pssh or multiple concatenated psshs. If not provided, a common system pssh will be generated. Not needed for decryption.

Definition at line 94 of file crypto_params.h.


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