<ahref="ps3__crypto_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__crypto_8c_html_a8c99822e07011d07362d5d40487eded6"><divclass="ttname"><ahref="ps3__crypto_8c.html#a8c99822e07011d07362d5d40487eded6">ps3_lazy_init</a></div><divclass="ttdeci">void ps3_lazy_init(aaruformat_context *ctx)</div><divclass="ttdoc">Lazy-initialize PS3 encryption state from context media tags.</div><divclass="ttdef"><b>Definition</b><ahref="ps3__crypto_8c_source.html#l00070">ps3_crypto.c:70</a></div></div>
<divclass="ttc"id="aps3__crypto_8c_html_a8ee401b8bd7370fef44a5cfdcf361ee6"><divclass="ttname"><ahref="ps3__crypto_8c.html#a8ee401b8bd7370fef44a5cfdcf361ee6">ps3_derive_disc_key</a></div><divclass="ttdeci">void ps3_derive_disc_key(const uint8_t data1[16], uint8_t disc_key[16])</div><divclass="ttdoc">Derive a PS3 disc key from a data1 key.</div><divclass="ttdef"><b>Definition</b><ahref="ps3__crypto_8c_source.html#l00039">ps3_crypto.c:39</a></div></div>
<divclass="ttc"id="aps3__crypto_8c_html_a9c59bc8ce8ecd8457a8eb62287b09915"><divclass="ttname"><ahref="ps3__crypto_8c.html#a9c59bc8ce8ecd8457a8eb62287b09915">ps3_derive_iv</a></div><divclass="ttdeci">void ps3_derive_iv(uint64_t sector_num, uint8_t iv[16])</div><divclass="ttdoc">Derive the per-sector AES IV from a sector number.</div><divclass="ttdef"><b>Definition</b><ahref="ps3__crypto_8c_source.html#l00045">ps3_crypto.c:45</a></div></div>
<divclass="ttc"id="aps3__crypto_8c_html_af7ff1fb41dd6ad9c3449d7c48bc5a462"><divclass="ttname"><ahref="ps3__crypto_8c.html#af7ff1fb41dd6ad9c3449d7c48bc5a462">ps3_decrypt_sector</a></div><divclass="ttdeci">void ps3_decrypt_sector(const uint8_t disc_key[16], uint64_t sector_num, uint8_t *data, uint32_t length)</div><divclass="ttdoc">Decrypt a sector using PS3 disc encryption (AES-128-CBC).</div><divclass="ttdef"><b>Definition</b><ahref="ps3__crypto_8c_source.html#l00063">ps3_crypto.c:63</a></div></div>
<divclass="ttc"id="aps3__crypto_8c_html_af9a3081e827ba140edc64fda2e93ee96"><divclass="ttname"><ahref="ps3__crypto_8c.html#af9a3081e827ba140edc64fda2e93ee96">ps3_encrypt_sector</a></div><divclass="ttdeci">void ps3_encrypt_sector(const uint8_t disc_key[16], uint64_t sector_num, uint8_t *data, uint32_t length)</div><divclass="ttdoc">Encrypt a sector using PS3 disc encryption (AES-128-CBC).</div><divclass="ttdef"><b>Definition</b><ahref="ps3__crypto_8c_source.html#l00056">ps3_crypto.c:56</a></div></div>
<divclass="ttc"id="astructaaruformat__context_html"><divclass="ttname"><ahref="structaaruformat__context.html">aaruformat_context</a></div><divclass="ttdoc">Master context representing an open or in‑creation Aaru image.</div><divclass="ttdef"><b>Definition</b><ahref="context_8h_source.html#l00177">context.h:178</a></div></div>
<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>