This file is indexed.

/usr/share/doc/libkcapi/html/API-kcapi-kpp-dh-setparam-pkcs3.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
33
34
35
36
37
38
39
40
41
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>kcapi_kpp_dh_setparam_pkcs3</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="ch03s21.html" title="Key Protocol Primitives API - Generic"><link rel="prev" href="API-kcapi-kpp-destroy.html" title="kcapi_kpp_destroy"><link rel="next" href="API-kcapi-kpp-ecdh-setcurve.html" title="kcapi_kpp_ecdh_setcurve"></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_kpp_dh_setparam_pkcs3</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-kcapi-kpp-destroy.html">Prev</a> </td><th width="60%" align="center">Key Protocol Primitives API - Generic</th><td width="20%" align="right"> <a accesskey="n" href="API-kcapi-kpp-ecdh-setcurve.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-kcapi-kpp-dh-setparam-pkcs3"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kcapi_kpp_dh_setparam_pkcs3 — 
  set the PG parameters using PKCS3 format
 </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">kcapi_kpp_dh_setparam_pkcs3 </b>(</code></td><td>struct kcapi_handle * <var class="pdparam">handle</var>, </td></tr><tr><td> </td><td>const uint8_t * <var class="pdparam">pkcs3</var>, </td></tr><tr><td> </td><td>uint32_t <var class="pdparam">pkcs3len</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm5263"></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
    </p></dd><dt><span class="term"><em class="parameter"><code>pkcs3</code></em></span></dt><dd><p>
     [in] parameter buffer in DER format
    </p></dd><dt><span class="term"><em class="parameter"><code>pkcs3len</code></em></span></dt><dd><p>
     [in] length of key buffer
    </p></dd></dl></div></div><div class="refsect1"><a name="idm5281"></a><h2>Description</h2><p>
   With this function, the caller sets the PG parameters for subsequent cipher
   operations.
   </p><p>

   The parameter set must be in DER format as follows
   </p><p>

   SEQUENCE {
   prime INTEGER ({ dh_get_p }),
   base INTEGER ({ dh_get_g })
   }
   </p><p>

   The following command generates such parameter set where the output
</p></div><div class="refsect1"><a name="idm5287"></a><h2>file content is has the correct DER structure</h2><p>
   </p><p>

   openssl dhparam -outform DER -out dhparam.der 2048
   </p><p>

   Note, this function defines that the subsequent key generation and
   shared secret operation performs an FFC Diffie-Hellman operation.
   </p><p>

   After the caller provided the key, the caller may destroy the parameter
   as it is now maintained by the kernel.
   </p><p>

   <em class="parameter"><code>return</code></em> upon success the value of the maximum size for the KPP
   operation is returned (e.g. the prime size);
   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-kpp-destroy.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03s21.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-kcapi-kpp-ecdh-setcurve.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">kcapi_kpp_destroy</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_kpp_ecdh_setcurve</span></td></tr></table></div></body></html>