/usr/share/doc/libkcapi/html/API-kcapi-akcipher-init.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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>kcapi_akcipher_init</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="ch03s17.html" title="Asymmetric Cipher API - Generic"><link rel="prev" href="ch03s17.html" title="Asymmetric Cipher API - Generic"><link rel="next" href="API-kcapi-akcipher-destroy.html" title="kcapi_akcipher_destroy"></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_akcipher_init</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s17.html">Prev</a> </td><th width="60%" align="center">Asymmetric Cipher API - Generic</th><td width="20%" align="right"> <a accesskey="n" href="API-kcapi-akcipher-destroy.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-kcapi-akcipher-init"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kcapi_akcipher_init —
initialize cipher handle
</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_akcipher_init </b>(</code></td><td>struct kcapi_handle ** <var class="pdparam">handle</var>, </td></tr><tr><td> </td><td>const char * <var class="pdparam">ciphername</var>, </td></tr><tr><td> </td><td>uint32_t <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm4127"></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>
[out] cipher handle filled during the call
</p></dd><dt><span class="term"><em class="parameter"><code>ciphername</code></em></span></dt><dd><p>
[in] kernel crypto API cipher name as specified in
/proc/crypto
</p></dd><dt><span class="term"><em class="parameter"><code>flags</code></em></span></dt><dd><p>
[in] flags specifying the type of cipher handle
</p></dd></dl></div></div><div class="refsect1"><a name="idm4145"></a><h2>Description</h2><p>
This function provides the initialization of an asymmetric cipher handle and
establishes the connection to the kernel.
</p><p>
On success, a pointer to kcapi_handle object is returned in *handle.
Function kcapi_akcipher_destroy should be called afterwards to free
resources.
</p><p>
<em class="parameter"><code>return</code></em> 0 upon success;
-ENOENT - algorithm not available;
-EOPNOTSUPP - AF_ALG family not available;
-EINVAL - accept syscall failed
-ENOMEM - cipher handle cannot be allocated
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s17.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03s17.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-kcapi-akcipher-destroy.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Asymmetric Cipher API - Generic </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_akcipher_destroy</span></td></tr></table></div></body></html>
|