Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > e405d5f6b10a3a92bd2c28c4aa026c70 > files > 94

lib64mbedtls-devel-2.6.0-1.mga6.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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mbed TLS v2.6.0: arc4.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">mbed TLS v2.6.0
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_b4d146e9a6d8dd56ed4afb2480a97fd3.html">mbedtls</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">arc4.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="arc4_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="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef MBEDTLS_ARC4_H</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define MBEDTLS_ARC4_H</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#if !defined(MBEDTLS_CONFIG_FILE)</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="config_8h.html">config.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include MBEDTLS_CONFIG_FILE</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#if !defined(MBEDTLS_ARC4_ALT)</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">// Regular implementation</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structmbedtls__arc4__context.html">   45</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structmbedtls__arc4__context.html#a35ada04bd0e0ebb3c91fe0a7be91d62c">   47</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structmbedtls__arc4__context.html#a35ada04bd0e0ebb3c91fe0a7be91d62c">x</a>;                      </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structmbedtls__arc4__context.html#a53d6a6d70c2b3ef5cd4467ae32e21429">   48</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structmbedtls__arc4__context.html#a53d6a6d70c2b3ef5cd4467ae32e21429">y</a>;                      </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structmbedtls__arc4__context.html#a18aed220cbc1645d368721b380354688">   49</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> m[256];       </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<a class="code" href="structmbedtls__arc4__context.html">mbedtls_arc4_context</a>;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keywordtype">void</span> <a class="code" href="arc4_8h.html#a7795c92c7a8a4b9cf715da081665ccfd">mbedtls_arc4_init</a>( <a class="code" href="structmbedtls__arc4__context.html">mbedtls_arc4_context</a> *ctx );</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keywordtype">void</span> <a class="code" href="arc4_8h.html#a888a4167caf8503e9e82a132c7b89313">mbedtls_arc4_free</a>( <a class="code" href="structmbedtls__arc4__context.html">mbedtls_arc4_context</a> *ctx );</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keywordtype">void</span> <a class="code" href="arc4_8h.html#a6a689a989cb433e41181caef8d8bf4ba">mbedtls_arc4_setup</a>( <a class="code" href="structmbedtls__arc4__context.html">mbedtls_arc4_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="l00075"></a><span class="lineno">   75</span>&#160;                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> keylen );</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keywordtype">int</span> <a class="code" href="arc4_8h.html#a51d378246f0c277a68352cdac782e8fb">mbedtls_arc4_crypt</a>( <a class="code" href="structmbedtls__arc4__context.html">mbedtls_arc4_context</a> *ctx, <span class="keywordtype">size_t</span> length, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *input,</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *output );</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></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">   92</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#else  </span><span class="comment">/* MBEDTLS_ARC4_ALT */</span><span class="preprocessor"></span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#include &quot;arc4_alt.h&quot;</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* MBEDTLS_ARC4_ALT */</span><span class="preprocessor"></span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keywordtype">int</span> <a class="code" href="arc4_8h.html#aba830fee9057fa1c63dcc38c7caf7730">mbedtls_arc4_self_test</a>( <span class="keywordtype">int</span> verbose );</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="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;}</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* arc4.h */</span><span class="preprocessor"></span></div><div class="ttc" id="arc4_8h_html_a51d378246f0c277a68352cdac782e8fb"><div class="ttname"><a href="arc4_8h.html#a51d378246f0c277a68352cdac782e8fb">mbedtls_arc4_crypt</a></div><div class="ttdeci">int mbedtls_arc4_crypt(mbedtls_arc4_context *ctx, size_t length, const unsigned char *input, unsigned char *output)</div><div class="ttdoc">ARC4 cipher function. </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="arc4_8h_html_a7795c92c7a8a4b9cf715da081665ccfd"><div class="ttname"><a href="arc4_8h.html#a7795c92c7a8a4b9cf715da081665ccfd">mbedtls_arc4_init</a></div><div class="ttdeci">void mbedtls_arc4_init(mbedtls_arc4_context *ctx)</div><div class="ttdoc">Initialize ARC4 context. </div></div>
<div class="ttc" id="structmbedtls__arc4__context_html_a35ada04bd0e0ebb3c91fe0a7be91d62c"><div class="ttname"><a href="structmbedtls__arc4__context.html#a35ada04bd0e0ebb3c91fe0a7be91d62c">mbedtls_arc4_context::x</a></div><div class="ttdeci">int x</div><div class="ttdef"><b>Definition:</b> <a href="arc4_8h_source.html#l00047">arc4.h:47</a></div></div>
<div class="ttc" id="structmbedtls__arc4__context_html"><div class="ttname"><a href="structmbedtls__arc4__context.html">mbedtls_arc4_context</a></div><div class="ttdoc">ARC4 context structure. </div><div class="ttdef"><b>Definition:</b> <a href="arc4_8h_source.html#l00045">arc4.h:45</a></div></div>
<div class="ttc" id="arc4_8h_html_a888a4167caf8503e9e82a132c7b89313"><div class="ttname"><a href="arc4_8h.html#a888a4167caf8503e9e82a132c7b89313">mbedtls_arc4_free</a></div><div class="ttdeci">void mbedtls_arc4_free(mbedtls_arc4_context *ctx)</div><div class="ttdoc">Clear ARC4 context. </div></div>
<div class="ttc" id="arc4_8h_html_a6a689a989cb433e41181caef8d8bf4ba"><div class="ttname"><a href="arc4_8h.html#a6a689a989cb433e41181caef8d8bf4ba">mbedtls_arc4_setup</a></div><div class="ttdeci">void mbedtls_arc4_setup(mbedtls_arc4_context *ctx, const unsigned char *key, unsigned int keylen)</div><div class="ttdoc">ARC4 key schedule. </div></div>
<div class="ttc" id="arc4_8h_html_aba830fee9057fa1c63dcc38c7caf7730"><div class="ttname"><a href="arc4_8h.html#aba830fee9057fa1c63dcc38c7caf7730">mbedtls_arc4_self_test</a></div><div class="ttdeci">int mbedtls_arc4_self_test(int verbose)</div><div class="ttdoc">Checkup routine. </div></div>
<div class="ttc" id="structmbedtls__arc4__context_html_a53d6a6d70c2b3ef5cd4467ae32e21429"><div class="ttname"><a href="structmbedtls__arc4__context.html#a53d6a6d70c2b3ef5cd4467ae32e21429">mbedtls_arc4_context::y</a></div><div class="ttdeci">int y</div><div class="ttdef"><b>Definition:</b> <a href="arc4_8h_source.html#l00048">arc4.h:48</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Dec 28 2017 18:33:29 for mbed TLS v2.6.0 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>