1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Asynchronous Message Digest API</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="API.html" title="Chapter 5. Programming Interface"><link rel="prev" href="API-struct-shash-alg.html" title="struct shash_alg"><link rel="next" href="API-crypto-alloc-ahash.html" title="crypto_alloc_ahash"></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">Asynchronous Message Digest API</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-shash-alg.html">Prev</a> </td><th width="60%" align="center">Chapter 5. Programming Interface</th><td width="20%" align="right"> <a accesskey="n" href="API-crypto-alloc-ahash.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1098092764"></a>Asynchronous Message Digest API</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-crypto-alloc-ahash.html"><span class="phrase">crypto_alloc_ahash</span></a></span><span class="refpurpose"> — 2 allocate ahash cipher handle 3 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-free-ahash.html"><span class="phrase">crypto_free_ahash</span></a></span><span class="refpurpose"> — 4 zeroize and free the ahash handle 5 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-init.html"><span class="phrase">crypto_ahash_init</span></a></span><span class="refpurpose"> — 6 (re)initialize message digest handle 7 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-digestsize.html"><span class="phrase">crypto_ahash_digestsize</span></a></span><span class="refpurpose"> — 8 obtain message digest size 9 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-reqtfm.html"><span class="phrase">crypto_ahash_reqtfm</span></a></span><span class="refpurpose"> — 10 obtain cipher handle from request 11 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-reqsize.html"><span class="phrase">crypto_ahash_reqsize</span></a></span><span class="refpurpose"> — 12 obtain size of the request data structure 13 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-setkey.html"><span class="phrase">crypto_ahash_setkey</span></a></span><span class="refpurpose"> — 14 set key for cipher handle 15 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-finup.html"><span class="phrase">crypto_ahash_finup</span></a></span><span class="refpurpose"> — 16 update and finalize message digest 17 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-final.html"><span class="phrase">crypto_ahash_final</span></a></span><span class="refpurpose"> — 18 calculate message digest 19 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-digest.html"><span class="phrase">crypto_ahash_digest</span></a></span><span class="refpurpose"> — 20 calculate message digest for a buffer 21 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-export.html"><span class="phrase">crypto_ahash_export</span></a></span><span class="refpurpose"> — 22 extract current message digest state 23 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-ahash-import.html"><span class="phrase">crypto_ahash_import</span></a></span><span class="refpurpose"> — 24 import message digest state 25 </span></dt></dl></div><p> 26 </p><p> 27 The asynchronous message digest API is used with the ciphers of type 28 CRYPTO_ALG_TYPE_AHASH (listed as type <span class="quote">“<span class="quote">ahash</span>”</span> in /proc/crypto) 29 </p><p> 30 The asynchronous cipher operation discussion provided for the 31 CRYPTO_ALG_TYPE_ABLKCIPHER API applies here as well. 32</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-shash-alg.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="API.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-crypto-alloc-ahash.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct shash_alg</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">crypto_alloc_ahash</span></td></tr></table></div></body></html> 33