<divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">// Copyright 2017 Google Inc. All rights reserved.</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment">//</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment">// Use of this source code is governed by a BSD-style</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">// license that can be found in the LICENSE file or at</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment">// https://developers.google.com/open-source/licenses/bsd</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> </div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="preprocessor">#ifndef PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="preprocessor">#define PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_</span></div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> </div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> <spanclass="preprocessor">#include <functional></span></div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="preprocessor">#include <map></span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="preprocessor">#include <string></span></div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="preprocessor">#include <vector></span></div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> </div><divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="keyword">namespace </span><aclass="code"href="../../d8/daf/namespaceshaka.html">shaka</a> {</div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> </div><divclass="line"><aname="l00018"></a><spanclass="lineno"><aclass="line"href="../../d8/daf/namespaceshaka.html#a539b99ce5c34193e294bc544437e9185"> 18</a></span> <spanclass="keyword">enum class</span><aclass="code"href="../../d8/daf/namespaceshaka.html#a539b99ce5c34193e294bc544437e9185">KeyProvider</a> {</div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span>  kNone = 0,</div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span>  kWidevine = 1,</div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span>  kPlayReady = 2,</div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span>  kRawKey = 3,</div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> };</div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> </div><divclass="line"><aname="l00026"></a><spanclass="lineno"><aclass="line"href="../../df/d22/structshaka_1_1WidevineSigner.html"> 26</a></span> <spanclass="keyword">struct </span><aclass="code"href="../../df/d22/structshaka_1_1WidevineSigner.html">WidevineSigner</a> {</div><divclass="line"><aname="l00028"></a><spanclass="lineno"><aclass="line"href="../../df/d22/structshaka_1_1WidevineSigner.html#a6768d5addb3c90f33ce5f241705c827e"> 28</a></span>  std::string <aclass="code"href="../../df/d22/structshaka_1_1WidevineSigner.html#a6768d5addb3c90f33ce5f241705c827e">signer_name</a>;</div><divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> </div><divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> <spanclass="keyword">enum class</span> SigningKeyType {</div><divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span>  kNone,</div><divclass="line"><aname="l00032"></a><spanclas
<divclass="ttc"id="structshaka_1_1PlayReadyEncryptionParams_html_ac5298ee04e36296e8dd4b7a56e8bc464"><divclass="ttname"><ahref="../../df/d47/structshaka_1_1PlayReadyEncryptionParams.html#ac5298ee04e36296e8dd4b7a56e8bc464">shaka::PlayReadyEncryptionParams::key_server_url</a></div><divclass="ttdeci">std::string key_server_url</div><divclass="ttdoc">PlayReady license / key server URL. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00071">crypto_params.h:71</a></div></div>
<divclass="ttc"id="structshaka_1_1PlayReadyEncryptionParams_html_a672dbcea4caa427b3fd83e1a2e329859"><divclass="ttname"><ahref="../../df/d47/structshaka_1_1PlayReadyEncryptionParams.html#a672dbcea4caa427b3fd83e1a2e329859">shaka::PlayReadyEncryptionParams::client_cert_private_key_password</a></div><divclass="ttdeci">std::string client_cert_private_key_password</div><divclass="ttdoc">Password to the private key file. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00082">crypto_params.h:82</a></div></div>
<divclass="ttc"id="structshaka_1_1PlayReadyEncryptionParams_html_a8716552505d244227bf93c4878071f2d"><divclass="ttname"><ahref="../../df/d47/structshaka_1_1PlayReadyEncryptionParams.html#a8716552505d244227bf93c4878071f2d">shaka::PlayReadyEncryptionParams::program_identifier</a></div><divclass="ttdeci">std::string program_identifier</div><divclass="ttdoc">PlayReady program identifier. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00073">crypto_params.h:73</a></div></div>
<divclass="ttc"id="structshaka_1_1WidevineDecryptionParams_html_acf84772bb9787f61110e388490412939"><divclass="ttname"><ahref="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html#acf84772bb9787f61110e388490412939">shaka::WidevineDecryptionParams::signer</a></div><divclass="ttdeci">WidevineSigner signer</div><divclass="ttdoc">Signer credential for Widevine license / key server. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00181">crypto_params.h:181</a></div></div>
<divclass="ttc"id="namespaceshaka_html"><divclass="ttname"><ahref="../../d8/daf/namespaceshaka.html">shaka</a></div><divclass="ttdoc">All the methods that are virtual are virtual for mocking. </div><divclass="ttdef"><b>Definition:</b><ahref="../../d4/d15/gflags__hex__bytes_8cc_source.html#l00011">gflags_hex_bytes.cc:11</a></div></div>
<divclass="ttc"id="structshaka_1_1WidevineEncryptionParams_html_a47239bcc571757930ba89e8831013234"><divclass="ttname"><ahref="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a47239bcc571757930ba89e8831013234">shaka::WidevineEncryptionParams::enable_entitlement_license</a></div><divclass="ttdeci">bool enable_entitlement_license</div><divclass="ttdoc">Enables entitlement license when set to true. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00063">crypto_params.h:63</a></div></div>
<divclass="ttc"id="structshaka_1_1RawKeyParams_html"><divclass="ttname"><ahref="../../d0/db4/structshaka_1_1RawKeyParams.html">shaka::RawKeyParams</a></div><divclass="ttdoc">Raw key encryption/decryption parameters, i.e. with key parameters provided. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00086">crypto_params.h:86</a></div></div>
<divclass="ttc"id="structshaka_1_1WidevineSigner_html_a6768d5addb3c90f33ce5f241705c827e"><divclass="ttname"><ahref="../../df/d22/structshaka_1_1WidevineSigner.html#a6768d5addb3c90f33ce5f241705c827e">shaka::WidevineSigner::signer_name</a></div><divclass="ttdeci">std::string signer_name</div><divclass="ttdoc">Name of the signer / content provider. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00028">crypto_params.h:28</a></div></div>
<divclass="ttc"id="structshaka_1_1EncryptionParams_html_a3c5d11615ce906ce4420f873986db81c"><divclass="ttname"><ahref="../../dc/da0/structshaka_1_1EncryptionParams.html#a3c5d11615ce906ce4420f873986db81c">shaka::EncryptionParams::protection_systems</a></div><divclass="ttdeci">std::vector< ProtectionSystem > protection_systems</div><divclass="ttdoc">Protection systems to be generated. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00126">crypto_params.h:126</a></div></div>
<divclass="ttc"id="structshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes_html"><divclass="ttname"><ahref="../../d7/d6d/structshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes.html">shaka::EncryptionParams::EncryptedStreamAttributes</a></div><divclass="ttdoc">Encrypted stream information that is used to determine stream label. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00144">crypto_params.h:144</a></div></div>
<divclass="ttc"id="structshaka_1_1WidevineEncryptionParams_html_a469f3db91b42af20f270a280c4d42b4f"><divclass="ttname"><ahref="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a469f3db91b42af20f270a280c4d42b4f">shaka::WidevineEncryptionParams::policy</a></div><divclass="ttdeci">std::string policy</div><divclass="ttdoc">The name of a stored policy, which specifies DRM content rights. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00057">crypto_params.h:57</a></div></div>
<divclass="ttc"id="structshaka_1_1WidevineEncryptionParams_html_a6d69402cd4c66d546be180c7800e6d09"><divclass="ttname"><ahref="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a6d69402cd4c66d546be180c7800e6d09">shaka::WidevineEncryptionParams::group_id</a></div><divclass="ttdeci">std::vector< uint8_t > group_id</div><divclass="ttdoc">Group identifier, if present licenses will belong to this group. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00061">crypto_params.h:61</a></div></div>
<divclass="ttc"id="structshaka_1_1PlayReadyEncryptionParams_html_a63e0f55b12ef1a0305bd51315322b153"><divclass="ttname"><ahref="../../df/d47/structshaka_1_1PlayReadyEncryptionParams.html#a63e0f55b12ef1a0305bd51315322b153">shaka::PlayReadyEncryptionParams::client_cert_private_key_file</a></div><divclass="ttdeci">std::string client_cert_private_key_file</div><divclass="ttdoc">Absolute path to the private key file. </div><divclass="ttdef"><b>Definition:</b><ahref="../../dd/d58/crypto__params_8h_source.html#l00080">crypto_params.h:80</a></div></div>