1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>crypto_shash_init</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Kernel Crypto API"><link rel="up" href="ch05s13.html" title="Synchronous Message Digest API"><link rel="prev" href="API-crypto-shash-import.html" title="crypto_shash_import"><link rel="next" href="API-crypto-shash-update.html" title="crypto_shash_update"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">crypto_shash_init</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-crypto-shash-import.html">Prev</a>&#160;</td><th width="60%" align="center">Synchronous Message Digest API</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-crypto-shash-update.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-crypto-shash-init"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>crypto_shash_init &#8212; 
2  (re)initialize message digest
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">crypto_shash_init </b>(</code></td><td>struct shash_desc * <var class="pdparam">desc</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1098325084"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>desc</code></em></span></dt><dd><p>
4     operational state handle that is already filled
5    </p></dd></dl></div></div><div class="refsect1"><a name="idp1098326724"></a><h2>Description</h2><p>
6   The call (re-)initializes the message digest referenced by the
7   operational state handle. Any potentially existing state created by
8   previous operations is discarded.
9</p></div><div class="refsect1"><a name="idp1098327500"></a><h2>Return</h2><p>
10   0 if the message digest initialization was successful; &lt; 0 if an
11   error occurred
12</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-crypto-shash-import.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch05s13.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-crypto-shash-update.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">crypto_shash_import</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">crypto_shash_update</span></td></tr></table></div></body></html>
13