/usr/share/doc/libkcapi/html/API-kcapi-rng-get-bytes.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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>kcapi_rng_get_bytes</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="ch03s16.html" title="Random Number API - Convenience"><link rel="prev" href="ch03s16.html" title="Random Number API - Convenience"><link rel="next" href="ch03s17.html" title="Asymmetric Cipher API - Generic"></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_rng_get_bytes</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s16.html">Prev</a> </td><th width="60%" align="center">Random Number API - Convenience</th><td width="20%" align="right"> <a accesskey="n" href="ch03s17.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-kcapi-rng-get-bytes"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>kcapi_rng_get_bytes —
Convenience function to generate random bytes
</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_rng_get_bytes </b>(</code></td><td>uint8_t * <var class="pdparam">buffer</var>, </td></tr><tr><td> </td><td>uint32_t <var class="pdparam">outlen</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idm4080"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>buffer</code></em></span></dt><dd><p>
[out] filled with the random number
</p></dd><dt><span class="term"><em class="parameter"><code>outlen</code></em></span></dt><dd><p>
[in] buffer length
</p></dd></dl></div></div><div class="refsect1"><a name="idm4093"></a><h2>Description</h2><p>
This convenience function generates random bytes of the size of outlen
and stores them into the provided buffer.
</p><p>
<em class="parameter"><code>return</code></em> size of random number generated upon success;
-EIO - data cannot be obtained
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s16.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03s16.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch03s17.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Random Number API - Convenience </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Asymmetric Cipher API - Generic</td></tr></table></div></body></html>
|