/usr/share/doc/libkcapi/html/API-kcapi-pbkdf-iteration-count.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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>kcapi_pbkdf_iteration_count</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-pbkdf.html" title="kcapi_pbkdf"><link rel="next" href="API-kcapi-hkdf.html" title="kcapi_hkdf"></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_pbkdf_iteration_count</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-kcapi-pbkdf.html">Prev</a> </td><th width="60%" align="center">Key Derivation Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-kcapi-hkdf.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-kcapi-pbkdf-iteration-count"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kcapi_pbkdf_iteration_count —
Calculate numbers of iterations for a PBKDF
</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">uint32_t <b class="fsfunc">kcapi_pbkdf_iteration_count </b>(</code></td><td>const char * <var class="pdparam">hashname</var>, </td></tr><tr><td> </td><td>uint64_t <var class="pdparam">timeshresh</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm5939"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>hashname</code></em></span></dt><dd><p>
[in] kernel crypto API name of a keyed hash (e.g. hmac(sha1))
</p></dd><dt><span class="term"><em class="parameter"><code>timeshresh</code></em></span></dt><dd><p>
[in] Time duration in nanoseconds that the PBKDF operation
shall at least require. If that value is 0, a default of (1<<27)
nanoseconds is used.
</p></dd></dl></div></div><div class="refsect1"><a name="idm5952"></a><h2>Description</h2><p>
The function measures the time the PBKDF operation takes for different
round counts for the given keyed message digest type.
</p><p>
The result should be taken as the iteration count for a PBKDF operation.
</p><p>
If an error occurs with the PBKDF calculation, a value of 1<<18 is returned.
</p><p>
<em class="parameter"><code>return</code></em> number of iterations a PBKDF should take on this computer.
</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-pbkdf.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-hkdf.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">kcapi_pbkdf</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_hkdf</span></td></tr></table></div></body></html>
|