shaka-packager/docs/dd/d58/crypto__params_8h_source.html

289 lines
54 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>DASH Media Packaging SDK: media/public/crypto_params.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">DASH Media Packaging SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
<li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
<li><a href="../../annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="../../files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../dir_39dc0668bd5a501998f94e8b4e546c71.html">media</a></li><li class="navelem"><a class="el" href="../../dir_3702507ddbf3daed2728028eabf9f597.html">public</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">crypto_params.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2017 Google Inc. All rights reserved.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// Use of this source code is governed by a BSD-style</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// license that can be found in the LICENSE file or at</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">// https://developers.google.com/open-source/licenses/bsd</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#ifndef PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">namespace </span>shaka {</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="../../d8/daf/namespaceshaka.html#a539b99ce5c34193e294bc544437e9185"> 18</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="../../d8/daf/namespaceshaka.html#a539b99ce5c34193e294bc544437e9185">KeyProvider</a> {</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; kNone = 0,</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; kWidevine = 1,</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; kPlayready = 2,</div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; kRawKey = 3,</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;};</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="../../df/d22/structshaka_1_1WidevineSigner.html"> 26</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../df/d22/structshaka_1_1WidevineSigner.html">WidevineSigner</a> {</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="../../df/d22/structshaka_1_1WidevineSigner.html#a6768d5addb3c90f33ce5f241705c827e"> 28</a></span>&#160; std::string <a class="code" href="../../df/d22/structshaka_1_1WidevineSigner.html#a6768d5addb3c90f33ce5f241705c827e">signer_name</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">enum class</span> SigningKeyType {</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; kNone,</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; kAes,</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; kRsa,</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; };</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../df/d22/structshaka_1_1WidevineSigner.html#a656fbc14799c96fa8b822e3917070cf6"> 37</a></span>&#160; SigningKeyType <a class="code" href="../../df/d22/structshaka_1_1WidevineSigner.html#a656fbc14799c96fa8b822e3917070cf6">signing_key_type</a> = SigningKeyType::kNone;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="../../df/d22/structshaka_1_1WidevineSigner.html#ad5c378d29df509280d8697f986163324"> 40</a></span>&#160; std::vector&lt;uint8_t&gt; <a class="code" href="../../df/d22/structshaka_1_1WidevineSigner.html#ad5c378d29df509280d8697f986163324">key</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="../../df/d22/structshaka_1_1WidevineSigner.html#a6db96d4c3f1189bbd09515732bec94d9"> 42</a></span>&#160; std::vector&lt;uint8_t&gt; <a class="code" href="../../df/d22/structshaka_1_1WidevineSigner.html#a6db96d4c3f1189bbd09515732bec94d9">iv</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; } aes;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="../../df/d22/structshaka_1_1WidevineSigner.html#a25bb558aa06563d24c3d7f9733ff8898"> 46</a></span>&#160; std::string <a class="code" href="../../df/d22/structshaka_1_1WidevineSigner.html#a25bb558aa06563d24c3d7f9733ff8898">key</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; } rsa;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;};</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html"> 51</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html">WidevineEncryptionParams</a> {</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#ac222c5bd0620e5a6f9bf5e9fec534fb9"> 53</a></span>&#160; std::string <a class="code" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#ac222c5bd0620e5a6f9bf5e9fec534fb9">key_server_url</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// TODO(kqyang): Move to EncryptionParams and support common PSSH generation</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="comment">// in all key providers.</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a5985f2d6fbe33273654695050757d0b0"> 58</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a5985f2d6fbe33273654695050757d0b0">include_common_pssh</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a6b9770524a9507d0a9a3606ceef23075"> 60</a></span>&#160; std::vector&lt;uint8_t&gt; <a class="code" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a6b9770524a9507d0a9a3606ceef23075">content_id</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a469f3db91b42af20f270a280c4d42b4f"> 62</a></span>&#160; std::string <a class="code" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a469f3db91b42af20f270a280c4d42b4f">policy</a>;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a233141ad4baf2f2afce30f96adf340ae"> 64</a></span>&#160; <a class="code" href="../../df/d22/structshaka_1_1WidevineSigner.html">WidevineSigner</a> <a class="code" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a233141ad4baf2f2afce30f96adf340ae">signer</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a6d69402cd4c66d546be180c7800e6d09"> 66</a></span>&#160; std::vector&lt;uint8_t&gt; <a class="code" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a6d69402cd4c66d546be180c7800e6d09">group_id</a>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;};</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html"> 76</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html">PlayreadyEncryptionParams</a> {</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a3a31b3002f86834b1799279bf5b5fc11"> 78</a></span>&#160; std::string <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a3a31b3002f86834b1799279bf5b5fc11">key_server_url</a>;</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a74199b0293ca77eaac30aea53a9ec2aa"> 80</a></span>&#160; std::string <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a74199b0293ca77eaac30aea53a9ec2aa">program_identifier</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a745d002043a10ae7c01983fe5fe93846"> 83</a></span>&#160; std::string <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a745d002043a10ae7c01983fe5fe93846">ca_file</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#afdc9477270b8a626163940cddff4fa8c"> 85</a></span>&#160; std::string <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#afdc9477270b8a626163940cddff4fa8c">client_cert_file</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#af6f3b909425a27e17a7d6e473d7eb8ac"> 87</a></span>&#160; std::string <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#af6f3b909425a27e17a7d6e473d7eb8ac">client_cert_private_key_file</a>;</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a2d492f0c28b5d291ef512aa0248dc8ba"> 89</a></span>&#160; std::string <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a2d492f0c28b5d291ef512aa0248dc8ba">client_cert_private_key_password</a>;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// TODO(kqyang): move raw playready key generation to RawKey.</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a872107e40137be5a6c1f932db67c2a9d"> 93</a></span>&#160;<span class="comment"></span> std::vector&lt;uint8_t&gt; <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a872107e40137be5a6c1f932db67c2a9d">key_id</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a2ba545b465d64da1ac9458ba45338f76"> 95</a></span>&#160; std::vector&lt;uint8_t&gt; <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a2ba545b465d64da1ac9458ba45338f76">key</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;};</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html"> 99</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html">RawKeyEncryptionParams</a> {</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#a2b8b36d5dd357a6b354de194bc3fb702"> 102</a></span>&#160; std::vector&lt;uint8_t&gt; <a class="code" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#a2b8b36d5dd357a6b354de194bc3fb702">iv</a>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#add60228a75eee66b051e2cc7ceeb4b01"> 105</a></span>&#160; std::vector&lt;uint8_t&gt; <a class="code" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#add60228a75eee66b051e2cc7ceeb4b01">pssh</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keyword">using</span> StreamLabel = std::string;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../df/d5d/structshaka_1_1RawKeyEncryptionParams_1_1KeyPair.html"> 108</a></span>&#160; <span class="keyword">struct </span><a class="code" href="../../df/d5d/structshaka_1_1RawKeyEncryptionParams_1_1KeyPair.html">KeyPair</a> {</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; std::vector&lt;uint8_t&gt; key_id;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; std::vector&lt;uint8_t&gt; key;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; };</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#a70893a2ff3b6fc74fd53e9b00f2a023d"> 115</a></span>&#160; std::map&lt;StreamLabel, KeyPair&gt; <a class="code" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#a70893a2ff3b6fc74fd53e9b00f2a023d">key_map</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;};</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;</div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="../../dc/da0/structshaka_1_1EncryptionParams.html"> 119</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html">EncryptionParams</a> {</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="../../dc/da0/structshaka_1_1EncryptionParams.html#adcf61ebf8d129a5bcf3f159b9b076eed"> 123</a></span>&#160; <a class="code" href="../../d8/daf/namespaceshaka.html#a539b99ce5c34193e294bc544437e9185">KeyProvider</a> <a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html#adcf61ebf8d129a5bcf3f159b9b076eed">key_provider</a> = KeyProvider::kNone;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="comment">// Only one of the three fields is valid.</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <a class="code" href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html">WidevineEncryptionParams</a> widevine;</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <a class="code" href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html">PlayreadyEncryptionParams</a> playready;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html">RawKeyEncryptionParams</a> raw_key;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a1ad46963dc926aa4b72813dccb3f6a45"> 130</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a1ad46963dc926aa4b72813dccb3f6a45">clear_lead_in_seconds</a> = 0;</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a1d7a8c6b5e46b51ccadcaef3f9cf9cb0"> 132</a></span>&#160; <span class="keyword">static</span> constexpr uint32_t <a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a1d7a8c6b5e46b51ccadcaef3f9cf9cb0">kProtectionSchemeCenc</a> = 0x63656E63;</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">static</span> constexpr uint32_t kProtectionSchemeCbc1 = 0x63626331;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">static</span> constexpr uint32_t kProtectionSchemeCens = 0x63656E73;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">static</span> constexpr uint32_t kProtectionSchemeCbcs = 0x63626373;</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; uint32_t protection_scheme = <a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a1d7a8c6b5e46b51ccadcaef3f9cf9cb0">kProtectionSchemeCenc</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a92ad4ca8e1ccb7d6b5fa2ee0b1b196fa"> 139</a></span>&#160; <span class="keyword">static</span> constexpr <span class="keywordtype">double</span> <a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a92ad4ca8e1ccb7d6b5fa2ee0b1b196fa">kNoKeyRotation</a> = 0;</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keywordtype">double</span> crypto_period_duration_in_seconds = <a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a92ad4ca8e1ccb7d6b5fa2ee0b1b196fa">kNoKeyRotation</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a48d415f17d51306ce7e1931fd954c37c"> 142</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a48d415f17d51306ce7e1931fd954c37c">vp9_subsample_encryption</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;</div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="../../d7/d6d/structshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes.html"> 145</a></span>&#160; <span class="keyword">struct </span><a class="code" href="../../d7/d6d/structshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes.html">EncryptedStreamAttributes</a> {</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keyword">enum</span> StreamType {</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; kUnknown,</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; kVideo,</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; kAudio,</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; };</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; StreamType stream_type = kUnknown;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="../../d0/d37/unionshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes_1_1OneOf.html"> 153</a></span>&#160; <span class="keyword">union </span><a class="code" href="../../d0/d37/unionshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes_1_1OneOf.html">OneOf</a> {</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <a class="code" href="../../d0/d37/unionshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes_1_1OneOf.html">OneOf</a>() {}</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordtype">int</span> width = 0;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordtype">int</span> height = 0;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="keywordtype">float</span> frame_rate = 0;</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordtype">int</span> bit_depth = 0;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; } video;</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordtype">int</span> number_of_channels = 0;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; } audio;</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; } oneof;</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; };</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; std::function&lt;std::string(const EncryptedStreamAttributes&amp; stream_attributes)&gt;</div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a7686a6aca6a7c3d077a5d7215c39fc51"> 174</a></span>&#160; <a class="code" href="../../dc/da0/structshaka_1_1EncryptionParams.html#a7686a6aca6a7c3d077a5d7215c39fc51">stream_label_func</a>;</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;};</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html"> 178</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html">WidevineDecryptionParams</a> {</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html#adb765979bcc7f63ce46c9ed6ead1ee5b"> 180</a></span>&#160; std::string <a class="code" href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html#adb765979bcc7f63ce46c9ed6ead1ee5b">key_server_url</a>;</div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html#acf84772bb9787f61110e388490412939"> 182</a></span>&#160; <a class="code" href="../../df/d22/structshaka_1_1WidevineSigner.html">WidevineSigner</a> <a class="code" href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html#acf84772bb9787f61110e388490412939">signer</a>;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;};</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="../../d9/da8/structshaka_1_1RawKeyDecryptionParams.html"> 186</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d9/da8/structshaka_1_1RawKeyDecryptionParams.html">RawKeyDecryptionParams</a> {</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keyword">using</span> StreamLabel = std::string;</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="../../d8/d8b/structshaka_1_1RawKeyDecryptionParams_1_1KeyPair.html"> 188</a></span>&#160; <span class="keyword">struct </span><a class="code" href="../../d8/d8b/structshaka_1_1RawKeyDecryptionParams_1_1KeyPair.html">KeyPair</a> {</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; std::vector&lt;uint8_t&gt; key_id;</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; std::vector&lt;uint8_t&gt; key;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; };</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="../../d9/da8/structshaka_1_1RawKeyDecryptionParams.html#a1ed59af3d5fe891e05acb4ee59ff6dc1"> 195</a></span>&#160; std::map&lt;StreamLabel, KeyPair&gt; <a class="code" href="../../d9/da8/structshaka_1_1RawKeyDecryptionParams.html#a1ed59af3d5fe891e05acb4ee59ff6dc1">key_map</a>;</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;};</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="../../d1/d4f/structshaka_1_1DecryptionParams.html"> 199</a></span>&#160;<span class="keyword">struct </span><a class="code" href="../../d1/d4f/structshaka_1_1DecryptionParams.html">DecryptionParams</a> {</div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="../../d1/d4f/structshaka_1_1DecryptionParams.html#ad93d153f9e777cccb6404611d5b4d339"> 203</a></span>&#160; <a class="code" href="../../d8/daf/namespaceshaka.html#a539b99ce5c34193e294bc544437e9185">KeyProvider</a> <a class="code" href="../../d1/d4f/structshaka_1_1DecryptionParams.html#ad93d153f9e777cccb6404611d5b4d339">key_provider</a> = KeyProvider::kNone;</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <span class="comment">// Only one of the two fields is valid.</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <a class="code" href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html">WidevineDecryptionParams</a> widevine;</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <a class="code" href="../../d9/da8/structshaka_1_1RawKeyDecryptionParams.html">RawKeyDecryptionParams</a> raw_key;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;};</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;} <span class="comment">// namespace shaka</span></div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;<span class="preprocessor">#endif // PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_</span></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html_af6f3b909425a27e17a7d6e473d7eb8ac"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#af6f3b909425a27e17a7d6e473d7eb8ac">shaka::PlayreadyEncryptionParams::client_cert_private_key_file</a></div><div class="ttdeci">std::string client_cert_private_key_file</div><div class="ttdoc">Absolute path to the private key file. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00087">crypto_params.h:87</a></div></div>
<div class="ttc" id="structshaka_1_1RawKeyEncryptionParams_html_a2b8b36d5dd357a6b354de194bc3fb702"><div class="ttname"><a href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#a2b8b36d5dd357a6b354de194bc3fb702">shaka::RawKeyEncryptionParams::iv</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; iv</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00102">crypto_params.h:102</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineEncryptionParams_html_ac222c5bd0620e5a6f9bf5e9fec534fb9"><div class="ttname"><a href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#ac222c5bd0620e5a6f9bf5e9fec534fb9">shaka::WidevineEncryptionParams::key_server_url</a></div><div class="ttdeci">std::string key_server_url</div><div class="ttdoc">Widevine license / key server URL. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00053">crypto_params.h:53</a></div></div>
<div class="ttc" id="structshaka_1_1DecryptionParams_html_ad93d153f9e777cccb6404611d5b4d339"><div class="ttname"><a href="../../d1/d4f/structshaka_1_1DecryptionParams.html#ad93d153f9e777cccb6404611d5b4d339">shaka::DecryptionParams::key_provider</a></div><div class="ttdeci">KeyProvider key_provider</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00203">crypto_params.h:203</a></div></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html">shaka::PlayreadyEncryptionParams</a></div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00076">crypto_params.h:76</a></div></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html_a3a31b3002f86834b1799279bf5b5fc11"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a3a31b3002f86834b1799279bf5b5fc11">shaka::PlayreadyEncryptionParams::key_server_url</a></div><div class="ttdeci">std::string key_server_url</div><div class="ttdoc">Playready license / key server URL. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00078">crypto_params.h:78</a></div></div>
<div class="ttc" id="namespaceshaka_html_a539b99ce5c34193e294bc544437e9185"><div class="ttname"><a href="../../d8/daf/namespaceshaka.html#a539b99ce5c34193e294bc544437e9185">shaka::KeyProvider</a></div><div class="ttdeci">KeyProvider</div><div class="ttdoc">Encryption / decryption key providers. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00018">crypto_params.h:18</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineDecryptionParams_html"><div class="ttname"><a href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html">shaka::WidevineDecryptionParams</a></div><div class="ttdoc">Widevine decryption parameters. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00178">crypto_params.h:178</a></div></div>
<div class="ttc" id="structshaka_1_1EncryptionParams_html_a7686a6aca6a7c3d077a5d7215c39fc51"><div class="ttname"><a href="../../dc/da0/structshaka_1_1EncryptionParams.html#a7686a6aca6a7c3d077a5d7215c39fc51">shaka::EncryptionParams::stream_label_func</a></div><div class="ttdeci">std::function&lt; std::string(const EncryptedStreamAttributes &amp;stream_attributes)&gt; stream_label_func</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00174">crypto_params.h:174</a></div></div>
<div class="ttc" id="structshaka_1_1EncryptionParams_html_a92ad4ca8e1ccb7d6b5fa2ee0b1b196fa"><div class="ttname"><a href="../../dc/da0/structshaka_1_1EncryptionParams.html#a92ad4ca8e1ccb7d6b5fa2ee0b1b196fa">shaka::EncryptionParams::kNoKeyRotation</a></div><div class="ttdeci">static constexpr double kNoKeyRotation</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00139">crypto_params.h:139</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineEncryptionParams_html_a233141ad4baf2f2afce30f96adf340ae"><div class="ttname"><a href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a233141ad4baf2f2afce30f96adf340ae">shaka::WidevineEncryptionParams::signer</a></div><div class="ttdeci">WidevineSigner signer</div><div class="ttdoc">Signer credential for Widevine license / key server. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00064">crypto_params.h:64</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineEncryptionParams_html_a6b9770524a9507d0a9a3606ceef23075"><div class="ttname"><a href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a6b9770524a9507d0a9a3606ceef23075">shaka::WidevineEncryptionParams::content_id</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; content_id</div><div class="ttdoc">Content identifier. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00060">crypto_params.h:60</a></div></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html_a2d492f0c28b5d291ef512aa0248dc8ba"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a2d492f0c28b5d291ef512aa0248dc8ba">shaka::PlayreadyEncryptionParams::client_cert_private_key_password</a></div><div class="ttdeci">std::string client_cert_private_key_password</div><div class="ttdoc">Password to the private key file. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00089">crypto_params.h:89</a></div></div>
<div class="ttc" id="structshaka_1_1EncryptionParams_html_a1ad46963dc926aa4b72813dccb3f6a45"><div class="ttname"><a href="../../dc/da0/structshaka_1_1EncryptionParams.html#a1ad46963dc926aa4b72813dccb3f6a45">shaka::EncryptionParams::clear_lead_in_seconds</a></div><div class="ttdeci">double clear_lead_in_seconds</div><div class="ttdoc">Clear lead duration in seconds. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00130">crypto_params.h:130</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineDecryptionParams_html_acf84772bb9787f61110e388490412939"><div class="ttname"><a href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html#acf84772bb9787f61110e388490412939">shaka::WidevineDecryptionParams::signer</a></div><div class="ttdeci">WidevineSigner signer</div><div class="ttdoc">Signer credential for Widevine license / key server. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00182">crypto_params.h:182</a></div></div>
<div class="ttc" id="structshaka_1_1EncryptionParams_html_a48d415f17d51306ce7e1931fd954c37c"><div class="ttname"><a href="../../dc/da0/structshaka_1_1EncryptionParams.html#a48d415f17d51306ce7e1931fd954c37c">shaka::EncryptionParams::vp9_subsample_encryption</a></div><div class="ttdeci">bool vp9_subsample_encryption</div><div class="ttdoc">Enable/disable subsample encryption for VP9. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00142">crypto_params.h:142</a></div></div>
<div class="ttc" id="structshaka_1_1RawKeyEncryptionParams_html_a70893a2ff3b6fc74fd53e9b00f2a023d"><div class="ttname"><a href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#a70893a2ff3b6fc74fd53e9b00f2a023d">shaka::RawKeyEncryptionParams::key_map</a></div><div class="ttdeci">std::map&lt; StreamLabel, KeyPair &gt; key_map</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00115">crypto_params.h:115</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineDecryptionParams_html_adb765979bcc7f63ce46c9ed6ead1ee5b"><div class="ttname"><a href="../../d8/d48/structshaka_1_1WidevineDecryptionParams.html#adb765979bcc7f63ce46c9ed6ead1ee5b">shaka::WidevineDecryptionParams::key_server_url</a></div><div class="ttdeci">std::string key_server_url</div><div class="ttdoc">Widevine license / key server URL. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00180">crypto_params.h:180</a></div></div>
<div class="ttc" id="structshaka_1_1RawKeyEncryptionParams_html_add60228a75eee66b051e2cc7ceeb4b01"><div class="ttname"><a href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html#add60228a75eee66b051e2cc7ceeb4b01">shaka::RawKeyEncryptionParams::pssh</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; pssh</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00105">crypto_params.h:105</a></div></div>
<div class="ttc" id="unionshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes_1_1OneOf_html"><div class="ttname"><a href="../../d0/d37/unionshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes_1_1OneOf.html">shaka::EncryptionParams::EncryptedStreamAttributes::OneOf</a></div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00153">crypto_params.h:153</a></div></div>
<div class="ttc" id="structshaka_1_1RawKeyDecryptionParams_html_a1ed59af3d5fe891e05acb4ee59ff6dc1"><div class="ttname"><a href="../../d9/da8/structshaka_1_1RawKeyDecryptionParams.html#a1ed59af3d5fe891e05acb4ee59ff6dc1">shaka::RawKeyDecryptionParams::key_map</a></div><div class="ttdeci">std::map&lt; StreamLabel, KeyPair &gt; key_map</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00195">crypto_params.h:195</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineSigner_html_a6768d5addb3c90f33ce5f241705c827e"><div class="ttname"><a href="../../df/d22/structshaka_1_1WidevineSigner.html#a6768d5addb3c90f33ce5f241705c827e">shaka::WidevineSigner::signer_name</a></div><div class="ttdeci">std::string signer_name</div><div class="ttdoc">Name of the signer / content provider. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00028">crypto_params.h:28</a></div></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html_a2ba545b465d64da1ac9458ba45338f76"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a2ba545b465d64da1ac9458ba45338f76">shaka::PlayreadyEncryptionParams::key</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; key</div><div class="ttdoc">Provides a raw Playready Key. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00095">crypto_params.h:95</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineSigner_html_a656fbc14799c96fa8b822e3917070cf6"><div class="ttname"><a href="../../df/d22/structshaka_1_1WidevineSigner.html#a656fbc14799c96fa8b822e3917070cf6">shaka::WidevineSigner::signing_key_type</a></div><div class="ttdeci">SigningKeyType signing_key_type</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00037">crypto_params.h:37</a></div></div>
<div class="ttc" id="structshaka_1_1RawKeyEncryptionParams_1_1KeyPair_html"><div class="ttname"><a href="../../df/d5d/structshaka_1_1RawKeyEncryptionParams_1_1KeyPair.html">shaka::RawKeyEncryptionParams::KeyPair</a></div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00108">crypto_params.h:108</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineEncryptionParams_html"><div class="ttname"><a href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html">shaka::WidevineEncryptionParams</a></div><div class="ttdoc">Widevine encryption parameters. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00051">crypto_params.h:51</a></div></div>
<div class="ttc" id="structshaka_1_1RawKeyDecryptionParams_html"><div class="ttname"><a href="../../d9/da8/structshaka_1_1RawKeyDecryptionParams.html">shaka::RawKeyDecryptionParams</a></div><div class="ttdoc">Raw key decryption parameters, i.e. with key parameters provided. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00186">crypto_params.h:186</a></div></div>
<div class="ttc" id="structshaka_1_1RawKeyDecryptionParams_1_1KeyPair_html"><div class="ttname"><a href="../../d8/d8b/structshaka_1_1RawKeyDecryptionParams_1_1KeyPair.html">shaka::RawKeyDecryptionParams::KeyPair</a></div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00188">crypto_params.h:188</a></div></div>
<div class="ttc" id="structshaka_1_1DecryptionParams_html"><div class="ttname"><a href="../../d1/d4f/structshaka_1_1DecryptionParams.html">shaka::DecryptionParams</a></div><div class="ttdoc">Decryption parameters. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00199">crypto_params.h:199</a></div></div>
<div class="ttc" id="structshaka_1_1RawKeyEncryptionParams_html"><div class="ttname"><a href="../../d0/d5d/structshaka_1_1RawKeyEncryptionParams.html">shaka::RawKeyEncryptionParams</a></div><div class="ttdoc">Raw key encryption parameters, i.e. with key parameters provided. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00099">crypto_params.h:99</a></div></div>
<div class="ttc" id="structshaka_1_1EncryptionParams_html"><div class="ttname"><a href="../../dc/da0/structshaka_1_1EncryptionParams.html">shaka::EncryptionParams</a></div><div class="ttdoc">Encryption parameters. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00119">crypto_params.h:119</a></div></div>
<div class="ttc" id="structshaka_1_1EncryptionParams_html_adcf61ebf8d129a5bcf3f159b9b076eed"><div class="ttname"><a href="../../dc/da0/structshaka_1_1EncryptionParams.html#adcf61ebf8d129a5bcf3f159b9b076eed">shaka::EncryptionParams::key_provider</a></div><div class="ttdeci">KeyProvider key_provider</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00123">crypto_params.h:123</a></div></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html_a872107e40137be5a6c1f932db67c2a9d"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a872107e40137be5a6c1f932db67c2a9d">shaka::PlayreadyEncryptionParams::key_id</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; key_id</div><div class="ttdoc">Provides a raw Playready KeyId. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00093">crypto_params.h:93</a></div></div>
<div class="ttc" id="structshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes_html"><div class="ttname"><a href="../../d7/d6d/structshaka_1_1EncryptionParams_1_1EncryptedStreamAttributes.html">shaka::EncryptionParams::EncryptedStreamAttributes</a></div><div class="ttdoc">Encrypted stream information that is used to determine stream label. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00145">crypto_params.h:145</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineEncryptionParams_html_a5985f2d6fbe33273654695050757d0b0"><div class="ttname"><a href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a5985f2d6fbe33273654695050757d0b0">shaka::WidevineEncryptionParams::include_common_pssh</a></div><div class="ttdeci">bool include_common_pssh</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00058">crypto_params.h:58</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineSigner_html_ad5c378d29df509280d8697f986163324"><div class="ttname"><a href="../../df/d22/structshaka_1_1WidevineSigner.html#ad5c378d29df509280d8697f986163324">shaka::WidevineSigner::key</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; key</div><div class="ttdoc">AES signing key. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00040">crypto_params.h:40</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineEncryptionParams_html_a469f3db91b42af20f270a280c4d42b4f"><div class="ttname"><a href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a469f3db91b42af20f270a280c4d42b4f">shaka::WidevineEncryptionParams::policy</a></div><div class="ttdeci">std::string policy</div><div class="ttdoc">The name of a stored policy, which specifies DRM content rights. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00062">crypto_params.h:62</a></div></div>
<div class="ttc" id="structshaka_1_1EncryptionParams_html_a1d7a8c6b5e46b51ccadcaef3f9cf9cb0"><div class="ttname"><a href="../../dc/da0/structshaka_1_1EncryptionParams.html#a1d7a8c6b5e46b51ccadcaef3f9cf9cb0">shaka::EncryptionParams::kProtectionSchemeCenc</a></div><div class="ttdeci">static constexpr uint32_t kProtectionSchemeCenc</div><div class="ttdoc">The protection scheme: &quot;cenc&quot;, &quot;cens&quot;, &quot;cbc1&quot;, &quot;cbcs&quot;. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00132">crypto_params.h:132</a></div></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html_a74199b0293ca77eaac30aea53a9ec2aa"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a74199b0293ca77eaac30aea53a9ec2aa">shaka::PlayreadyEncryptionParams::program_identifier</a></div><div class="ttdeci">std::string program_identifier</div><div class="ttdoc">Playready program identifier. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00080">crypto_params.h:80</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineSigner_html_a25bb558aa06563d24c3d7f9733ff8898"><div class="ttname"><a href="../../df/d22/structshaka_1_1WidevineSigner.html#a25bb558aa06563d24c3d7f9733ff8898">shaka::WidevineSigner::key</a></div><div class="ttdeci">std::string key</div><div class="ttdoc">RSA signing private key. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00046">crypto_params.h:46</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineSigner_html"><div class="ttname"><a href="../../df/d22/structshaka_1_1WidevineSigner.html">shaka::WidevineSigner</a></div><div class="ttdoc">Signer credential for Widevine license server. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00026">crypto_params.h:26</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineEncryptionParams_html_a6d69402cd4c66d546be180c7800e6d09"><div class="ttname"><a href="../../d9/dd2/structshaka_1_1WidevineEncryptionParams.html#a6d69402cd4c66d546be180c7800e6d09">shaka::WidevineEncryptionParams::group_id</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; group_id</div><div class="ttdoc">Group identifier, if present licenses will belong to this group. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00066">crypto_params.h:66</a></div></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html_a745d002043a10ae7c01983fe5fe93846"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#a745d002043a10ae7c01983fe5fe93846">shaka::PlayreadyEncryptionParams::ca_file</a></div><div class="ttdeci">std::string ca_file</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00083">crypto_params.h:83</a></div></div>
<div class="ttc" id="structshaka_1_1WidevineSigner_html_a6db96d4c3f1189bbd09515732bec94d9"><div class="ttname"><a href="../../df/d22/structshaka_1_1WidevineSigner.html#a6db96d4c3f1189bbd09515732bec94d9">shaka::WidevineSigner::iv</a></div><div class="ttdeci">std::vector&lt; uint8_t &gt; iv</div><div class="ttdoc">AES signing IV. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00042">crypto_params.h:42</a></div></div>
<div class="ttc" id="structshaka_1_1PlayreadyEncryptionParams_html_afdc9477270b8a626163940cddff4fa8c"><div class="ttname"><a href="../../d3/df5/structshaka_1_1PlayreadyEncryptionParams.html#afdc9477270b8a626163940cddff4fa8c">shaka::PlayreadyEncryptionParams::client_cert_file</a></div><div class="ttdeci">std::string client_cert_file</div><div class="ttdoc">Absolute path to client certificate file. </div><div class="ttdef"><b>Definition:</b> <a href="../../dd/d58/crypto__params_8h_source.html#l00085">crypto_params.h:85</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Aug 18 2017 18:39:36 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>