Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > f835bee5b8b7ec08e20fae17cab51e63 > files > 91

lib64mbedtls-devel-2.7.3-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.7.3: 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.7.3
   </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="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  Copyright (C) 2006-2015, ARM Limited, All Rights Reserved</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  SPDX-License-Identifier: Apache-2.0</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *  Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  not use this file except in compliance with the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  You may obtain a copy of the License at</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *  http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *  Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *  distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *  limitations under the License.</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  This file is part of mbed TLS (https://tls.mbed.org)</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifndef MBEDTLS_ARC4_H</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#define MBEDTLS_ARC4_H</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#if !defined(MBEDTLS_CONFIG_FILE)</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</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="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include MBEDTLS_CONFIG_FILE</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;stddef.h&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="arc4_8h.html#a8dc53076b58b94fa82cd9a76b39f0e78">   39</a></span>&#160;<span class="preprocessor">#define MBEDTLS_ERR_ARC4_HW_ACCEL_FAILED                  -0x0019  </span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#if !defined(MBEDTLS_ARC4_ALT)</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">// Regular implementation</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structmbedtls__arc4__context.html">   56</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structmbedtls__arc4__context.html#a35ada04bd0e0ebb3c91fe0a7be91d62c">   58</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="l00059"></a><span class="lineno"><a class="line" href="structmbedtls__arc4__context.html#a53d6a6d70c2b3ef5cd4467ae32e21429">   59</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="l00060"></a><span class="lineno"><a class="line" href="structmbedtls__arc4__context.html#a18aed220cbc1645d368721b380354688">   60</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> m[256];       </div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;}</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<a class="code" href="structmbedtls__arc4__context.html">mbedtls_arc4_context</a>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</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#a7795c92c7a8a4b9cf715da081665ccfd">mbedtls_arc4_init</a>( <a class="code" href="structmbedtls__arc4__context.html">mbedtls_arc4_context</a> *ctx );</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</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="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</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="l00101"></a><span class="lineno">  101</span>&#160;                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> keylen );</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</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="l00119"></a><span class="lineno">  119</span>&#160;                <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *output );</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">  121</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;}</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">#else  </span><span class="comment">/* MBEDTLS_ARC4_ALT */</span><span class="preprocessor"></span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">#include &quot;arc4_alt.h&quot;</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* MBEDTLS_ARC4_ALT */</span><span class="preprocessor"></span></div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</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="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;}</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">#endif</span></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">  149</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#l00058">arc4.h:58</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#l00056">arc4.h:56</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#l00059">arc4.h:59</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue May 8 2018 21:08:40 for mbed TLS v2.7.3 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>