Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 9e72f3e7ecf68cce016a7c5c59e863d3 > files > 197

lib64polarssl-devel-1.3.8-1.mga4.x86_64.rpm

<!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.5"/>
<title>PolarSSL v1.3.8: compat-1.2.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 style="padding-left: 0.5em;">
   <div id="projectname">PolarSSL v1.3.8
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6a9bbd12bf4e19a18c45e270f8fae3fd.html">include</a></li><li class="navelem"><a class="el" href="dir_04272d44da4745cf8b8bfc767d6c6523.html">polarssl</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">compat-1.2.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="compat-1_82_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#ifndef POLARSSL_COMPAT_1_2_H</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_COMPAT_1_2_H</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#if !defined(POLARSSL_CONFIG_FILE)</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="config_8h.html">config.h</a>&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include POLARSSL_CONFIG_FILE</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">// Comment out to disable prototype change warnings</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a72abe85a6092b0f6f28122372f57edfe">   37</a></span>&#160;<span class="preprocessor">#define SHOW_PROTOTYPE_CHANGE_WARNINGS</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#if defined(_MSC_VER) &amp;&amp; !defined(inline)</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define inline _inline</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#else</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if defined(__ARMCC_VERSION) &amp;&amp; !defined(inline)</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define inline __inline</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* __ARMCC_VERSION */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* _MSC_VER */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#if defined(_MSC_VER)</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor"></span><span class="comment">// MSVC does not support #warning</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#undef SHOW_PROTOTYPE_CHANGE_WARNINGS</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#if defined(SHOW_PROTOTYPE_CHANGE_WARNINGS)</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#warning &quot;You can disable these warnings by commenting SHOW_PROTOTYPE_CHANGE_WARNINGS in compat-1.2.h&quot;</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#if defined(POLARSSL_SHA256_C)</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a31394d384ae4fb407708c0a6c30733d5">   57</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_SHA2_C</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="sha256_8h.html">sha256.h</a>&quot;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment"> * SHA-2 -&gt; SHA-256</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aaeaf58475f6d319fa2a920ea07943335">   63</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="structsha256__context.html">sha256_context</a> <a class="code" href="compat-1_82_8h.html#aaeaf58475f6d319fa2a920ea07943335">sha2_context</a>;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a5c8c207edb69950bde7654115d23f79c">   65</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a5c8c207edb69950bde7654115d23f79c">sha2_starts</a>( <a class="code" href="structsha256__context.html">sha256_context</a> *ctx, <span class="keywordtype">int</span> is224 ) {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <a class="code" href="sha256_8h.html#ae8e12a0ae383d163ed4d5ead3b96c4de">sha256_starts</a>( ctx, is224 );</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"><a class="line" href="compat-1_82_8h.html#aee1ee86e5bf436295e379d05a3bc664d">   68</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#aee1ee86e5bf436295e379d05a3bc664d">sha2_update</a>( <a class="code" href="structsha256__context.html">sha256_context</a> *ctx, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input,</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                         <span class="keywordtype">size_t</span> ilen ) {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="sha256_8h.html#ad6a332874701f3170d35dc42dec89428">sha256_update</a>( ctx, input, ilen );</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;}</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a5f62829759ebd380517636207de3dcbd">   72</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a5f62829759ebd380517636207de3dcbd">sha2_finish</a>( <a class="code" href="structsha256__context.html">sha256_context</a> *ctx, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[32] ) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="sha256_8h.html#a2336e05cf0778065a128557c3e69fe53">sha256_finish</a>( ctx, output );</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aee6c72bde73887988ca42f882bf26947">   75</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#aee6c72bde73887988ca42f882bf26947">sha2_file</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[32], <span class="keywordtype">int</span> is224 ) {</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="sha256_8h.html#a28c036f06f6c9bef50ea366d13e25da4">sha256_file</a>( path, output, is224 );</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a6ade6c0ec308932f2162c6a3af2bae99">   78</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a6ade6c0ec308932f2162c6a3af2bae99">sha2</a>( <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">size_t</span> ilen,</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[32], <span class="keywordtype">int</span> is224 ) {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="sha256_8h.html#a67457fa83af0439e80538d99426eb39a">sha256</a>( input, ilen, output, is224 );</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;}</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a615286fca07876d0fd06ab19c482953e">   82</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a615286fca07876d0fd06ab19c482953e">sha2_hmac_starts</a>( <a class="code" href="structsha256__context.html">sha256_context</a> *ctx, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *key,</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;                              <span class="keywordtype">size_t</span> keylen, <span class="keywordtype">int</span> is224 ) {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="sha256_8h.html#a9149920697b6ca77185fb8c25d29ed2d">sha256_hmac_starts</a>( ctx, key, keylen, is224 );</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;}</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a6c254c917107f7103c2eadda919e72f0">   86</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a6c254c917107f7103c2eadda919e72f0">sha2_hmac_update</a>( <a class="code" href="structsha256__context.html">sha256_context</a> *ctx, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">size_t</span> ilen ) {</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="sha256_8h.html#a4dbd9d5d390a0cf457e1dab00923167b">sha256_hmac_update</a>( ctx, input, ilen );</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;}</div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ab35d140a68e031ea796ec789cace4d82">   89</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#ab35d140a68e031ea796ec789cace4d82">sha2_hmac_finish</a>( <a class="code" href="structsha256__context.html">sha256_context</a> *ctx, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[32] ) {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="sha256_8h.html#a2c0da55b9f26e74f14f1d1764932fc6a">sha256_hmac_finish</a>( ctx, output );</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a05919276e2aca79a0de7637eff2430b8">   92</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a05919276e2aca79a0de7637eff2430b8">sha2_hmac_reset</a>( <a class="code" href="structsha256__context.html">sha256_context</a> *ctx ) {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="sha256_8h.html#a7ffbdf4d843ecf7231d89d279ec57abd">sha256_hmac_reset</a>( ctx );</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;}</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#afe4691d58214923977ecad303b2ffc69">   95</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#afe4691d58214923977ecad303b2ffc69">sha2_hmac</a>( <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">size_t</span> keylen,</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                       <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">size_t</span> ilen,</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[32], <span class="keywordtype">int</span> is224 ) {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="sha256_8h.html#acdc08a6c1083b3a1ffb0bd5850272054">sha256_hmac</a>( key, keylen, input, ilen, output, is224 );</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;}</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a94dc0e3ca80227bb908002f809e0ba13">  100</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a94dc0e3ca80227bb908002f809e0ba13">sha2_self_test</a>( <span class="keywordtype">int</span> verbose ) {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="sha256_8h.html#a471f1c466477f7073aba0cf61d109991">sha256_self_test</a>( verbose );</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;}</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_SHA256_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#if defined(POLARSSL_SHA512_C)</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aac504bba83874bf89c0616850d873d46">  106</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_SHA4_C</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="sha512_8h.html">sha512.h</a>&quot;</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment"> * SHA-4 -&gt; SHA-512</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aeb20738b202116f82a0077919027c611">  112</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="structsha512__context.html">sha512_context</a> <a class="code" href="compat-1_82_8h.html#aeb20738b202116f82a0077919027c611">sha4_context</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a05ccadd6cb708903fb8476e018b0ebf2">  114</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a05ccadd6cb708903fb8476e018b0ebf2">sha4_starts</a>( <a class="code" href="structsha512__context.html">sha512_context</a> *ctx, <span class="keywordtype">int</span> is384 ) {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <a class="code" href="sha512_8h.html#a6079e154daa986d2e8b0be61c21063ef">sha512_starts</a>( ctx, is384 );</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"><a class="line" href="compat-1_82_8h.html#a90bfbb63b1abf608fbe28beee4366a0c">  117</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a90bfbb63b1abf608fbe28beee4366a0c">sha4_update</a>( <a class="code" href="structsha512__context.html">sha512_context</a> *ctx, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input,</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                         <span class="keywordtype">size_t</span> ilen ) {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <a class="code" href="sha512_8h.html#afaa574d01d7d92bbd637a9a2b30ab1ad">sha512_update</a>( ctx, input, ilen );</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#afa3497eadd8f512f0282b969fdf4fec9">  121</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#afa3497eadd8f512f0282b969fdf4fec9">sha4_finish</a>( <a class="code" href="structsha512__context.html">sha512_context</a> *ctx, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[64] ) {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <a class="code" href="sha512_8h.html#abbbcba6e6c1a9c6b098be20418d81305">sha512_finish</a>( ctx, output );</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;}</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a200e0481a4fa6501575e7b2b20441df1">  124</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a200e0481a4fa6501575e7b2b20441df1">sha4_file</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[64], <span class="keywordtype">int</span> is384 ) {</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="sha512_8h.html#aab257203cb2762eb59e5c6407534fd63">sha512_file</a>( path, output, is384 );</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;}</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ad50caf0e9aa86efc95f5e1036f2993e5">  127</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#ad50caf0e9aa86efc95f5e1036f2993e5">sha4</a>( <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">size_t</span> ilen,</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[32], <span class="keywordtype">int</span> is384 ) {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="sha512_8h.html#a84e277fd84a8cbacceabcd0909610681">sha512</a>( input, ilen, output, is384 );</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a9aab3b0b60acb6a6eebb76d5ad7d4d02">  131</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a9aab3b0b60acb6a6eebb76d5ad7d4d02">sha4_hmac_starts</a>( <a class="code" href="structsha512__context.html">sha512_context</a> *ctx, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *key,</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                              <span class="keywordtype">size_t</span> keylen, <span class="keywordtype">int</span> is384 ) {</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="sha512_8h.html#ae82bbb3a6ad8c5e0ff0afad2943e5a4b">sha512_hmac_starts</a>( ctx, key, keylen, is384 );</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;}</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a554d0751dd7371cc56c3366bd1f6a422">  135</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a554d0751dd7371cc56c3366bd1f6a422">sha4_hmac_update</a>( <a class="code" href="structsha512__context.html">sha512_context</a> *ctx, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">size_t</span> ilen ) {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <a class="code" href="sha512_8h.html#a72dc4588ea2de993e6344fbe3ae157de">sha512_hmac_update</a>( ctx, input, ilen );</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;}</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#afed9a9ffdbd812606c025c74ea5941a9">  138</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#afed9a9ffdbd812606c025c74ea5941a9">sha4_hmac_finish</a>( <a class="code" href="structsha512__context.html">sha512_context</a> *ctx, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[64] ) {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="sha512_8h.html#a6f5347dfbc02a48941e3f95ea3ea0b0e">sha512_hmac_finish</a>( ctx, output );</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#abbb620f51421393f1e818f62e7686e3b">  141</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#abbb620f51421393f1e818f62e7686e3b">sha4_hmac_reset</a>( <a class="code" href="structsha512__context.html">sha512_context</a> *ctx ) {</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <a class="code" href="sha512_8h.html#a1e074e2d6e9201b45c97e2acf4fdd7b9">sha512_hmac_reset</a>( ctx );</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;}</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ac49ea4087d3f59d3d29f29dddffe2dc4">  144</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#ac49ea4087d3f59d3d29f29dddffe2dc4">sha4_hmac</a>( <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">size_t</span> keylen,</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                       <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input, <span class="keywordtype">size_t</span> ilen,</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                       <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> output[64], <span class="keywordtype">int</span> is384 ) {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <a class="code" href="sha512_8h.html#a97d975b27d9a1742e3bf7bdb00e3ecbb">sha512_hmac</a>( key, keylen, input, ilen, output, is384 );</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;}</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aff781724a769dced35e4ca157fa7fa30">  149</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#aff781724a769dced35e4ca157fa7fa30">sha4_self_test</a>( <span class="keywordtype">int</span> verbose ) {</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="sha512_8h.html#a5422f63cc0ec844d5ba6a9dc1bcdc2b2">sha512_self_test</a>( verbose );</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;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_SHA512_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#if defined(POLARSSL_CIPHER_C)</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if defined(SHOW_PROTOTYPE_CHANGE_WARNINGS)</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#warning &quot;cipher_reset() prototype changed. Manual change required if used&quot;</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#if defined(POLARSSL_RSA_C)</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a9ebbb0361ff22e4136277f4b956e10b3">  161</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_RAW     POLARSSL_MD_NONE</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ac844984e1199b323e48874205b5aa34a">  162</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_MD2     POLARSSL_MD_MD2</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a5c0041d6be578a2c690c895a14b49c61">  163</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_MD4     POLARSSL_MD_MD4</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#abd48a5411c9e398f8f338e5a4e22bfcc">  164</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_MD5     POLARSSL_MD_MD5</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a770c8731881b448f34e50f542874b378">  165</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_SHA1    POLARSSL_MD_SHA1</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a530b9da516b477b79f473b7c633bc122">  166</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_SHA224  POLARSSL_MD_SHA224</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a9d9753f3bc798ea73dc86c8a414fed4e">  167</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_SHA256  POLARSSL_MD_SHA256</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#adb13cdf68a18e7e07e636f3417004f31">  168</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_SHA384  POLARSSL_MD_SHA384</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ad356c169f7fb2902af87ce3835eca7e5">  169</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SIG_RSA_SHA512  POLARSSL_MD_SHA512</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if defined(SHOW_PROTOTYPE_CHANGE_WARNINGS)</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#warning &quot;rsa_pkcs1_verify() prototype changed. Manual change required if used&quot;</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#warning &quot;rsa_pkcs1_decrypt() prototype changed. Manual change required if used&quot;</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_RSA_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">#if defined(POLARSSL_DHM_C)</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if defined(SHOW_PROTOTYPE_CHANGE_WARNINGS)</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#warning &quot;dhm_calc_secret() prototype changed. Manual change required if used&quot;</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="preprocessor">#if defined(POLARSSL_GCM_C)</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if defined(SHOW_PROTOTYPE_CHANGE_WARNINGS)</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#warning &quot;gcm_init() prototype changed. Manual change required if used&quot;</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="preprocessor">#if defined(POLARSSL_SSL_CLI_C)</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#if defined(SHOW_PROTOTYPE_CHANGE_WARNINGS)</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#warning &quot;ssl_set_own_cert() prototype changed. Change to ssl_set_own_cert_rsa(). Manual change required if used&quot;</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="preprocessor">#if defined(POLARSSL_X509_USE_C) || defined(POLARSSL_X509_CREATE_C)</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="x509_8h.html">x509.h</a>&quot;</span></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"><a class="line" href="compat-1_82_8h.html#aca3a920f5b16da40c2e28aa5d9e2100f">  197</a></span>&#160;<span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_FORMAT POLARSSL_ERR_X509_INVALID_FORMAT</span></div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ad825d47d7a1be65bfe682e43a8c7bf2e">  198</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_VERSION POLARSSL_ERR_X509_INVALID_VERSION</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aa232ca8dd86f696cf1e2a4e5f8fbf3ae">  199</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_ALG POLARSSL_ERR_X509_INVALID_ALG</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a8b1eb62a3bfb1863d7ad03e518ca010d">  200</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_UNKNOWN_SIG_ALG POLARSSL_ERR_X509_UNKNOWN_SIG_ALG</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a7c6bd891b87bec9193cf16f2dfae5c68">  201</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_NAME POLARSSL_ERR_X509_INVALID_NAME</span></div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a6d5211d99927813cf5a2f48b91efd3ad">  202</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_DATE POLARSSL_ERR_X509_INVALID_DATE</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a66a34aca6078998cfea53755bd705560">  203</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS POLARSSL_ERR_X509_INVALID_EXTENSIONS</span></div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a0f6c35a25fec95ffc066f00e34a169c3">  204</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_SIG_MISMATCH POLARSSL_ERR_X509_SIG_MISMATCH</span></div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#abfb8fe7657e90a3124e44c6233f49bbd">  205</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_SIGNATURE POLARSSL_ERR_X509_INVALID_SIGNATURE</span></div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aae24eb27e6e1c1796b088a806d2677d6">  206</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_SERIAL POLARSSL_ERR_X509_INVALID_SERIAL</span></div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a51c9af64f5a030b98e2212dc0a410c02">  207</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_UNKNOWN_VERSION POLARSSL_ERR_X509_UNKNOWN_VERSION</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ac58ff8e6db9694916c8ec3237269361c">  209</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#ac58ff8e6db9694916c8ec3237269361c">x509parse_serial_gets</a>( <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <a class="code" href="struct__asn1__buf.html">x509_buf</a> *serial ) {</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="x509_8h.html#acd36d794a8edbbf66fe2e267d8804854">x509_serial_gets</a>( buf, size, serial );</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div>
<div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aea59504fd692e57499d88b116d664d29">  212</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#aea59504fd692e57499d88b116d664d29">x509parse_dn_gets</a>( <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <a class="code" href="struct__asn1__named__data.html">x509_name</a> *dn ) {</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="x509_8h.html#a4efdfbe50891c916ade3170b91faeebc">x509_dn_gets</a>( buf, size, dn );</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;}</div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aa84d5fa568c94bfbb8f006af857d9fc7">  215</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#aa84d5fa568c94bfbb8f006af857d9fc7">x509parse_time_expired</a>( <span class="keyword">const</span> <a class="code" href="struct__x509__time.html">x509_time</a> *time ) {</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="x509_8h.html#a0409eb86cad22e4ecf3b31585bd1aca8">x509_time_expired</a>( time );</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;}</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_X509_USE_C || POLARSSL_X509_CREATE_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="preprocessor">#if defined(POLARSSL_X509_CRT_PARSE_C)</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_X509_PARSE_C</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="x509__crt_8h.html">x509_crt.h</a>&quot;</span></div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a42c90dec92809ae1e7fe328488b95f6d">  223</a></span>&#160;<span class="keyword">typedef</span> <a class="code" href="struct__x509__crt.html">x509_crt</a> <a class="code" href="compat-1_82_8h.html#a42c90dec92809ae1e7fe328488b95f6d">x509_cert</a>;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a9cf2602280f885c411b455d9bb29a2aa">  225</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a9cf2602280f885c411b455d9bb29a2aa">x509parse_crt_der</a>( <a class="code" href="struct__x509__crt.html">x509_cert</a> *chain, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf,</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                              <span class="keywordtype">size_t</span> buflen ) {</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#ga2d8d1c87fa24f176a160041f11ad3c72">x509_crt_parse_der</a>( chain, buf, buflen );</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;}</div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a70b3229deb69f767e7ae0231075690b7">  229</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a70b3229deb69f767e7ae0231075690b7">x509parse_crt</a>( <a class="code" href="struct__x509__crt.html">x509_cert</a> *chain, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> buflen ) {</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#gafc724dee6827c47fed1eec64bb13727b">x509_crt_parse</a>( chain, buf, buflen );</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;}</div>
<div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a48601801c56e34c247c52b3ca39e8bcb">  232</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a48601801c56e34c247c52b3ca39e8bcb">x509parse_crtfile</a>( <a class="code" href="struct__x509__crt.html">x509_cert</a> *chain, <span class="keyword">const</span> <span class="keywordtype">char</span> *path ) {</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#ga2f937df6c64b400210dbeb5ad26cc8c2">x509_crt_parse_file</a>( chain, path );</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;}</div>
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aa91354d52fd88d56a8b448fe806b8748">  235</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#aa91354d52fd88d56a8b448fe806b8748">x509parse_crtpath</a>( <a class="code" href="struct__x509__crt.html">x509_cert</a> *chain, <span class="keyword">const</span> <span class="keywordtype">char</span> *path ) {</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#ga34939a983156816784e3d1a64fe0bac9">x509_crt_parse_path</a>( chain, path );</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;}</div>
<div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a272a4915c6aabfa7caea8665abc131ad">  238</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a272a4915c6aabfa7caea8665abc131ad">x509parse_cert_info</a>( <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix,</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;                                <span class="keyword">const</span> <a class="code" href="struct__x509__crt.html">x509_cert</a> *crt ) {</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#ga81299c99c393f6f58eff0471efb65ef7">x509_crt_info</a>( buf, size, prefix, crt );</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;}</div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a09c96bf79195df763c48a3cfd0212f2b">  242</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a09c96bf79195df763c48a3cfd0212f2b">x509parse_verify</a>( <a class="code" href="struct__x509__crt.html">x509_cert</a> *crt, <a class="code" href="struct__x509__crt.html">x509_cert</a> *trust_ca,</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                             <a class="code" href="struct__x509__crl.html">x509_crl</a> *ca_crl, <span class="keyword">const</span> <span class="keywordtype">char</span> *cn, <span class="keywordtype">int</span> *flags,</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;                             <span class="keywordtype">int</span> (*f_vrfy)(<span class="keywordtype">void</span> *, <a class="code" href="struct__x509__crt.html">x509_cert</a> *, <span class="keywordtype">int</span>, <span class="keywordtype">int</span> *),</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                             <span class="keywordtype">void</span> *p_vrfy ) {</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#gaceaeaa6cd00a5c20e71a9a11122d58df">x509_crt_verify</a>( crt, trust_ca, ca_crl, cn, flags, f_vrfy, p_vrfy );</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;}</div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#aa0d8f62c0d1f7625e6dcca8aba1b6654">  248</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#aa0d8f62c0d1f7625e6dcca8aba1b6654">x509parse_revoked</a>( <span class="keyword">const</span> <a class="code" href="struct__x509__crt.html">x509_cert</a> *crt, <span class="keyword">const</span> <a class="code" href="struct__x509__crl.html">x509_crl</a> *crl ) {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#ga4479c58d8c7274c50d940d2ea2dfd765">x509_crt_revoked</a>( crt, crl );</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;}</div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a297fa324f9ef0fc58868ed9c3a0a8ed4">  251</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="compat-1_82_8h.html#a297fa324f9ef0fc58868ed9c3a0a8ed4">x509_free</a>( <a class="code" href="struct__x509__crt.html">x509_cert</a> *crt ) {</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <a class="code" href="group__x509__module.html#ga63b4c873caf7b95bd4b081e476a60f1a">x509_crt_free</a>( crt );</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;}</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_X509_CRT_PARSE_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="preprocessor">#if defined(POLARSSL_X509_CRL_PARSE_C)</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_X509_PARSE_C</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="x509__crl_8h.html">x509_crl.h</a>&quot;</span></div>
<div class="line"><a name="l00259"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a7da761c33c4c4f99afde1d0f62a6e6fb">  259</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a7da761c33c4c4f99afde1d0f62a6e6fb">x509parse_crl</a>( <a class="code" href="struct__x509__crl.html">x509_crl</a> *chain, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> buflen ) {</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#gad4de6119c3dd9463f5a450bbe035e672">x509_crl_parse</a>( chain, buf, buflen );</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;}</div>
<div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ac4ba592ae83c5979c2f2628b6c4b1f47">  262</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#ac4ba592ae83c5979c2f2628b6c4b1f47">x509parse_crlfile</a>( <a class="code" href="struct__x509__crl.html">x509_crl</a> *chain, <span class="keyword">const</span> <span class="keywordtype">char</span> *path ) {</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#gabf60a1d6fba4c52835c3a7810974f969">x509_crl_parse_file</a>( chain, path );</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;}</div>
<div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a85254a12029f569fd0715a2e11ab06be">  265</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a85254a12029f569fd0715a2e11ab06be">x509parse_crl_info</a>( <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix,</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                               <span class="keyword">const</span> <a class="code" href="struct__x509__crl.html">x509_crl</a> *crl ) {</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#ga1c0ed6b97aa4790f7be5c7da7abd30a1">x509_crl_info</a>( buf, size, prefix, crl );</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;}</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_X509_CRL_PARSE_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="preprocessor">#if defined(POLARSSL_X509_CSR_PARSE_C)</span></div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a2c159ce16228bf0cf05fab8ea77b16c5">  272</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_X509_PARSE_C</span></div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="x509__csr_8h.html">x509_csr.h</a>&quot;</span></div>
<div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a1c77b23789b04341f4b76a846528e282">  274</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a1c77b23789b04341f4b76a846528e282">x509parse_csr</a>( <a class="code" href="struct__x509__csr.html">x509_csr</a> *csr, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> buflen ) {</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#gaf3f78c6f15ba595438f41ad06c7eb913">x509_csr_parse</a>( csr, buf, buflen );</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;}</div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a1e7b1e51683b7c5da5309e76b980e24d">  277</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a1e7b1e51683b7c5da5309e76b980e24d">x509parse_csrfile</a>( <a class="code" href="struct__x509__csr.html">x509_csr</a> *csr, <span class="keyword">const</span> <span class="keywordtype">char</span> *path ) {</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#ga9018bb8c7bf444c0b037d5f3ac120f37">x509_csr_parse_file</a>( csr, path );</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;}</div>
<div class="line"><a name="l00280"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a5d8b5aceab9d4c212dac92739b0afde6">  280</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a5d8b5aceab9d4c212dac92739b0afde6">x509parse_csr_info</a>( <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span> *prefix,</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;                               <span class="keyword">const</span> <a class="code" href="struct__x509__csr.html">x509_csr</a> *csr ) {</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="group__x509__module.html#ga1f152bf56415a2e28382e3b425844838">x509_csr_info</a>( buf, size, prefix, csr );</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;}</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_X509_CSR_PARSE_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;<span class="preprocessor">#if defined(POLARSSL_SSL_TLS_C)</span></div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="ssl__ciphersuites_8h.html">ssl_ciphersuites.h</a>&quot;</span></div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;</div>
<div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a6b04ddf44812326dea795b67d33f0724">  289</a></span>&#160;<span class="preprocessor">#define ssl_default_ciphersuites ssl_list_ciphersuites()</span></div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="preprocessor">#if defined(POLARSSL_PK_PARSE_C) &amp;&amp; defined(POLARSSL_RSA_C)</span></div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="rsa_8h.html">rsa.h</a>&quot;</span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="pk_8h.html">pk.h</a>&quot;</span></div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;</div>
<div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a853de026cf84cff82970dea665f4a8c2">  296</a></span>&#160;<span class="preprocessor">#define POLARSSL_ERR_X509_PASSWORD_MISMATCH POLARSSL_ERR_PK_PASSWORD_MISMATCH</span></div>
<div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ad97a386f0b6d508e4e4f5a1c328e1157">  297</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_KEY_INVALID_FORMAT POLARSSL_ERR_PK_KEY_INVALID_FORMAT</span></div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a7e8a0851c9a95e1f37a17d083ab46d64">  298</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_UNKNOWN_PK_ALG POLARSSL_ERR_PK_UNKNOWN_PK_ALG</span></div>
<div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a5ba7972d3da824c035d58ce85c326697">  299</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define POLARSSL_ERR_X509_CERT_INVALID_PUBKEY POLARSSL_ERR_PK_INVALID_PUBKEY</span></div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="preprocessor">#if defined(POLARSSL_FS_IO)</span></div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a5c8d14f73b6167dddb70076af7d511c3">  302</a></span>&#160;<span class="preprocessor"></span><span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a5c8d14f73b6167dddb70076af7d511c3">x509parse_keyfile</a>( <a class="code" href="structrsa__context.html">rsa_context</a> *rsa, <span class="keyword">const</span> <span class="keywordtype">char</span> *path,</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                              <span class="keyword">const</span> <span class="keywordtype">char</span> *pwd ) {</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <a class="code" href="structpk__context.html">pk_context</a> pk;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    <a class="code" href="pk_8h.html#af9dc9fb5c88b9192f27b71688ecedb33">pk_init</a>( &amp;pk );</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    ret = <a class="code" href="pk_8h.html#a584d2510270b007b22d31416e2a7f99e">pk_parse_keyfile</a>( &amp;pk, path, pwd );</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    <span class="keywordflow">if</span>( ret == 0 &amp;&amp; ! <a class="code" href="pk_8h.html#afd6c7a41fd9fbf5c9b0d7409f0f2bd7a">pk_can_do</a>( &amp;pk, <a class="code" href="pk_8h.html#afca3aa33cb1f34742a7ee3fd8ccec9caac21caece338fd9c2d1ee4bbdac9017e3">POLARSSL_PK_RSA</a> ) )</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        ret = <a class="code" href="pk_8h.html#adfc2587a1c20023c21a1121d3a396d2f">POLARSSL_ERR_PK_TYPE_MISMATCH</a>;</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordflow">if</span>( ret == 0 )</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <a class="code" href="rsa_8h.html#a3cc93470d89478a9f89347dc01c95d5b">rsa_copy</a>( rsa, <a class="code" href="pk_8h.html#a38f752fba9162d32f36e5d55e2d829e5">pk_rsa</a>( pk ) );</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <a class="code" href="rsa_8h.html#abb5d26b09e183c8a885eaee270c38fc7">rsa_free</a>( rsa );</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <a class="code" href="pk_8h.html#a7b5e20233f984cf440379b41b9961911">pk_free</a>( &amp;pk );</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;}</div>
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a1f35413ea63be0916199add24dd81f0b">  317</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a1f35413ea63be0916199add24dd81f0b">x509parse_public_keyfile</a>( <a class="code" href="structrsa__context.html">rsa_context</a> *rsa, <span class="keyword">const</span> <span class="keywordtype">char</span> *path ) {</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <a class="code" href="structpk__context.html">pk_context</a> pk;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <a class="code" href="pk_8h.html#af9dc9fb5c88b9192f27b71688ecedb33">pk_init</a>( &amp;pk );</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    ret = <a class="code" href="pk_8h.html#ab23ae3da09fcd7f81bd106f7763e9b05">pk_parse_public_keyfile</a>( &amp;pk, path );</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    <span class="keywordflow">if</span>( ret == 0 &amp;&amp; ! <a class="code" href="pk_8h.html#afd6c7a41fd9fbf5c9b0d7409f0f2bd7a">pk_can_do</a>( &amp;pk, <a class="code" href="pk_8h.html#afca3aa33cb1f34742a7ee3fd8ccec9caac21caece338fd9c2d1ee4bbdac9017e3">POLARSSL_PK_RSA</a> ) )</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        ret = <a class="code" href="pk_8h.html#adfc2587a1c20023c21a1121d3a396d2f">POLARSSL_ERR_PK_TYPE_MISMATCH</a>;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    <span class="keywordflow">if</span>( ret == 0 )</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        <a class="code" href="rsa_8h.html#a3cc93470d89478a9f89347dc01c95d5b">rsa_copy</a>( rsa, <a class="code" href="pk_8h.html#a38f752fba9162d32f36e5d55e2d829e5">pk_rsa</a>( pk ) );</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;        <a class="code" href="rsa_8h.html#abb5d26b09e183c8a885eaee270c38fc7">rsa_free</a>( rsa );</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <a class="code" href="pk_8h.html#a7b5e20233f984cf440379b41b9961911">pk_free</a>( &amp;pk );</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;}</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_FS_IO */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00333"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a4b24fc4d228c28e98ff8e2cd4ca97a77">  333</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a4b24fc4d228c28e98ff8e2cd4ca97a77">x509parse_key</a>( <a class="code" href="structrsa__context.html">rsa_context</a> *rsa, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *key,</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;                          <span class="keywordtype">size_t</span> keylen,</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                          <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pwd, <span class="keywordtype">size_t</span> pwdlen ) {</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <a class="code" href="structpk__context.html">pk_context</a> pk;</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <a class="code" href="pk_8h.html#af9dc9fb5c88b9192f27b71688ecedb33">pk_init</a>( &amp;pk );</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    ret = <a class="code" href="pk_8h.html#a2116e060a9aeb3589cb90633b6d8d062">pk_parse_key</a>( &amp;pk, key, keylen, pwd, pwdlen );</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="keywordflow">if</span>( ret == 0 &amp;&amp; ! <a class="code" href="pk_8h.html#afd6c7a41fd9fbf5c9b0d7409f0f2bd7a">pk_can_do</a>( &amp;pk, <a class="code" href="pk_8h.html#afca3aa33cb1f34742a7ee3fd8ccec9caac21caece338fd9c2d1ee4bbdac9017e3">POLARSSL_PK_RSA</a> ) )</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;        ret = <a class="code" href="pk_8h.html#adfc2587a1c20023c21a1121d3a396d2f">POLARSSL_ERR_PK_TYPE_MISMATCH</a>;</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <span class="keywordflow">if</span>( ret == 0 )</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        <a class="code" href="rsa_8h.html#a3cc93470d89478a9f89347dc01c95d5b">rsa_copy</a>( rsa, <a class="code" href="pk_8h.html#a38f752fba9162d32f36e5d55e2d829e5">pk_rsa</a>( pk ) );</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        <a class="code" href="rsa_8h.html#abb5d26b09e183c8a885eaee270c38fc7">rsa_free</a>( rsa );</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    <a class="code" href="pk_8h.html#a7b5e20233f984cf440379b41b9961911">pk_free</a>( &amp;pk );</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;}</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;</div>
<div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#ae9bead3280aed79240ed750cd2933fc0">  350</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#ae9bead3280aed79240ed750cd2933fc0">x509parse_public_key</a>( <a class="code" href="structrsa__context.html">rsa_context</a> *rsa,</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;                                 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *key, <span class="keywordtype">size_t</span> keylen )</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;{</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <a class="code" href="structpk__context.html">pk_context</a> pk;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <a class="code" href="pk_8h.html#af9dc9fb5c88b9192f27b71688ecedb33">pk_init</a>( &amp;pk );</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    ret = <a class="code" href="pk_8h.html#a67ffa512157184d2e30e3b451344b841">pk_parse_public_key</a>( &amp;pk, key, keylen );</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="keywordflow">if</span>( ret == 0 &amp;&amp; ! <a class="code" href="pk_8h.html#afd6c7a41fd9fbf5c9b0d7409f0f2bd7a">pk_can_do</a>( &amp;pk, <a class="code" href="pk_8h.html#afca3aa33cb1f34742a7ee3fd8ccec9caac21caece338fd9c2d1ee4bbdac9017e3">POLARSSL_PK_RSA</a> ) )</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        ret = <a class="code" href="pk_8h.html#adfc2587a1c20023c21a1121d3a396d2f">POLARSSL_ERR_PK_TYPE_MISMATCH</a>;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordflow">if</span>( ret == 0 )</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        <a class="code" href="rsa_8h.html#a3cc93470d89478a9f89347dc01c95d5b">rsa_copy</a>( rsa, <a class="code" href="pk_8h.html#a38f752fba9162d32f36e5d55e2d829e5">pk_rsa</a>( pk ) );</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        <a class="code" href="rsa_8h.html#abb5d26b09e183c8a885eaee270c38fc7">rsa_free</a>( rsa );</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <a class="code" href="pk_8h.html#a7b5e20233f984cf440379b41b9961911">pk_free</a>( &amp;pk );</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;}</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_PK_PARSE_C &amp;&amp; POLARSSL_RSA_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="preprocessor">#if defined(POLARSSL_PK_WRITE_C) &amp;&amp; defined(POLARSSL_RSA_C)</span></div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="pk_8h.html">pk.h</a>&quot;</span></div>
<div class="line"><a name="l00370"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a884a671396f119b33ef6c29d859a773d">  370</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a884a671396f119b33ef6c29d859a773d">x509_write_pubkey_der</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> len, <a class="code" href="structrsa__context.html">rsa_context</a> *rsa ) {</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <a class="code" href="structpk__context.html">pk_context</a> ctx;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <span class="keywordflow">if</span>( ( ret = <a class="code" href="pk_8h.html#a20121fafbe05f5c4bdaade644ad2a886">pk_init_ctx</a>( &amp;ctx, <a class="code" href="pk_8h.html#a872f51e108cbf04f0a0997440f8208f5">pk_info_from_type</a>( <a class="code" href="pk_8h.html#afca3aa33cb1f34742a7ee3fd8ccec9caac21caece338fd9c2d1ee4bbdac9017e3">POLARSSL_PK_RSA</a> ) ) ) != 0 ) <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="keywordflow">if</span>( ( ret = <a class="code" href="rsa_8h.html#a3cc93470d89478a9f89347dc01c95d5b">rsa_copy</a>( <a class="code" href="pk_8h.html#a38f752fba9162d32f36e5d55e2d829e5">pk_rsa</a>( ctx ), rsa ) ) != 0 ) <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;    ret = <a class="code" href="pk_8h.html#a1cc3c109b8f82badd7d69f31f76f7bab">pk_write_pubkey_der</a>( &amp;ctx, buf, len );</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    <a class="code" href="pk_8h.html#a7b5e20233f984cf440379b41b9961911">pk_free</a>( &amp;ctx );</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;}</div>
<div class="line"><a name="l00379"></a><span class="lineno"><a class="line" href="compat-1_82_8h.html#a661f40f78ae983d2fc82cf207afe9182">  379</a></span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="compat-1_82_8h.html#a661f40f78ae983d2fc82cf207afe9182">x509_write_key_der</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">size_t</span> len, <a class="code" href="structrsa__context.html">rsa_context</a> *rsa ) {</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    <span class="keywordtype">int</span> ret;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    <a class="code" href="structpk__context.html">pk_context</a> ctx;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    <span class="keywordflow">if</span>( ( ret = <a class="code" href="pk_8h.html#a20121fafbe05f5c4bdaade644ad2a886">pk_init_ctx</a>( &amp;ctx, <a class="code" href="pk_8h.html#a872f51e108cbf04f0a0997440f8208f5">pk_info_from_type</a>( <a class="code" href="pk_8h.html#afca3aa33cb1f34742a7ee3fd8ccec9caac21caece338fd9c2d1ee4bbdac9017e3">POLARSSL_PK_RSA</a> ) ) ) != 0 ) <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    <span class="keywordflow">if</span>( ( ret = <a class="code" href="rsa_8h.html#a3cc93470d89478a9f89347dc01c95d5b">rsa_copy</a>( <a class="code" href="pk_8h.html#a38f752fba9162d32f36e5d55e2d829e5">pk_rsa</a>( ctx ), rsa ) ) != 0 ) <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;    ret = <a class="code" href="pk_8h.html#a890b5c8b8de2bc2853005e045b72edf7">pk_write_key_der</a>( &amp;ctx, buf, len );</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;    <a class="code" href="pk_8h.html#a7b5e20233f984cf440379b41b9961911">pk_free</a>( &amp;ctx );</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="keywordflow">return</span>( ret );</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;}</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* POLARSSL_PK_WRITE_C &amp;&amp; POLARSSL_RSA_C */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* compat-1.2.h */</span><span class="preprocessor"></span></div>
<div class="ttc" id="sha256_8h_html_a4dbd9d5d390a0cf457e1dab00923167b"><div class="ttname"><a href="sha256_8h.html#a4dbd9d5d390a0cf457e1dab00923167b">sha256_hmac_update</a></div><div class="ttdeci">void sha256_hmac_update(sha256_context *ctx, const unsigned char *input, size_t ilen)</div><div class="ttdoc">SHA-256 HMAC process buffer. </div></div>
<div class="ttc" id="sha512_8h_html_a72dc4588ea2de993e6344fbe3ae157de"><div class="ttname"><a href="sha512_8h.html#a72dc4588ea2de993e6344fbe3ae157de">sha512_hmac_update</a></div><div class="ttdeci">void sha512_hmac_update(sha512_context *ctx, const unsigned char *input, size_t ilen)</div><div class="ttdoc">SHA-512 HMAC process buffer. </div></div>
<div class="ttc" id="x509_8h_html_a0409eb86cad22e4ecf3b31585bd1aca8"><div class="ttname"><a href="x509_8h.html#a0409eb86cad22e4ecf3b31585bd1aca8">x509_time_expired</a></div><div class="ttdeci">int x509_time_expired(const x509_time *time)</div><div class="ttdoc">Check a given x509_time against the system time and check if it is not expired. </div></div>
<div class="ttc" id="compat-1_82_8h_html_abbb620f51421393f1e818f62e7686e3b"><div class="ttname"><a href="compat-1_82_8h.html#abbb620f51421393f1e818f62e7686e3b">sha4_hmac_reset</a></div><div class="ttdeci">static void sha4_hmac_reset(sha512_context *ctx)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00141">compat-1.2.h:141</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_aee1ee86e5bf436295e379d05a3bc664d"><div class="ttname"><a href="compat-1_82_8h.html#aee1ee86e5bf436295e379d05a3bc664d">sha2_update</a></div><div class="ttdeci">static void sha2_update(sha256_context *ctx, const unsigned char *input, size_t ilen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00068">compat-1.2.h:68</a></div></div>
<div class="ttc" id="pk_8h_html_a890b5c8b8de2bc2853005e045b72edf7"><div class="ttname"><a href="pk_8h.html#a890b5c8b8de2bc2853005e045b72edf7">pk_write_key_der</a></div><div class="ttdeci">int pk_write_key_der(pk_context *ctx, unsigned char *buf, size_t size)</div><div class="ttdoc">Write a private key to a PKCS#1 or SEC1 DER structure Note: data is written at the end of the buffer!...</div></div>
<div class="ttc" id="pk_8h_html_a872f51e108cbf04f0a0997440f8208f5"><div class="ttname"><a href="pk_8h.html#a872f51e108cbf04f0a0997440f8208f5">pk_info_from_type</a></div><div class="ttdeci">const pk_info_t * pk_info_from_type(pk_type_t pk_type)</div><div class="ttdoc">Return information associated with the given PK type. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a90bfbb63b1abf608fbe28beee4366a0c"><div class="ttname"><a href="compat-1_82_8h.html#a90bfbb63b1abf608fbe28beee4366a0c">sha4_update</a></div><div class="ttdeci">static void sha4_update(sha512_context *ctx, const unsigned char *input, size_t ilen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00117">compat-1.2.h:117</a></div></div>
<div class="ttc" id="rsa_8h_html_a3cc93470d89478a9f89347dc01c95d5b"><div class="ttname"><a href="rsa_8h.html#a3cc93470d89478a9f89347dc01c95d5b">rsa_copy</a></div><div class="ttdeci">int rsa_copy(rsa_context *dst, const rsa_context *src)</div><div class="ttdoc">Copy the components of an RSA context. </div></div>
<div class="ttc" id="sha256_8h_html_a28c036f06f6c9bef50ea366d13e25da4"><div class="ttname"><a href="sha256_8h.html#a28c036f06f6c9bef50ea366d13e25da4">sha256_file</a></div><div class="ttdeci">int sha256_file(const char *path, unsigned char output[32], int is224)</div><div class="ttdoc">Output = SHA-256( file contents ) </div></div>
<div class="ttc" id="sha256_8h_html_ad6a332874701f3170d35dc42dec89428"><div class="ttname"><a href="sha256_8h.html#ad6a332874701f3170d35dc42dec89428">sha256_update</a></div><div class="ttdeci">void sha256_update(sha256_context *ctx, const unsigned char *input, size_t ilen)</div><div class="ttdoc">SHA-256 process buffer. </div></div>
<div class="ttc" id="sha256_8h_html_a67457fa83af0439e80538d99426eb39a"><div class="ttname"><a href="sha256_8h.html#a67457fa83af0439e80538d99426eb39a">sha256</a></div><div class="ttdeci">void sha256(const unsigned char *input, size_t ilen, unsigned char output[32], int is224)</div><div class="ttdoc">Output = SHA-256( input buffer ) </div></div>
<div class="ttc" id="compat-1_82_8h_html_a70b3229deb69f767e7ae0231075690b7"><div class="ttname"><a href="compat-1_82_8h.html#a70b3229deb69f767e7ae0231075690b7">x509parse_crt</a></div><div class="ttdeci">static int x509parse_crt(x509_cert *chain, const unsigned char *buf, size_t buflen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00229">compat-1.2.h:229</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_aaeaf58475f6d319fa2a920ea07943335"><div class="ttname"><a href="compat-1_82_8h.html#aaeaf58475f6d319fa2a920ea07943335">sha2_context</a></div><div class="ttdeci">sha256_context sha2_context</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00063">compat-1.2.h:63</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a09c96bf79195df763c48a3cfd0212f2b"><div class="ttname"><a href="compat-1_82_8h.html#a09c96bf79195df763c48a3cfd0212f2b">x509parse_verify</a></div><div class="ttdeci">static int x509parse_verify(x509_cert *crt, x509_cert *trust_ca, x509_crl *ca_crl, const char *cn, int *flags, int(*f_vrfy)(void *, x509_cert *, int, int *), void *p_vrfy)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00242">compat-1.2.h:242</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a6ade6c0ec308932f2162c6a3af2bae99"><div class="ttname"><a href="compat-1_82_8h.html#a6ade6c0ec308932f2162c6a3af2bae99">sha2</a></div><div class="ttdeci">static void sha2(const unsigned char *input, size_t ilen, unsigned char output[32], int is224)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00078">compat-1.2.h:78</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a05ccadd6cb708903fb8476e018b0ebf2"><div class="ttname"><a href="compat-1_82_8h.html#a05ccadd6cb708903fb8476e018b0ebf2">sha4_starts</a></div><div class="ttdeci">static void sha4_starts(sha512_context *ctx, int is384)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00114">compat-1.2.h:114</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a661f40f78ae983d2fc82cf207afe9182"><div class="ttname"><a href="compat-1_82_8h.html#a661f40f78ae983d2fc82cf207afe9182">x509_write_key_der</a></div><div class="ttdeci">static int x509_write_key_der(unsigned char *buf, size_t len, rsa_context *rsa)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00379">compat-1.2.h:379</a></div></div>
<div class="ttc" id="sha256_8h_html_acdc08a6c1083b3a1ffb0bd5850272054"><div class="ttname"><a href="sha256_8h.html#acdc08a6c1083b3a1ffb0bd5850272054">sha256_hmac</a></div><div class="ttdeci">void sha256_hmac(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char output[32], int is224)</div><div class="ttdoc">Output = HMAC-SHA-256( hmac key, input buffer ) </div></div>
<div class="ttc" id="struct__x509__time_html"><div class="ttname"><a href="struct__x509__time.html">_x509_time</a></div><div class="ttdoc">Container for date and time (precision in seconds). </div><div class="ttdef"><b>Definition:</b> <a href="x509_8h_source.html#l00181">x509.h:181</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_ac4ba592ae83c5979c2f2628b6c4b1f47"><div class="ttname"><a href="compat-1_82_8h.html#ac4ba592ae83c5979c2f2628b6c4b1f47">x509parse_crlfile</a></div><div class="ttdeci">static int x509parse_crlfile(x509_crl *chain, const char *path)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00262">compat-1.2.h:262</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a5c8c207edb69950bde7654115d23f79c"><div class="ttname"><a href="compat-1_82_8h.html#a5c8c207edb69950bde7654115d23f79c">sha2_starts</a></div><div class="ttdeci">static void sha2_starts(sha256_context *ctx, int is224)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00065">compat-1.2.h:65</a></div></div>
<div class="ttc" id="group__x509__module_html_gafc724dee6827c47fed1eec64bb13727b"><div class="ttname"><a href="group__x509__module.html#gafc724dee6827c47fed1eec64bb13727b">x509_crt_parse</a></div><div class="ttdeci">int x509_crt_parse(x509_crt *chain, const unsigned char *buf, size_t buflen)</div><div class="ttdoc">Parse one or more certificates and add them to the chained list. </div></div>
<div class="ttc" id="group__x509__module_html_ga63b4c873caf7b95bd4b081e476a60f1a"><div class="ttname"><a href="group__x509__module.html#ga63b4c873caf7b95bd4b081e476a60f1a">x509_crt_free</a></div><div class="ttdeci">void x509_crt_free(x509_crt *crt)</div><div class="ttdoc">Unallocate all certificate data. </div></div>
<div class="ttc" id="config_8h_html"><div class="ttname"><a href="config_8h.html">config.h</a></div><div class="ttdoc">Configuration options (set of defines) </div></div>
<div class="ttc" id="compat-1_82_8h_html_a5c8d14f73b6167dddb70076af7d511c3"><div class="ttname"><a href="compat-1_82_8h.html#a5c8d14f73b6167dddb70076af7d511c3">x509parse_keyfile</a></div><div class="ttdeci">static int x509parse_keyfile(rsa_context *rsa, const char *path, const char *pwd)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00302">compat-1.2.h:302</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_aeb20738b202116f82a0077919027c611"><div class="ttname"><a href="compat-1_82_8h.html#aeb20738b202116f82a0077919027c611">sha4_context</a></div><div class="ttdeci">sha512_context sha4_context</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00112">compat-1.2.h:112</a></div></div>
<div class="ttc" id="group__x509__module_html_ga2d8d1c87fa24f176a160041f11ad3c72"><div class="ttname"><a href="group__x509__module.html#ga2d8d1c87fa24f176a160041f11ad3c72">x509_crt_parse_der</a></div><div class="ttdeci">int x509_crt_parse_der(x509_crt *chain, const unsigned char *buf, size_t buflen)</div><div class="ttdoc">Parse a single DER formatted certificate and add it to the chained list. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a05919276e2aca79a0de7637eff2430b8"><div class="ttname"><a href="compat-1_82_8h.html#a05919276e2aca79a0de7637eff2430b8">sha2_hmac_reset</a></div><div class="ttdeci">static void sha2_hmac_reset(sha256_context *ctx)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00092">compat-1.2.h:92</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_aa84d5fa568c94bfbb8f006af857d9fc7"><div class="ttname"><a href="compat-1_82_8h.html#aa84d5fa568c94bfbb8f006af857d9fc7">x509parse_time_expired</a></div><div class="ttdeci">static int x509parse_time_expired(const x509_time *time)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00215">compat-1.2.h:215</a></div></div>
<div class="ttc" id="ssl__ciphersuites_8h_html"><div class="ttname"><a href="ssl__ciphersuites_8h.html">ssl_ciphersuites.h</a></div><div class="ttdoc">SSL Ciphersuites for PolarSSL. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a1f35413ea63be0916199add24dd81f0b"><div class="ttname"><a href="compat-1_82_8h.html#a1f35413ea63be0916199add24dd81f0b">x509parse_public_keyfile</a></div><div class="ttdeci">static int x509parse_public_keyfile(rsa_context *rsa, const char *path)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00317">compat-1.2.h:317</a></div></div>
<div class="ttc" id="group__x509__module_html_gabf60a1d6fba4c52835c3a7810974f969"><div class="ttname"><a href="group__x509__module.html#gabf60a1d6fba4c52835c3a7810974f969">x509_crl_parse_file</a></div><div class="ttdeci">int x509_crl_parse_file(x509_crl *chain, const char *path)</div><div class="ttdoc">Load one or more CRLs and add them to the chained list. </div></div>
<div class="ttc" id="pk_8h_html"><div class="ttname"><a href="pk_8h.html">pk.h</a></div><div class="ttdoc">Public Key abstraction layer. </div></div>
<div class="ttc" id="group__x509__module_html_gad4de6119c3dd9463f5a450bbe035e672"><div class="ttname"><a href="group__x509__module.html#gad4de6119c3dd9463f5a450bbe035e672">x509_crl_parse</a></div><div class="ttdeci">int x509_crl_parse(x509_crl *chain, const unsigned char *buf, size_t buflen)</div><div class="ttdoc">Parse one or more CRLs and add them to the chained list. </div></div>
<div class="ttc" id="group__x509__module_html_ga1c0ed6b97aa4790f7be5c7da7abd30a1"><div class="ttname"><a href="group__x509__module.html#ga1c0ed6b97aa4790f7be5c7da7abd30a1">x509_crl_info</a></div><div class="ttdeci">int x509_crl_info(char *buf, size_t size, const char *prefix, const x509_crl *crl)</div><div class="ttdoc">Returns an informational string about the CRL. </div></div>
<div class="ttc" id="sha256_8h_html_a2c0da55b9f26e74f14f1d1764932fc6a"><div class="ttname"><a href="sha256_8h.html#a2c0da55b9f26e74f14f1d1764932fc6a">sha256_hmac_finish</a></div><div class="ttdeci">void sha256_hmac_finish(sha256_context *ctx, unsigned char output[32])</div><div class="ttdoc">SHA-256 HMAC final digest. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a48601801c56e34c247c52b3ca39e8bcb"><div class="ttname"><a href="compat-1_82_8h.html#a48601801c56e34c247c52b3ca39e8bcb">x509parse_crtfile</a></div><div class="ttdeci">static int x509parse_crtfile(x509_cert *chain, const char *path)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00232">compat-1.2.h:232</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a297fa324f9ef0fc58868ed9c3a0a8ed4"><div class="ttname"><a href="compat-1_82_8h.html#a297fa324f9ef0fc58868ed9c3a0a8ed4">x509_free</a></div><div class="ttdeci">static void x509_free(x509_cert *crt)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00251">compat-1.2.h:251</a></div></div>
<div class="ttc" id="rsa_8h_html_abb5d26b09e183c8a885eaee270c38fc7"><div class="ttname"><a href="rsa_8h.html#abb5d26b09e183c8a885eaee270c38fc7">rsa_free</a></div><div class="ttdeci">void rsa_free(rsa_context *ctx)</div><div class="ttdoc">Free the components of an RSA key. </div></div>
<div class="ttc" id="compat-1_82_8h_html_aea59504fd692e57499d88b116d664d29"><div class="ttname"><a href="compat-1_82_8h.html#aea59504fd692e57499d88b116d664d29">x509parse_dn_gets</a></div><div class="ttdeci">static int x509parse_dn_gets(char *buf, size_t size, const x509_name *dn)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00212">compat-1.2.h:212</a></div></div>
<div class="ttc" id="pk_8h_html_a1cc3c109b8f82badd7d69f31f76f7bab"><div class="ttname"><a href="pk_8h.html#a1cc3c109b8f82badd7d69f31f76f7bab">pk_write_pubkey_der</a></div><div class="ttdeci">int pk_write_pubkey_der(pk_context *ctx, unsigned char *buf, size_t size)</div><div class="ttdoc">Write a public key to a SubjectPublicKeyInfo DER structure Note: data is written at the end of the bu...</div></div>
<div class="ttc" id="compat-1_82_8h_html_a1e7b1e51683b7c5da5309e76b980e24d"><div class="ttname"><a href="compat-1_82_8h.html#a1e7b1e51683b7c5da5309e76b980e24d">x509parse_csrfile</a></div><div class="ttdeci">static int x509parse_csrfile(x509_csr *csr, const char *path)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00277">compat-1.2.h:277</a></div></div>
<div class="ttc" id="sha256_8h_html_a9149920697b6ca77185fb8c25d29ed2d"><div class="ttname"><a href="sha256_8h.html#a9149920697b6ca77185fb8c25d29ed2d">sha256_hmac_starts</a></div><div class="ttdeci">void sha256_hmac_starts(sha256_context *ctx, const unsigned char *key, size_t keylen, int is224)</div><div class="ttdoc">SHA-256 HMAC context setup. </div></div>
<div class="ttc" id="structrsa__context_html"><div class="ttname"><a href="structrsa__context.html">rsa_context</a></div><div class="ttdoc">RSA context structure. </div><div class="ttdef"><b>Definition:</b> <a href="rsa_8h_source.html#l00083">rsa.h:83</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a42c90dec92809ae1e7fe328488b95f6d"><div class="ttname"><a href="compat-1_82_8h.html#a42c90dec92809ae1e7fe328488b95f6d">x509_cert</a></div><div class="ttdeci">x509_crt x509_cert</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00223">compat-1.2.h:223</a></div></div>
<div class="ttc" id="struct__x509__crt_html"><div class="ttname"><a href="struct__x509__crt.html">_x509_crt</a></div><div class="ttdoc">Container for an X.509 certificate. </div><div class="ttdef"><b>Definition:</b> <a href="x509__crt_8h_source.html#l00057">x509_crt.h:57</a></div></div>
<div class="ttc" id="x509_8h_html_a4efdfbe50891c916ade3170b91faeebc"><div class="ttname"><a href="x509_8h.html#a4efdfbe50891c916ade3170b91faeebc">x509_dn_gets</a></div><div class="ttdeci">int x509_dn_gets(char *buf, size_t size, const x509_name *dn)</div><div class="ttdoc">Store the certificate DN in printable form into buf; no more than size characters will be written...</div></div>
<div class="ttc" id="compat-1_82_8h_html_a5d8b5aceab9d4c212dac92739b0afde6"><div class="ttname"><a href="compat-1_82_8h.html#a5d8b5aceab9d4c212dac92739b0afde6">x509parse_csr_info</a></div><div class="ttdeci">static int x509parse_csr_info(char *buf, size_t size, const char *prefix, const x509_csr *csr)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00280">compat-1.2.h:280</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_aa0d8f62c0d1f7625e6dcca8aba1b6654"><div class="ttname"><a href="compat-1_82_8h.html#aa0d8f62c0d1f7625e6dcca8aba1b6654">x509parse_revoked</a></div><div class="ttdeci">static int x509parse_revoked(const x509_cert *crt, const x509_crl *crl)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00248">compat-1.2.h:248</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_aa91354d52fd88d56a8b448fe806b8748"><div class="ttname"><a href="compat-1_82_8h.html#aa91354d52fd88d56a8b448fe806b8748">x509parse_crtpath</a></div><div class="ttdeci">static int x509parse_crtpath(x509_cert *chain, const char *path)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00235">compat-1.2.h:235</a></div></div>
<div class="ttc" id="sha256_8h_html_a471f1c466477f7073aba0cf61d109991"><div class="ttname"><a href="sha256_8h.html#a471f1c466477f7073aba0cf61d109991">sha256_self_test</a></div><div class="ttdeci">int sha256_self_test(int verbose)</div><div class="ttdoc">Checkup routine. </div></div>
<div class="ttc" id="sha256_8h_html_ae8e12a0ae383d163ed4d5ead3b96c4de"><div class="ttname"><a href="sha256_8h.html#ae8e12a0ae383d163ed4d5ead3b96c4de">sha256_starts</a></div><div class="ttdeci">void sha256_starts(sha256_context *ctx, int is224)</div><div class="ttdoc">SHA-256 context setup. </div></div>
<div class="ttc" id="compat-1_82_8h_html_ae9bead3280aed79240ed750cd2933fc0"><div class="ttname"><a href="compat-1_82_8h.html#ae9bead3280aed79240ed750cd2933fc0">x509parse_public_key</a></div><div class="ttdeci">static int x509parse_public_key(rsa_context *rsa, const unsigned char *key, size_t keylen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00350">compat-1.2.h:350</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_aff781724a769dced35e4ca157fa7fa30"><div class="ttname"><a href="compat-1_82_8h.html#aff781724a769dced35e4ca157fa7fa30">sha4_self_test</a></div><div class="ttdeci">static int sha4_self_test(int verbose)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00149">compat-1.2.h:149</a></div></div>
<div class="ttc" id="structsha512__context_html"><div class="ttname"><a href="structsha512__context.html">sha512_context</a></div><div class="ttdoc">SHA-512 context structure. </div><div class="ttdef"><b>Definition:</b> <a href="sha512_8h_source.html#l00059">sha512.h:59</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_aee6c72bde73887988ca42f882bf26947"><div class="ttname"><a href="compat-1_82_8h.html#aee6c72bde73887988ca42f882bf26947">sha2_file</a></div><div class="ttdeci">static int sha2_file(const char *path, unsigned char output[32], int is224)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00075">compat-1.2.h:75</a></div></div>
<div class="ttc" id="sha512_8h_html_a6f5347dfbc02a48941e3f95ea3ea0b0e"><div class="ttname"><a href="sha512_8h.html#a6f5347dfbc02a48941e3f95ea3ea0b0e">sha512_hmac_finish</a></div><div class="ttdeci">void sha512_hmac_finish(sha512_context *ctx, unsigned char output[64])</div><div class="ttdoc">SHA-512 HMAC final digest. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a94dc0e3ca80227bb908002f809e0ba13"><div class="ttname"><a href="compat-1_82_8h.html#a94dc0e3ca80227bb908002f809e0ba13">sha2_self_test</a></div><div class="ttdeci">static int sha2_self_test(int verbose)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00100">compat-1.2.h:100</a></div></div>
<div class="ttc" id="x509__csr_8h_html"><div class="ttname"><a href="x509__csr_8h.html">x509_csr.h</a></div><div class="ttdoc">X.509 certificate signing request parsing and writing. </div></div>
<div class="ttc" id="sha512_8h_html_a6079e154daa986d2e8b0be61c21063ef"><div class="ttname"><a href="sha512_8h.html#a6079e154daa986d2e8b0be61c21063ef">sha512_starts</a></div><div class="ttdeci">void sha512_starts(sha512_context *ctx, int is384)</div><div class="ttdoc">SHA-512 context setup. </div></div>
<div class="ttc" id="sha512_8h_html_a5422f63cc0ec844d5ba6a9dc1bcdc2b2"><div class="ttname"><a href="sha512_8h.html#a5422f63cc0ec844d5ba6a9dc1bcdc2b2">sha512_self_test</a></div><div class="ttdeci">int sha512_self_test(int verbose)</div><div class="ttdoc">Checkup routine. </div></div>
<div class="ttc" id="group__x509__module_html_gaceaeaa6cd00a5c20e71a9a11122d58df"><div class="ttname"><a href="group__x509__module.html#gaceaeaa6cd00a5c20e71a9a11122d58df">x509_crt_verify</a></div><div class="ttdeci">int x509_crt_verify(x509_crt *crt, x509_crt *trust_ca, x509_crl *ca_crl, const char *cn, int *flags, int(*f_vrfy)(void *, x509_crt *, int, int *), void *p_vrfy)</div><div class="ttdoc">Verify the certificate signature. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a200e0481a4fa6501575e7b2b20441df1"><div class="ttname"><a href="compat-1_82_8h.html#a200e0481a4fa6501575e7b2b20441df1">sha4_file</a></div><div class="ttdeci">static int sha4_file(const char *path, unsigned char output[64], int is384)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00124">compat-1.2.h:124</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a5f62829759ebd380517636207de3dcbd"><div class="ttname"><a href="compat-1_82_8h.html#a5f62829759ebd380517636207de3dcbd">sha2_finish</a></div><div class="ttdeci">static void sha2_finish(sha256_context *ctx, unsigned char output[32])</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00072">compat-1.2.h:72</a></div></div>
<div class="ttc" id="pk_8h_html_afd6c7a41fd9fbf5c9b0d7409f0f2bd7a"><div class="ttname"><a href="pk_8h.html#afd6c7a41fd9fbf5c9b0d7409f0f2bd7a">pk_can_do</a></div><div class="ttdeci">int pk_can_do(pk_context *ctx, pk_type_t type)</div><div class="ttdoc">Tell if a context can do the operation given by type. </div></div>
<div class="ttc" id="sha512_8h_html_a84e277fd84a8cbacceabcd0909610681"><div class="ttname"><a href="sha512_8h.html#a84e277fd84a8cbacceabcd0909610681">sha512</a></div><div class="ttdeci">void sha512(const unsigned char *input, size_t ilen, unsigned char output[64], int is384)</div><div class="ttdoc">Output = SHA-512( input buffer ) </div></div>
<div class="ttc" id="sha512_8h_html_aab257203cb2762eb59e5c6407534fd63"><div class="ttname"><a href="sha512_8h.html#aab257203cb2762eb59e5c6407534fd63">sha512_file</a></div><div class="ttdeci">int sha512_file(const char *path, unsigned char output[64], int is384)</div><div class="ttdoc">Output = SHA-512( file contents ) </div></div>
<div class="ttc" id="x509__crt_8h_html"><div class="ttname"><a href="x509__crt_8h.html">x509_crt.h</a></div><div class="ttdoc">X.509 certificate parsing and writing. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a1c77b23789b04341f4b76a846528e282"><div class="ttname"><a href="compat-1_82_8h.html#a1c77b23789b04341f4b76a846528e282">x509parse_csr</a></div><div class="ttdeci">static int x509parse_csr(x509_csr *csr, const unsigned char *buf, size_t buflen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00274">compat-1.2.h:274</a></div></div>
<div class="ttc" id="pk_8h_html_ab23ae3da09fcd7f81bd106f7763e9b05"><div class="ttname"><a href="pk_8h.html#ab23ae3da09fcd7f81bd106f7763e9b05">pk_parse_public_keyfile</a></div><div class="ttdeci">int pk_parse_public_keyfile(pk_context *ctx, const char *path)</div><div class="ttdoc">Load and parse a public key. </div></div>
<div class="ttc" id="compat-1_82_8h_html_ac58ff8e6db9694916c8ec3237269361c"><div class="ttname"><a href="compat-1_82_8h.html#ac58ff8e6db9694916c8ec3237269361c">x509parse_serial_gets</a></div><div class="ttdeci">static int x509parse_serial_gets(char *buf, size_t size, const x509_buf *serial)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00209">compat-1.2.h:209</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a6c254c917107f7103c2eadda919e72f0"><div class="ttname"><a href="compat-1_82_8h.html#a6c254c917107f7103c2eadda919e72f0">sha2_hmac_update</a></div><div class="ttdeci">static void sha2_hmac_update(sha256_context *ctx, const unsigned char *input, size_t ilen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00086">compat-1.2.h:86</a></div></div>
<div class="ttc" id="x509_8h_html"><div class="ttname"><a href="x509_8h.html">x509.h</a></div><div class="ttdoc">X.509 generic defines and structures. </div></div>
<div class="ttc" id="compat-1_82_8h_html_afa3497eadd8f512f0282b969fdf4fec9"><div class="ttname"><a href="compat-1_82_8h.html#afa3497eadd8f512f0282b969fdf4fec9">sha4_finish</a></div><div class="ttdeci">static void sha4_finish(sha512_context *ctx, unsigned char output[64])</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00121">compat-1.2.h:121</a></div></div>
<div class="ttc" id="pk_8h_html_a20121fafbe05f5c4bdaade644ad2a886"><div class="ttname"><a href="pk_8h.html#a20121fafbe05f5c4bdaade644ad2a886">pk_init_ctx</a></div><div class="ttdeci">int pk_init_ctx(pk_context *ctx, const pk_info_t *info)</div><div class="ttdoc">Initialize a PK context with the information given and allocates the type-specific PK subcontext...</div></div>
<div class="ttc" id="sha512_8h_html_a97d975b27d9a1742e3bf7bdb00e3ecbb"><div class="ttname"><a href="sha512_8h.html#a97d975b27d9a1742e3bf7bdb00e3ecbb">sha512_hmac</a></div><div class="ttdeci">void sha512_hmac(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char output[64], int is384)</div><div class="ttdoc">Output = HMAC-SHA-512( hmac key, input buffer ) </div></div>
<div class="ttc" id="compat-1_82_8h_html_a9aab3b0b60acb6a6eebb76d5ad7d4d02"><div class="ttname"><a href="compat-1_82_8h.html#a9aab3b0b60acb6a6eebb76d5ad7d4d02">sha4_hmac_starts</a></div><div class="ttdeci">static void sha4_hmac_starts(sha512_context *ctx, const unsigned char *key, size_t keylen, int is384)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00131">compat-1.2.h:131</a></div></div>
<div class="ttc" id="sha256_8h_html_a7ffbdf4d843ecf7231d89d279ec57abd"><div class="ttname"><a href="sha256_8h.html#a7ffbdf4d843ecf7231d89d279ec57abd">sha256_hmac_reset</a></div><div class="ttdeci">void sha256_hmac_reset(sha256_context *ctx)</div><div class="ttdoc">SHA-256 HMAC context reset. </div></div>
<div class="ttc" id="sha512_8h_html_abbbcba6e6c1a9c6b098be20418d81305"><div class="ttname"><a href="sha512_8h.html#abbbcba6e6c1a9c6b098be20418d81305">sha512_finish</a></div><div class="ttdeci">void sha512_finish(sha512_context *ctx, unsigned char output[64])</div><div class="ttdoc">SHA-512 final digest. </div></div>
<div class="ttc" id="group__x509__module_html_ga4479c58d8c7274c50d940d2ea2dfd765"><div class="ttname"><a href="group__x509__module.html#ga4479c58d8c7274c50d940d2ea2dfd765">x509_crt_revoked</a></div><div class="ttdeci">int x509_crt_revoked(const x509_crt *crt, const x509_crl *crl)</div><div class="ttdoc">Verify the certificate revocation status. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a4b24fc4d228c28e98ff8e2cd4ca97a77"><div class="ttname"><a href="compat-1_82_8h.html#a4b24fc4d228c28e98ff8e2cd4ca97a77">x509parse_key</a></div><div class="ttdeci">static int x509parse_key(rsa_context *rsa, const unsigned char *key, size_t keylen, const unsigned char *pwd, size_t pwdlen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00333">compat-1.2.h:333</a></div></div>
<div class="ttc" id="group__x509__module_html_gaf3f78c6f15ba595438f41ad06c7eb913"><div class="ttname"><a href="group__x509__module.html#gaf3f78c6f15ba595438f41ad06c7eb913">x509_csr_parse</a></div><div class="ttdeci">int x509_csr_parse(x509_csr *csr, const unsigned char *buf, size_t buflen)</div><div class="ttdoc">Load a Certificate Signing Request (CSR), DER or PEM format. </div></div>
<div class="ttc" id="compat-1_82_8h_html_afe4691d58214923977ecad303b2ffc69"><div class="ttname"><a href="compat-1_82_8h.html#afe4691d58214923977ecad303b2ffc69">sha2_hmac</a></div><div class="ttdeci">static void sha2_hmac(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char output[32], int is224)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00095">compat-1.2.h:95</a></div></div>
<div class="ttc" id="struct__asn1__named__data_html"><div class="ttname"><a href="struct__asn1__named__data.html">_asn1_named_data</a></div><div class="ttdoc">Container for a sequence or list of &amp;#39;named&amp;#39; ASN.1 data items. </div><div class="ttdef"><b>Definition:</b> <a href="asn1_8h_source.html#l00156">asn1.h:156</a></div></div>
<div class="ttc" id="struct__asn1__buf_html"><div class="ttname"><a href="struct__asn1__buf.html">_asn1_buf</a></div><div class="ttdoc">Type-length-value structure that allows for ASN1 using DER. </div><div class="ttdef"><b>Definition:</b> <a href="asn1_8h_source.html#l00124">asn1.h:124</a></div></div>
<div class="ttc" id="rsa_8h_html"><div class="ttname"><a href="rsa_8h.html">rsa.h</a></div><div class="ttdoc">The RSA public-key cryptosystem. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a884a671396f119b33ef6c29d859a773d"><div class="ttname"><a href="compat-1_82_8h.html#a884a671396f119b33ef6c29d859a773d">x509_write_pubkey_der</a></div><div class="ttdeci">static int x509_write_pubkey_der(unsigned char *buf, size_t len, rsa_context *rsa)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00370">compat-1.2.h:370</a></div></div>
<div class="ttc" id="pk_8h_html_a38f752fba9162d32f36e5d55e2d829e5"><div class="ttname"><a href="pk_8h.html#a38f752fba9162d32f36e5d55e2d829e5">pk_rsa</a></div><div class="ttdeci">#define pk_rsa(pk)</div><div class="ttdoc">Quick access to an RSA context inside a PK context. </div><div class="ttdef"><b>Definition:</b> <a href="pk_8h_source.html#l00074">pk.h:74</a></div></div>
<div class="ttc" id="pk_8h_html_adfc2587a1c20023c21a1121d3a396d2f"><div class="ttname"><a href="pk_8h.html#adfc2587a1c20023c21a1121d3a396d2f">POLARSSL_ERR_PK_TYPE_MISMATCH</a></div><div class="ttdeci">#define POLARSSL_ERR_PK_TYPE_MISMATCH</div><div class="ttdoc">Type mismatch, eg attempt to encrypt with an ECDSA key. </div><div class="ttdef"><b>Definition:</b> <a href="pk_8h_source.html#l00052">pk.h:52</a></div></div>
<div class="ttc" id="pk_8h_html_a7b5e20233f984cf440379b41b9961911"><div class="ttname"><a href="pk_8h.html#a7b5e20233f984cf440379b41b9961911">pk_free</a></div><div class="ttdeci">void pk_free(pk_context *ctx)</div><div class="ttdoc">Free a pk_context. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a85254a12029f569fd0715a2e11ab06be"><div class="ttname"><a href="compat-1_82_8h.html#a85254a12029f569fd0715a2e11ab06be">x509parse_crl_info</a></div><div class="ttdeci">static int x509parse_crl_info(char *buf, size_t size, const char *prefix, const x509_crl *crl)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00265">compat-1.2.h:265</a></div></div>
<div class="ttc" id="pk_8h_html_a67ffa512157184d2e30e3b451344b841"><div class="ttname"><a href="pk_8h.html#a67ffa512157184d2e30e3b451344b841">pk_parse_public_key</a></div><div class="ttdeci">int pk_parse_public_key(pk_context *ctx, const unsigned char *key, size_t keylen)</div><div class="ttdoc">Parse a public key. </div></div>
<div class="ttc" id="compat-1_82_8h_html_ad50caf0e9aa86efc95f5e1036f2993e5"><div class="ttname"><a href="compat-1_82_8h.html#ad50caf0e9aa86efc95f5e1036f2993e5">sha4</a></div><div class="ttdeci">static void sha4(const unsigned char *input, size_t ilen, unsigned char output[32], int is384)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00127">compat-1.2.h:127</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a9cf2602280f885c411b455d9bb29a2aa"><div class="ttname"><a href="compat-1_82_8h.html#a9cf2602280f885c411b455d9bb29a2aa">x509parse_crt_der</a></div><div class="ttdeci">static int x509parse_crt_der(x509_cert *chain, const unsigned char *buf, size_t buflen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00225">compat-1.2.h:225</a></div></div>
<div class="ttc" id="x509__crl_8h_html"><div class="ttname"><a href="x509__crl_8h.html">x509_crl.h</a></div><div class="ttdoc">X.509 certificate revocation list parsing. </div></div>
<div class="ttc" id="compat-1_82_8h_html_ab35d140a68e031ea796ec789cace4d82"><div class="ttname"><a href="compat-1_82_8h.html#ab35d140a68e031ea796ec789cace4d82">sha2_hmac_finish</a></div><div class="ttdeci">static void sha2_hmac_finish(sha256_context *ctx, unsigned char output[32])</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00089">compat-1.2.h:89</a></div></div>
<div class="ttc" id="pk_8h_html_af9dc9fb5c88b9192f27b71688ecedb33"><div class="ttname"><a href="pk_8h.html#af9dc9fb5c88b9192f27b71688ecedb33">pk_init</a></div><div class="ttdeci">void pk_init(pk_context *ctx)</div><div class="ttdoc">Initialize a pk_context (as NONE) </div></div>
<div class="ttc" id="compat-1_82_8h_html_a272a4915c6aabfa7caea8665abc131ad"><div class="ttname"><a href="compat-1_82_8h.html#a272a4915c6aabfa7caea8665abc131ad">x509parse_cert_info</a></div><div class="ttdeci">static int x509parse_cert_info(char *buf, size_t size, const char *prefix, const x509_cert *crt)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00238">compat-1.2.h:238</a></div></div>
<div class="ttc" id="struct__x509__crl_html"><div class="ttname"><a href="struct__x509__crl.html">_x509_crl</a></div><div class="ttdoc">Certificate revocation list structure. </div><div class="ttdef"><b>Definition:</b> <a href="x509__crl_8h_source.html#l00073">x509_crl.h:73</a></div></div>
<div class="ttc" id="sha512_8h_html"><div class="ttname"><a href="sha512_8h.html">sha512.h</a></div><div class="ttdoc">SHA-384 and SHA-512 cryptographic hash function. </div></div>
<div class="ttc" id="pk_8h_html_afca3aa33cb1f34742a7ee3fd8ccec9caac21caece338fd9c2d1ee4bbdac9017e3"><div class="ttname"><a href="pk_8h.html#afca3aa33cb1f34742a7ee3fd8ccec9caac21caece338fd9c2d1ee4bbdac9017e3">POLARSSL_PK_RSA</a></div><div class="ttdef"><b>Definition:</b> <a href="pk_8h_source.html#l00097">pk.h:97</a></div></div>
<div class="ttc" id="group__x509__module_html_ga1f152bf56415a2e28382e3b425844838"><div class="ttname"><a href="group__x509__module.html#ga1f152bf56415a2e28382e3b425844838">x509_csr_info</a></div><div class="ttdeci">int x509_csr_info(char *buf, size_t size, const char *prefix, const x509_csr *csr)</div><div class="ttdoc">Returns an informational string about the CSR. </div></div>
<div class="ttc" id="pk_8h_html_a2116e060a9aeb3589cb90633b6d8d062"><div class="ttname"><a href="pk_8h.html#a2116e060a9aeb3589cb90633b6d8d062">pk_parse_key</a></div><div class="ttdeci">int pk_parse_key(pk_context *ctx, const unsigned char *key, size_t keylen, const unsigned char *pwd, size_t pwdlen)</div><div class="ttdoc">Parse a private key. </div></div>
<div class="ttc" id="sha256_8h_html_a2336e05cf0778065a128557c3e69fe53"><div class="ttname"><a href="sha256_8h.html#a2336e05cf0778065a128557c3e69fe53">sha256_finish</a></div><div class="ttdeci">void sha256_finish(sha256_context *ctx, unsigned char output[32])</div><div class="ttdoc">SHA-256 final digest. </div></div>
<div class="ttc" id="sha512_8h_html_ae82bbb3a6ad8c5e0ff0afad2943e5a4b"><div class="ttname"><a href="sha512_8h.html#ae82bbb3a6ad8c5e0ff0afad2943e5a4b">sha512_hmac_starts</a></div><div class="ttdeci">void sha512_hmac_starts(sha512_context *ctx, const unsigned char *key, size_t keylen, int is384)</div><div class="ttdoc">SHA-512 HMAC context setup. </div></div>
<div class="ttc" id="group__x509__module_html_ga34939a983156816784e3d1a64fe0bac9"><div class="ttname"><a href="group__x509__module.html#ga34939a983156816784e3d1a64fe0bac9">x509_crt_parse_path</a></div><div class="ttdeci">int x509_crt_parse_path(x509_crt *chain, const char *path)</div><div class="ttdoc">Load one or more certificate files from a path and add them to the chained list. </div></div>
<div class="ttc" id="struct__x509__csr_html"><div class="ttname"><a href="struct__x509__csr.html">_x509_csr</a></div><div class="ttdoc">Certificate Signing Request (CSR) structure. </div><div class="ttdef"><b>Definition:</b> <a href="x509__csr_8h_source.html#l00054">x509_csr.h:54</a></div></div>
<div class="ttc" id="sha512_8h_html_a1e074e2d6e9201b45c97e2acf4fdd7b9"><div class="ttname"><a href="sha512_8h.html#a1e074e2d6e9201b45c97e2acf4fdd7b9">sha512_hmac_reset</a></div><div class="ttdeci">void sha512_hmac_reset(sha512_context *ctx)</div><div class="ttdoc">SHA-512 HMAC context reset. </div></div>
<div class="ttc" id="compat-1_82_8h_html_afed9a9ffdbd812606c025c74ea5941a9"><div class="ttname"><a href="compat-1_82_8h.html#afed9a9ffdbd812606c025c74ea5941a9">sha4_hmac_finish</a></div><div class="ttdeci">static void sha4_hmac_finish(sha512_context *ctx, unsigned char output[64])</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00138">compat-1.2.h:138</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a615286fca07876d0fd06ab19c482953e"><div class="ttname"><a href="compat-1_82_8h.html#a615286fca07876d0fd06ab19c482953e">sha2_hmac_starts</a></div><div class="ttdeci">static void sha2_hmac_starts(sha256_context *ctx, const unsigned char *key, size_t keylen, int is224)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00082">compat-1.2.h:82</a></div></div>
<div class="ttc" id="structsha256__context_html"><div class="ttname"><a href="structsha256__context.html">sha256_context</a></div><div class="ttdoc">SHA-256 context structure. </div><div class="ttdef"><b>Definition:</b> <a href="sha256_8h_source.html#l00058">sha256.h:58</a></div></div>
<div class="ttc" id="group__x509__module_html_ga9018bb8c7bf444c0b037d5f3ac120f37"><div class="ttname"><a href="group__x509__module.html#ga9018bb8c7bf444c0b037d5f3ac120f37">x509_csr_parse_file</a></div><div class="ttdeci">int x509_csr_parse_file(x509_csr *csr, const char *path)</div><div class="ttdoc">Load a Certificate Signing Request (CSR) </div></div>
<div class="ttc" id="pk_8h_html_a584d2510270b007b22d31416e2a7f99e"><div class="ttname"><a href="pk_8h.html#a584d2510270b007b22d31416e2a7f99e">pk_parse_keyfile</a></div><div class="ttdeci">int pk_parse_keyfile(pk_context *ctx, const char *path, const char *password)</div><div class="ttdoc">Load and parse a private key. </div></div>
<div class="ttc" id="group__x509__module_html_ga81299c99c393f6f58eff0471efb65ef7"><div class="ttname"><a href="group__x509__module.html#ga81299c99c393f6f58eff0471efb65ef7">x509_crt_info</a></div><div class="ttdeci">int x509_crt_info(char *buf, size_t size, const char *prefix, const x509_crt *crt)</div><div class="ttdoc">Returns an informational string about the certificate. </div></div>
<div class="ttc" id="compat-1_82_8h_html_ac49ea4087d3f59d3d29f29dddffe2dc4"><div class="ttname"><a href="compat-1_82_8h.html#ac49ea4087d3f59d3d29f29dddffe2dc4">sha4_hmac</a></div><div class="ttdeci">static void sha4_hmac(const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char output[64], int is384)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00144">compat-1.2.h:144</a></div></div>
<div class="ttc" id="sha256_8h_html"><div class="ttname"><a href="sha256_8h.html">sha256.h</a></div><div class="ttdoc">SHA-224 and SHA-256 cryptographic hash function. </div></div>
<div class="ttc" id="sha512_8h_html_afaa574d01d7d92bbd637a9a2b30ab1ad"><div class="ttname"><a href="sha512_8h.html#afaa574d01d7d92bbd637a9a2b30ab1ad">sha512_update</a></div><div class="ttdeci">void sha512_update(sha512_context *ctx, const unsigned char *input, size_t ilen)</div><div class="ttdoc">SHA-512 process buffer. </div></div>
<div class="ttc" id="compat-1_82_8h_html_a7da761c33c4c4f99afde1d0f62a6e6fb"><div class="ttname"><a href="compat-1_82_8h.html#a7da761c33c4c4f99afde1d0f62a6e6fb">x509parse_crl</a></div><div class="ttdeci">static int x509parse_crl(x509_crl *chain, const unsigned char *buf, size_t buflen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00259">compat-1.2.h:259</a></div></div>
<div class="ttc" id="x509_8h_html_acd36d794a8edbbf66fe2e267d8804854"><div class="ttname"><a href="x509_8h.html#acd36d794a8edbbf66fe2e267d8804854">x509_serial_gets</a></div><div class="ttdeci">int x509_serial_gets(char *buf, size_t size, const x509_buf *serial)</div><div class="ttdoc">Store the certificate serial in printable form into buf; no more than size characters will be written...</div></div>
<div class="ttc" id="structpk__context_html"><div class="ttname"><a href="structpk__context.html">pk_context</a></div><div class="ttdoc">Public key container. </div><div class="ttdef"><b>Definition:</b> <a href="pk_8h_source.html#l00194">pk.h:194</a></div></div>
<div class="ttc" id="compat-1_82_8h_html_a554d0751dd7371cc56c3366bd1f6a422"><div class="ttname"><a href="compat-1_82_8h.html#a554d0751dd7371cc56c3366bd1f6a422">sha4_hmac_update</a></div><div class="ttdeci">static void sha4_hmac_update(sha512_context *ctx, const unsigned char *input, size_t ilen)</div><div class="ttdef"><b>Definition:</b> <a href="compat-1_82_8h_source.html#l00135">compat-1.2.h:135</a></div></div>
<div class="ttc" id="group__x509__module_html_ga2f937df6c64b400210dbeb5ad26cc8c2"><div class="ttname"><a href="group__x509__module.html#ga2f937df6c64b400210dbeb5ad26cc8c2">x509_crt_parse_file</a></div><div class="ttdeci">int x509_crt_parse_file(x509_crt *chain, const char *path)</div><div class="ttdoc">Load one or more certificates and add them to the chained list. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jul 31 2014 11:35:51 for PolarSSL v1.3.8 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>