1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Synchronous 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-crypto-cipher-decrypt-one.html" title="crypto_cipher_decrypt_one"><link rel="next" href="API-crypto-alloc-hash.html" title="crypto_alloc_hash"></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">Synchronous Message Digest API</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-crypto-cipher-decrypt-one.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-hash.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1097958908"></a>Synchronous Message Digest API</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-crypto-alloc-hash.html"><span class="phrase">crypto_alloc_hash</span></a></span><span class="refpurpose"> — 2 allocate synchronous message digest handle 3 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-free-hash.html"><span class="phrase">crypto_free_hash</span></a></span><span class="refpurpose"> — 4 zeroize and free message digest handle 5 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-has-hash.html"><span class="phrase">crypto_has_hash</span></a></span><span class="refpurpose"> — 6 Search for the availability of a message digest 7 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-hash-blocksize.html"><span class="phrase">crypto_hash_blocksize</span></a></span><span class="refpurpose"> — 8 obtain block size for message digest 9 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-hash-digestsize.html"><span class="phrase">crypto_hash_digestsize</span></a></span><span class="refpurpose"> — 10 obtain message digest size 11 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-hash-init.html"><span class="phrase">crypto_hash_init</span></a></span><span class="refpurpose"> — 12 (re)initialize message digest handle 13 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-hash-update.html"><span class="phrase">crypto_hash_update</span></a></span><span class="refpurpose"> — 14 add data to message digest for processing 15 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-hash-final.html"><span class="phrase">crypto_hash_final</span></a></span><span class="refpurpose"> — 16 calculate message digest 17 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-hash-digest.html"><span class="phrase">crypto_hash_digest</span></a></span><span class="refpurpose"> — 18 calculate message digest for a buffer 19 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-hash-setkey.html"><span class="phrase">crypto_hash_setkey</span></a></span><span class="refpurpose"> — 20 set key for message digest 21 </span></dt></dl></div><p> 22 </p><p> 23 The synchronous message digest API is used with the ciphers of type 24 CRYPTO_ALG_TYPE_HASH (listed as type <span class="quote">“<span class="quote">hash</span>”</span> in /proc/crypto) 25</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-crypto-cipher-decrypt-one.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-hash.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">crypto_cipher_decrypt_one</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_hash</span></td></tr></table></div></body></html> 26