Files
libaaruformat/docs/html/md5_8h_source.html

157 lines
13 KiB
HTML
Raw Normal View History

2025-10-11 01:35:43 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libaaruformat: include/md5.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>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 id="projectrow">
<td id="projectalign">
<div id="projectname">libaaruformat<span id="projectnumber">&#160;1.0</span>
</div>
<div id="projectbrief">Aaru Data Preservation Suite - Format Library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(function(){initNavTree('md5_8h_source.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">md5.h</div></div>
</div><!--header-->
<div class="contents">
<a href="md5_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * MD5 Message-Digest Algorithm (RFC 1321).</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * Homepage:</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> *</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * Author:</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> * Alexander Peslyak, better known as Solar Designer &lt;solar at openwall.com&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * This software was written by Alexander Peslyak in 2001. No copyright is</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * claimed, and the software is hereby placed in the public domain.</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * In case this attempt to disclaim copyright and place the software in the</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * public domain is deemed null and void, then the software is</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * Copyright (c) 2001 Alexander Peslyak and it is hereby released to the</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * general public under the following terms:</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> *</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment"> * modification, are permitted.</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="comment"> *</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="comment"> * There&#39;s ABSOLUTELY NO WARRANTY, express or implied.</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="comment"> *</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="comment"> * See md5.c for more information.</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="comment"> */</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#ifndef LIBAARUFORMAT_MD5_H</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#define LIBAARUFORMAT_MD5_H</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="foldopen" id="foldopen00031" data-start="{" data-end="};">
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structmd5__ctx.html"> 31</a></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>{</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structmd5__ctx.html#ade0449722c62ebb5d5172188188f200a"> 33</a></span> uint32_t <a class="code hl_variable" href="structmd5__ctx.html#aff3c51e4ae412c387c9f2660ba46eea7">lo</a>, <a class="code hl_variable" href="structmd5__ctx.html#ade0449722c62ebb5d5172188188f200a">hi</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structmd5__ctx.html#a08d0effe77a7c9a82c72b4f377b3eb20"> 34</a></span> uint32_t <a class="code hl_variable" href="structmd5__ctx.html#a08d0effe77a7c9a82c72b4f377b3eb20">a</a>, <a class="code hl_variable" href="structmd5__ctx.html#a0d97b57112eabf84662c5cb834a5e958">b</a>, <a class="code hl_variable" href="structmd5__ctx.html#af411012f4e3b3c85a24f4b3e688bdd58">c</a>, <a class="code hl_variable" href="structmd5__ctx.html#aae8643de24f9a27257b574aceb613e47">d</a>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structmd5__ctx.html#a72256766fb1a364fe9398dcacff6bb63"> 35</a></span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code hl_variable" href="structmd5__ctx.html#a72256766fb1a364fe9398dcacff6bb63">buffer</a>[64];</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structmd5__ctx.html#a8ab8f09a47057f2598505ff191f88706"> 36</a></span> uint32_t <a class="code hl_variable" href="structmd5__ctx.html#a8ab8f09a47057f2598505ff191f88706">block</a>[16];</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>} <a class="code hl_struct" href="structmd5__ctx.html">md5_ctx</a>;</div>
</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="preprocessor">#endif </span><span class="comment">/* LIBAARUFORMAT_MD5_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="astructmd5__ctx_html"><div class="ttname"><a href="structmd5__ctx.html">md5_ctx</a></div><div class="ttdef"><b>Definition</b> <a href="#l00031">md5.h:32</a></div></div>
<div class="ttc" id="astructmd5__ctx_html_a08d0effe77a7c9a82c72b4f377b3eb20"><div class="ttname"><a href="structmd5__ctx.html#a08d0effe77a7c9a82c72b4f377b3eb20">md5_ctx::a</a></div><div class="ttdeci">uint32_t a</div><div class="ttdef"><b>Definition</b> <a href="#l00034">md5.h:34</a></div></div>
<div class="ttc" id="astructmd5__ctx_html_a0d97b57112eabf84662c5cb834a5e958"><div class="ttname"><a href="structmd5__ctx.html#a0d97b57112eabf84662c5cb834a5e958">md5_ctx::b</a></div><div class="ttdeci">uint32_t b</div><div class="ttdef"><b>Definition</b> <a href="#l00034">md5.h:34</a></div></div>
<div class="ttc" id="astructmd5__ctx_html_a72256766fb1a364fe9398dcacff6bb63"><div class="ttname"><a href="structmd5__ctx.html#a72256766fb1a364fe9398dcacff6bb63">md5_ctx::buffer</a></div><div class="ttdeci">unsigned char buffer[64]</div><div class="ttdef"><b>Definition</b> <a href="#l00035">md5.h:35</a></div></div>
<div class="ttc" id="astructmd5__ctx_html_a8ab8f09a47057f2598505ff191f88706"><div class="ttname"><a href="structmd5__ctx.html#a8ab8f09a47057f2598505ff191f88706">md5_ctx::block</a></div><div class="ttdeci">uint32_t block[16]</div><div class="ttdef"><b>Definition</b> <a href="#l00036">md5.h:36</a></div></div>
<div class="ttc" id="astructmd5__ctx_html_aae8643de24f9a27257b574aceb613e47"><div class="ttname"><a href="structmd5__ctx.html#aae8643de24f9a27257b574aceb613e47">md5_ctx::d</a></div><div class="ttdeci">uint32_t d</div><div class="ttdef"><b>Definition</b> <a href="#l00034">md5.h:34</a></div></div>
<div class="ttc" id="astructmd5__ctx_html_ade0449722c62ebb5d5172188188f200a"><div class="ttname"><a href="structmd5__ctx.html#ade0449722c62ebb5d5172188188f200a">md5_ctx::hi</a></div><div class="ttdeci">uint32_t hi</div><div class="ttdef"><b>Definition</b> <a href="#l00033">md5.h:33</a></div></div>
<div class="ttc" id="astructmd5__ctx_html_af411012f4e3b3c85a24f4b3e688bdd58"><div class="ttname"><a href="structmd5__ctx.html#af411012f4e3b3c85a24f4b3e688bdd58">md5_ctx::c</a></div><div class="ttdeci">uint32_t c</div><div class="ttdef"><b>Definition</b> <a href="#l00034">md5.h:34</a></div></div>
<div class="ttc" id="astructmd5__ctx_html_aff3c51e4ae412c387c9f2660ba46eea7"><div class="ttname"><a href="structmd5__ctx.html#aff3c51e4ae412c387c9f2660ba46eea7">md5_ctx::lo</a></div><div class="ttdeci">uint32_t lo</div><div class="ttdef"><b>Definition</b> <a href="#l00033">md5.h:33</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a href="md5_8h.html">md5.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li>
</ul>
</div>
</body>
</html>