<ahref="ps3__encryption__map_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aid="l00001"name="l00001"></a><spanclass="lineno"> 1</span><spanclass="comment">/*</span></div>
<divclass="line"><aid="l00002"name="l00002"></a><spanclass="lineno"> 2</span><spanclass="comment"> * This file is part of the Aaru Data Preservation Suite.</span></div>
<divclass="line"><aid="l00005"name="l00005"></a><spanclass="lineno"> 5</span><spanclass="comment"> * This library is free software; you can redistribute it and/or modify</span></div>
<divclass="line"><aid="l00006"name="l00006"></a><spanclass="lineno"> 6</span><spanclass="comment"> * it under the terms of the GNU Lesser General Public License as</span></div>
<divclass="line"><aid="l00007"name="l00007"></a><spanclass="lineno"> 7</span><spanclass="comment"> * published by the Free Software Foundation; version 2.1 of the License.</span></div>
<divclass="line"><aid="l00009"name="l00009"></a><spanclass="lineno"> 9</span><spanclass="comment"> * This library is distributed in the hope that it will be useful, but</span></div>
<divclass="line"><aid="l00010"name="l00010"></a><spanclass="lineno"> 10</span><spanclass="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<divclass="line"><aid="l00011"name="l00011"></a><spanclass="lineno"> 11</span><spanclass="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
<divclass="line"><aid="l00012"name="l00012"></a><spanclass="lineno"> 12</span><spanclass="comment"> * Lesser General Public License for more details.</span></div>
<divclass="line"><aid="l00014"name="l00014"></a><spanclass="lineno"> 14</span><spanclass="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<divclass="line"><aid="l00015"name="l00015"></a><spanclass="lineno"> 15</span><spanclass="comment"> * License along with this library; if not, see</span></div>
<divclass="ttc"id="aps3__encryption__map_8c_html_a058b5191df4b4a83a6bc55052fad503f"><divclass="ttname"><ahref="ps3__encryption__map_8c.html#a058b5191df4b4a83a6bc55052fad503f">ps3_is_sector_encrypted</a></div><divclass="ttdeci">bool ps3_is_sector_encrypted(const Ps3PlaintextRegion *plaintext_regions, uint32_t region_count, uint64_t sector_address)</div><divclass="ttdoc">Check whether a sector is encrypted (i.e., not in any plaintext region).</div><divclass="ttdef"><b>Definition</b><ahref="ps3__encryption__map_8c_source.html#l00151">ps3_encryption_map.c:151</a></div></div>
<divclass="ttc"id="aps3__encryption__map_8c_html_a49a5e6c2b524988714513c446e2d200d"><divclass="ttname"><ahref="ps3__encryption__map_8c.html#a49a5e6c2b524988714513c446e2d200d">ps3_deserialize_encryption_map</a></div><divclass="ttdeci">int32_t ps3_deserialize_encryption_map(const uint8_t *data, uint32_t length, Ps3PlaintextRegion **regions, uint32_t *count)</div><divclass="ttdoc">Deserialize plaintext regions from little-endian binary (media tag format).</div><divclass="ttdef"><b>Definition</b><ahref="ps3__encryption__map_8c_source.html#l00117">ps3_encryption_map.c:117</a></div></div>
<divclass="ttc"id="aps3__encryption__map_8c_html_ab646921aa4c83e38af36f38b8b3d068a"><divclass="ttname"><ahref="ps3__encryption__map_8c.html#ab646921aa4c83e38af36f38b8b3d068a">ps3_parse_encryption_map</a></div><divclass="ttdeci">int32_t ps3_parse_encryption_map(const uint8_t *sector0, uint32_t length, Ps3PlaintextRegion **regions, uint32_t *count)</div><divclass="ttdoc">Parse the encryption map from PS3 disc sector 0 (big-endian on disc).</div><divclass="ttdef"><b>Definition</b><ahref="ps3__encryption__map_8c_source.html#l00048">ps3_encryption_map.c:48</a></div></div>
<divclass="ttc"id="aps3__encryption__map_8c_html_aebc9066937e11649d0a81351ddd83582"><divclass="ttname"><ahref="ps3__encryption__map_8c.html#aebc9066937e11649d0a81351ddd83582">ps3_serialize_encryption_map</a></div><divclass="ttdeci">int32_t ps3_serialize_encryption_map(const Ps3PlaintextRegion *regions, uint32_t count, uint8_t **out_data, uint32_t *out_length)</div><divclass="ttdoc">Serialize plaintext regions to little-endian binary for storage as a media tag.</div><divclass="ttdef"><b>Definition</b><ahref="ps3__encryption__map_8c_source.html#l00094">ps3_encryption_map.c:94</a></div></div>
<divclass="ttc"id="astructPs3PlaintextRegion_html"><divclass="ttname"><ahref="structPs3PlaintextRegion.html">Ps3PlaintextRegion</a></div><divclass="ttdoc">A plaintext (unencrypted) region on a PS3 disc.</div><divclass="ttdef"><b>Definition</b><ahref="#l00033">ps3_encryption_map.h:34</a></div></div>
<divclass="ttc"id="astructPs3PlaintextRegion_html_a0f8d51bfa05ef8ec55608186331e7991"><divclass="ttname"><ahref="structPs3PlaintextRegion.html#a0f8d51bfa05ef8ec55608186331e7991">Ps3PlaintextRegion::start_sector</a></div><divclass="ttdeci">uint32_t start_sector</div><divclass="ttdoc">First sector of plaintext region (inclusive).</div><divclass="ttdef"><b>Definition</b><ahref="#l00035">ps3_encryption_map.h:35</a></div></div>
<divclass="ttc"id="astructPs3PlaintextRegion_html_a71978362decd504b3e3ecfb8e05980e4"><divclass="ttname"><ahref="structPs3PlaintextRegion.html#a71978362decd504b3e3ecfb8e05980e4">Ps3PlaintextRegion::end_sector</a></div><divclass="ttdeci">uint32_t end_sector</div><divclass="ttdoc">Last sector of plaintext region (inclusive).</div><divclass="ttdef"><b>Definition</b><ahref="#l00036">ps3_encryption_map.h:36</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</div><!-- container -->
<!-- start footer part -->
<divid="nav-path"class="navpath"><!-- id is needed for treeview function! -->
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.18.0 </li>