<!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.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Crypto++: 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> <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 id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Crypto++  <span id="projectnumber">7.0</span> </div> <div id="projectbrief">Free C++ class library of cryptographic schemes</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">md5.h</div> </div> </div><!--header--> <div class="contents"> <div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef CRYPTOPP_MD5_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define CRYPTOPP_MD5_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "iterhash.h"</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> NAMESPACE_BEGIN(<a class="code" href="namespace_crypto_p_p.html">CryptoPP</a>)</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">namespace </span>Weak1 {</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">/// \brief MD5 message digest</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">/// \sa <a href="http://www.cryptolounge.org/wiki/MD5">MD5</a></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">/// \since Crypto++ 1.0</span></div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_weak_1_1_m_d5.html"> 13</a></span> <span class="comment"></span><span class="keyword">class </span><a class="code" href="class_weak_1_1_m_d5.html">MD5</a> : <span class="keyword">public</span> <a class="code" href="class_iterated_hash_with_static_transform.html">IteratedHashWithStaticTransform</a><word32, LittleEndian, 64, 16, MD5></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> InitState(HashWordType *state);</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keyword">static</span> <span class="keywordtype">void</span> Transform(word32 *digest, <span class="keyword">const</span> word32 *data);</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  CRYPTOPP_STATIC_CONSTEXPR <span class="keyword">const</span> <span class="keywordtype">char</span>* StaticAlgorithmName() {<span class="keywordflow">return</span> <span class="stringliteral">"MD5"</span>;}</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> };</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> }</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#if CRYPTOPP_ENABLE_NAMESPACE_WEAK >= 1</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span><a class="code" href="namespace_weak.html">Weak</a> {<span class="keyword">using namespace </span>Weak1;} <span class="comment">// import Weak1 into CryptoPP::Weak</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">using namespace </span>Weak1; <span class="comment">// import Weak1 into CryptoPP with warning</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#ifdef __GNUC__</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#warning "You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning."</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#pragma message("You may be using a weak algorithm that has been retained for backwards compatibility. Please '#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1' before including this .h file and prepend the class name with 'Weak::' to remove this warning.")</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> NAMESPACE_END</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="class_iterated_hash_with_static_transform_html"><div class="ttname"><a href="class_iterated_hash_with_static_transform.html">IteratedHashWithStaticTransform</a></div><div class="ttdoc">Iterated hash with a static transformation function. </div><div class="ttdef"><b>Definition:</b> <a href="iterhash_8h_source.html#l00160">iterhash.h:160</a></div></div> <div class="ttc" id="class_weak_1_1_m_d5_html"><div class="ttname"><a href="class_weak_1_1_m_d5.html">Weak::MD5</a></div><div class="ttdoc">MD5 message digest. </div><div class="ttdef"><b>Definition:</b> <a href="md5_8h_source.html#l00013">md5.h:13</a></div></div> <div class="ttc" id="namespace_crypto_p_p_html"><div class="ttname"><a href="namespace_crypto_p_p.html">CryptoPP</a></div><div class="ttdoc">Crypto++ library namespace. </div></div> <div class="ttc" id="namespace_weak_html"><div class="ttname"><a href="namespace_weak.html">Weak</a></div><div class="ttdoc">Namespace containing weak and wounded algorithms. </div><div class="ttdef"><b>Definition:</b> <a href="arc4_8cpp_source.html#l00014">arc4.cpp:14</a></div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 16 2018 07:57:57 for Crypto++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.14 </small></address> </body> </html>