summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/doc/RAND_bytes.pod
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2015-03-08 16:48:49 +0000
committercvs2svn <admin@example.com>2015-03-08 16:48:49 +0000
commitdecf84ba5550c1656a7fdb51b5b81969590c3f03 (patch)
tree44872802e872bdfd60730fa9cf01d9d5751251c1 /src/lib/libcrypto/doc/RAND_bytes.pod
parent7a8f138352aa4eb7b65ac4b1a5fe7630fbee1427 (diff)
downloadopenbsd-libressl-v2.1.5.tar.gz
openbsd-libressl-v2.1.5.tar.bz2
openbsd-libressl-v2.1.5.zip
This commit was manufactured by cvs2git to create branch 'OPENBSD_5_7'.libressl-v2.1.5
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