summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/doc/RAND_bytes.pod
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2016-07-23 19:31:36 +0000
committercvs2svn <admin@example.com>2016-07-23 19:31:36 +0000
commit86c49b31af735796dfde37aa29473a30d36367db (patch)
treee9a354a92a348338fe2b361e2eda703cae23cfab /src/lib/libcrypto/doc/RAND_bytes.pod
parent19d5fe348e8926bac4521c5807aa64c45b8f7a41 (diff)
downloadopenbsd-OPENBSD_6_0_BASE.tar.gz
openbsd-OPENBSD_6_0_BASE.tar.bz2
openbsd-OPENBSD_6_0_BASE.zip
This commit was manufactured by cvs2git to create tag 'OPENBSD_6_0_BASE'.OPENBSD_6_0_BASE
Diffstat (limited to 'src/lib/libcrypto/doc/RAND_bytes.pod')
-rw-r--r--src/lib/libcrypto/doc/RAND_bytes.pod43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/lib/libcrypto/doc/RAND_bytes.pod b/src/lib/libcrypto/doc/RAND_bytes.pod
deleted file mode 100644
index c89961ada3..0000000000
--- a/src/lib/libcrypto/doc/RAND_bytes.pod
+++ /dev/null
@@ -1,43 +0,0 @@
1=pod
2
3=head1 NAME
4
5RAND_bytes, RAND_pseudo_bytes - generate random data
6
7=head1 SYNOPSIS
8
9 #include <openssl/rand.h>
10
11 int RAND_bytes(unsigned char *buf, int num);
12
13 int RAND_pseudo_bytes(unsigned char *buf, int num);
14
15=head1 DESCRIPTION
16
17RAND_bytes() puts B<num> cryptographically strong pseudo-random bytes
18into B<buf>.
19
20RAND_pseudo_bytes() puts B<num> pseudo-random bytes into B<buf>.
21Pseudo-random byte sequences generated by RAND_pseudo_bytes() will be
22unique if they are of sufficient length, but are not necessarily
23unpredictable. They can be used for non-cryptographic purposes and for
24certain purposes in cryptographic protocols, but usually not for key
25generation etc.
26
27=head1 RETURN VALUES
28
29RAND_bytes() returns 1.
30RAND_pseudo_bytes() returns 1.
31
32=head1 SEE ALSO
33
34L<rand(3)|rand(3)>, L<ERR_get_error(3)|ERR_get_error(3)>,
35L<RAND_add(3)|RAND_add(3)>
36
37=head1 HISTORY
38
39RAND_bytes() is available in all versions of SSLeay and OpenSSL. It
40has a return value since OpenSSL 0.9.5. RAND_pseudo_bytes() was added
41in OpenSSL 0.9.5.
42
43=cut