/usr/share/doc/libkcapi/html/API-kcapi-kdf-fb.html is in libkcapi-doc 1.0.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>kcapi_kdf_fb</title><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="Linux Kernel Crypto API User Space Interface Library"><link rel="up" href="ch03s24.html" title="Key Derivation Functions"><link rel="prev" href="API-kcapi-kdf-dpi.html" title="kcapi_kdf_dpi"><link rel="next" href="API-kcapi-kdf-ctr.html" title="kcapi_kdf_ctr"></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">kcapi_kdf_fb</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-kcapi-kdf-dpi.html">Prev</a> </td><th width="60%" align="center">Key Derivation Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-kcapi-kdf-ctr.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-kcapi-kdf-fb"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kcapi_kdf_fb —
Feedback Mode Key Derivation Function
</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">int32_t <b class="fsfunc">kcapi_kdf_fb </b>(</code></td><td>struct kcapi_handle * <var class="pdparam">handle</var>, </td></tr><tr><td> </td><td>const uint8_t * <var class="pdparam">src</var>, </td></tr><tr><td> </td><td>uint32_t <var class="pdparam">slen</var>, </td></tr><tr><td> </td><td>uint8_t * <var class="pdparam">dst</var>, </td></tr><tr><td> </td><td>uint32_t <var class="pdparam">dlen</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm5731"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>handle</code></em></span></dt><dd><p>
[in] cipher handle allocated by caller. This cipher handle
must be allocated with <code class="function">kcapi_md_init</code>. If the caller is interested in
a KDF using a keyed message digest, the caller should also call
<code class="function">kcapi_md_setkey</code> before invoking this function.
</p></dd><dt><span class="term"><em class="parameter"><code>src</code></em></span></dt><dd><p>
[in] Input data that should be transformed into a key (see below).
</p></dd><dt><span class="term"><em class="parameter"><code>slen</code></em></span></dt><dd><p>
[in] Length of the src input data.
</p></dd><dt><span class="term"><em class="parameter"><code>dst</code></em></span></dt><dd><p>
[out] Buffer to store the generated key in,
</p></dd><dt><span class="term"><em class="parameter"><code>dlen</code></em></span></dt><dd><p>
[in] Length of the dst buffer. This value defines the number of bytes
generated by the KDF.
</p></dd></dl></div></div><div class="refsect1"><a name="idm5761"></a><h2>Description</h2><p>
This function is an implementation of the KDF in feedback mode with a
non-NULL IV and with counter according to SP800-108 section 5.2. The IV is
supplied with src and must be equal to the digestsize of the used cipher.
</p><p>
In addition, the caller must provide Label || 0x00 || Context in src. This
src pointer must not be NULL as the IV is required. The ultimate format of
the src pointer is IV || Label || 0x00 || Context where the length of the
IV is equal to the block size (i.e. the digest size of the underlying
hash) of the PRF.
</p><p>
<em class="parameter"><code>return</code></em> 0 upon success;
a negative errno-style error code if an error occurred
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-kcapi-kdf-dpi.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03s24.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-kcapi-kdf-ctr.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">kcapi_kdf_dpi</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">kcapi_kdf_ctr</span></td></tr></table></div></body></html>
|