Sophie

Sophie

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

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: sha1.h File Reference</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="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">sha1.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>SHA-1 cryptographic hash function.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="config_8h_source.html">config.h</a>&quot;</code><br />
<code>#include &lt;stddef.h&gt;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for sha1.h:</div>
<div class="dyncontent">
<div class="center"><img src="sha1_8h__incl.png" border="0" usemap="#sha1_8h" alt=""/></div>
<map name="sha1_8h" id="sha1_8h">
<area shape="rect" id="node2" href="config_8h.html" title="Configuration options (set of defines) " alt="" coords="35,80,138,107"/>
<area shape="rect" id="node3" href="check__config_8h.html" title="Consistency checks for configuration options. " alt="" coords="5,155,168,181"/>
</map>
</div>
</div>
<p><a href="sha1_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">SHA-1 context structure.  <a href="structmbedtls__sha1__context.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:af0cc8deb8dd30a095c6023c498418d24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#af0cc8deb8dd30a095c6023c498418d24">mbedtls_sha1_init</a> (<a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *ctx)</td></tr>
<tr class="memdesc:af0cc8deb8dd30a095c6023c498418d24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize SHA-1 context.  <a href="#af0cc8deb8dd30a095c6023c498418d24">More...</a><br /></td></tr>
<tr class="separator:af0cc8deb8dd30a095c6023c498418d24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a126091a4e884966454dca38c97770a24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#a126091a4e884966454dca38c97770a24">mbedtls_sha1_free</a> (<a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *ctx)</td></tr>
<tr class="memdesc:a126091a4e884966454dca38c97770a24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear SHA-1 context.  <a href="#a126091a4e884966454dca38c97770a24">More...</a><br /></td></tr>
<tr class="separator:a126091a4e884966454dca38c97770a24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d06f1cd6dc5b2849d08749eef1975f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#a1d06f1cd6dc5b2849d08749eef1975f8">mbedtls_sha1_clone</a> (<a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *dst, const <a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *src)</td></tr>
<tr class="memdesc:a1d06f1cd6dc5b2849d08749eef1975f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clone (the state of) a SHA-1 context.  <a href="#a1d06f1cd6dc5b2849d08749eef1975f8">More...</a><br /></td></tr>
<tr class="separator:a1d06f1cd6dc5b2849d08749eef1975f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a829345261baf63a8a4d284cf204ab5b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#a829345261baf63a8a4d284cf204ab5b5">mbedtls_sha1_starts</a> (<a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *ctx)</td></tr>
<tr class="memdesc:a829345261baf63a8a4d284cf204ab5b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">SHA-1 context setup.  <a href="#a829345261baf63a8a4d284cf204ab5b5">More...</a><br /></td></tr>
<tr class="separator:a829345261baf63a8a4d284cf204ab5b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a344b085d739a8d033b43c8ddb3e50d38"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#a344b085d739a8d033b43c8ddb3e50d38">mbedtls_sha1_update</a> (<a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *ctx, const unsigned char *input, size_t ilen)</td></tr>
<tr class="memdesc:a344b085d739a8d033b43c8ddb3e50d38"><td class="mdescLeft">&#160;</td><td class="mdescRight">SHA-1 process buffer.  <a href="#a344b085d739a8d033b43c8ddb3e50d38">More...</a><br /></td></tr>
<tr class="separator:a344b085d739a8d033b43c8ddb3e50d38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef1702ca25626ec73756b686a307d859"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#aef1702ca25626ec73756b686a307d859">mbedtls_sha1_finish</a> (<a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *ctx, unsigned char output[20])</td></tr>
<tr class="memdesc:aef1702ca25626ec73756b686a307d859"><td class="mdescLeft">&#160;</td><td class="mdescRight">SHA-1 final digest.  <a href="#aef1702ca25626ec73756b686a307d859">More...</a><br /></td></tr>
<tr class="separator:aef1702ca25626ec73756b686a307d859"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70417cbb2e95ce553501caef9bd6e076"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#a70417cbb2e95ce553501caef9bd6e076">mbedtls_sha1_process</a> (<a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *ctx, const unsigned char data[64])</td></tr>
<tr class="separator:a70417cbb2e95ce553501caef9bd6e076"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3c90bb59dca0cc914303ca2a1e382b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#af3c90bb59dca0cc914303ca2a1e382b9">mbedtls_sha1</a> (const unsigned char *input, size_t ilen, unsigned char output[20])</td></tr>
<tr class="memdesc:af3c90bb59dca0cc914303ca2a1e382b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output = SHA-1( input buffer )  <a href="#af3c90bb59dca0cc914303ca2a1e382b9">More...</a><br /></td></tr>
<tr class="separator:af3c90bb59dca0cc914303ca2a1e382b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3666efb450a6bbe9588d6b835dc566cf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sha1_8h.html#a3666efb450a6bbe9588d6b835dc566cf">mbedtls_sha1_self_test</a> (int verbose)</td></tr>
<tr class="memdesc:a3666efb450a6bbe9588d6b835dc566cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checkup routine.  <a href="#a3666efb450a6bbe9588d6b835dc566cf">More...</a><br /></td></tr>
<tr class="separator:a3666efb450a6bbe9588d6b835dc566cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>SHA-1 cryptographic hash function. </p>
<p>Copyright (C) 2006-2015, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0</p>
<p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at</p>
<p><a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a></p>
<p>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</p>
<p>This file is part of mbed TLS (<a href="https://tls.mbed.org">https://tls.mbed.org</a>) </p>

<p class="definition">Definition in file <a class="el" href="sha1_8h_source.html">sha1.h</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="af3c90bb59dca0cc914303ca2a1e382b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3c90bb59dca0cc914303ca2a1e382b9">&#9670;&nbsp;</a></span>mbedtls_sha1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mbedtls_sha1 </td>
          <td>(</td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>ilen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>output</em>[20]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Output = SHA-1( input buffer ) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>buffer holding the data </td></tr>
    <tr><td class="paramname">ilen</td><td>length of the input data </td></tr>
    <tr><td class="paramname">output</td><td>SHA-1 checksum result </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1d06f1cd6dc5b2849d08749eef1975f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d06f1cd6dc5b2849d08749eef1975f8">&#9670;&nbsp;</a></span>mbedtls_sha1_clone()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mbedtls_sha1_clone </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clone (the state of) a SHA-1 context. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dst</td><td>The destination context </td></tr>
    <tr><td class="paramname">src</td><td>The context to be cloned </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aef1702ca25626ec73756b686a307d859"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef1702ca25626ec73756b686a307d859">&#9670;&nbsp;</a></span>mbedtls_sha1_finish()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mbedtls_sha1_finish </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char&#160;</td>
          <td class="paramname"><em>output</em>[20]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SHA-1 final digest. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>SHA-1 context </td></tr>
    <tr><td class="paramname">output</td><td>SHA-1 checksum result </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a126091a4e884966454dca38c97770a24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a126091a4e884966454dca38c97770a24">&#9670;&nbsp;</a></span>mbedtls_sha1_free()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mbedtls_sha1_free </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *&#160;</td>
          <td class="paramname"><em>ctx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear SHA-1 context. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>SHA-1 context to be cleared </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af0cc8deb8dd30a095c6023c498418d24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0cc8deb8dd30a095c6023c498418d24">&#9670;&nbsp;</a></span>mbedtls_sha1_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mbedtls_sha1_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *&#160;</td>
          <td class="paramname"><em>ctx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize SHA-1 context. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>SHA-1 context to be initialized </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a70417cbb2e95ce553501caef9bd6e076"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70417cbb2e95ce553501caef9bd6e076">&#9670;&nbsp;</a></span>mbedtls_sha1_process()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mbedtls_sha1_process </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char&#160;</td>
          <td class="paramname"><em>data</em>[64]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a3666efb450a6bbe9588d6b835dc566cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3666efb450a6bbe9588d6b835dc566cf">&#9670;&nbsp;</a></span>mbedtls_sha1_self_test()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int mbedtls_sha1_self_test </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verbose</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checkup routine. </p>
<dl class="section return"><dt>Returns</dt><dd>0 if successful, or 1 if the test failed </dd></dl>

</div>
</div>
<a id="a829345261baf63a8a4d284cf204ab5b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a829345261baf63a8a4d284cf204ab5b5">&#9670;&nbsp;</a></span>mbedtls_sha1_starts()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mbedtls_sha1_starts </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *&#160;</td>
          <td class="paramname"><em>ctx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SHA-1 context setup. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>context to be initialized </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a344b085d739a8d033b43c8ddb3e50d38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a344b085d739a8d033b43c8ddb3e50d38">&#9670;&nbsp;</a></span>mbedtls_sha1_update()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mbedtls_sha1_update </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structmbedtls__sha1__context.html">mbedtls_sha1_context</a> *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>ilen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SHA-1 process buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ctx</td><td>SHA-1 context </td></tr>
    <tr><td class="paramname">input</td><td>buffer holding the data </td></tr>
    <tr><td class="paramname">ilen</td><td>length of the input data </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Dec 28 2017 18:33:30 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>