1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>crypto_blkcipher_decrypt_iv</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="ch05s07.html" title="Synchronous Block Cipher API"><link rel="prev" href="API-crypto-blkcipher-decrypt.html" title="crypto_blkcipher_decrypt"><link rel="next" href="API-crypto-blkcipher-set-iv.html" title="crypto_blkcipher_set_iv"></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_blkcipher_decrypt_iv</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-crypto-blkcipher-decrypt.html">Prev</a> </td><th width="60%" align="center">Synchronous Block Cipher API</th><td width="20%" align="right"> <a accesskey="n" href="API-crypto-blkcipher-set-iv.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-crypto-blkcipher-decrypt-iv"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>crypto_blkcipher_decrypt_iv — 2 decrypt ciphertext with dedicated IV 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_blkcipher_decrypt_iv </b>(</code></td><td>struct blkcipher_desc * <var class="pdparam">desc</var>, </td></tr><tr><td> </td><td>struct scatterlist * <var class="pdparam">dst</var>, </td></tr><tr><td> </td><td>struct scatterlist * <var class="pdparam">src</var>, </td></tr><tr><td> </td><td>unsigned int <var class="pdparam">nbytes</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1097868820"></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 reference to the block cipher handle with meta data 5 </p></dd><dt><span class="term"><em class="parameter"><code>dst</code></em></span></dt><dd><p> 6 scatter/gather list that is filled by the cipher operation with the 7 plaintext 8 </p></dd><dt><span class="term"><em class="parameter"><code>src</code></em></span></dt><dd><p> 9 scatter/gather list that holds the ciphertext 10 </p></dd><dt><span class="term"><em class="parameter"><code>nbytes</code></em></span></dt><dd><p> 11 number of bytes of the ciphertext to decrypt. 12 </p></dd></dl></div></div><div class="refsect1"><a name="idp1097873508"></a><h2>Description</h2><p> 13 Decrypt ciphertext data with the use of an IV that is solely used for this 14 cipher operation. Any previously set IV is not used. 15 </p><p> 16 17 The blkcipher_desc data structure must be filled by the caller as documented 18 for the crypto_blkcipher_encrypt_iv call above. 19</p></div><div class="refsect1"><a name="idp1097874500"></a><h2>Return</h2><p> 20 0 if the cipher operation was successful; < 0 if an error occurred 21</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-blkcipher-decrypt.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch05s07.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-crypto-blkcipher-set-iv.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">crypto_blkcipher_decrypt</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_blkcipher_set_iv</span></td></tr></table></div></body></html> 22