update libressl to v2.7.4
[unleashed.git] / lib / libcrypto / man / RAND_add.3
blob7fd955dde67d55c99f5ac3bc9f98f81a37990ae3
1 .\" $OpenBSD: RAND_add.3,v 1.9 2018/03/23 23:18:17 schwarze Exp $
2 .\" content checked up to: OpenSSL c16de9d8 Aug 31 23:16:22 2017 +0200
3 .\"
4 .\" Copyright (c) 2014 Miod Vallat <miod@openbsd.org>
5 .\"
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
9 .\"
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .\"
18 .Dd $Mdocdate: March 23 2018 $
19 .Dt RAND_ADD 3
20 .Os
21 .Sh NAME
22 .Nm RAND_add ,
23 .Nm RAND_cleanup ,
24 .Nm RAND_poll ,
25 .Nm RAND_seed ,
26 .Nm RAND_status
27 .Nd manipulate the PRNG state
28 .Sh SYNOPSIS
29 .In openssl/rand.h
30 .Ft void
31 .Fo RAND_add
32 .Fa "const void *buf"
33 .Fa "int num"
34 .Fa "double entropy"
35 .Fc
36 .Ft void
37 .Fn RAND_cleanup void
38 .Ft int
39 .Fn RAND_poll void
40 .Ft void
41 .Fo RAND_seed
42 .Fa "const void *buf"
43 .Fa "int num"
44 .Fc
45 .Ft int
46 .Fn RAND_status void
47 .Sh DESCRIPTION
48 These functions used to allow for the state of the random number
49 generator to be controlled by external sources.
50 .Pp
51 They are kept for ABI compatibility but are no longer functional, and
52 should not be used in new programs.
53 .Sh RETURN VALUES
54 .Fn RAND_poll
55 and
56 .Fn RAND_status
57 always return 1.
58 .Sh HISTORY
59 .Fn RAND_cleanup
60 and
61 .Fn RAND_seed
62 appeared in SSLeay 0.8.1b or earlier and have been available since
63 .Ox 2.4 .
64 .Pp
65 .Fn RAND_add
66 and
67 .Fn RAND_status
68 first appeared in OpenSSL 0.9.5 and have been available since
69 .Ox 2.7 .
70 .Pp
71 .Fn RAND_poll
72 first appeared in OpenSSL 0.9.6 and has been available since
73 .Ox 2.9 .