1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Crypto API Random Number API</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Kernel Crypto API"><link rel="up" href="API.html" title="Chapter 5. Programming Interface"><link rel="prev" href="API-crypto-shash-finup.html" title="crypto_shash_finup"><link rel="next" href="API-crypto-alloc-rng.html" title="crypto_alloc_rng"></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">Crypto API Random Number API</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-crypto-shash-finup.html">Prev</a> </td><th width="60%" align="center">Chapter 5. Programming Interface</th><td width="20%" align="right"> <a accesskey="n" href="API-crypto-alloc-rng.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp1098362428"></a>Crypto API Random Number API</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API-crypto-alloc-rng.html"><span class="phrase">crypto_alloc_rng</span></a></span><span class="refpurpose"> — 2 - allocate RNG handle 3 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-rng-alg.html"><span class="phrase">crypto_rng_alg</span></a></span><span class="refpurpose"> — 4 obtain name of RNG 5 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-free-rng.html"><span class="phrase">crypto_free_rng</span></a></span><span class="refpurpose"> — 6 zeroize and free RNG handle 7 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-rng-get-bytes.html"><span class="phrase">crypto_rng_get_bytes</span></a></span><span class="refpurpose"> — 8 get random number 9 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-rng-reset.html"><span class="phrase">crypto_rng_reset</span></a></span><span class="refpurpose"> — 10 re-initialize the RNG 11 </span></dt><dt><span class="refentrytitle"><a href="API-crypto-rng-seedsize.html"><span class="phrase">crypto_rng_seedsize</span></a></span><span class="refpurpose"> — 12 obtain seed size of RNG 13 </span></dt></dl></div><p> 14 </p><p> 15 The random number generator API is used with the ciphers of type 16 CRYPTO_ALG_TYPE_RNG (listed as type <span class="quote">“<span class="quote">rng</span>”</span> in /proc/crypto) 17</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-crypto-shash-finup.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="API.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-crypto-alloc-rng.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">crypto_shash_finup</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">crypto_alloc_rng</span></td></tr></table></div></body></html> 18