summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/doc/RAND_bytes.pod
diff options
context:
space:
mode:
authorschwarze <>2016-11-03 15:48:22 +0000
committerschwarze <>2016-11-03 15:48:22 +0000
commitb55a697c676bec213476fdf1525e9291c5d4aaf6 (patch)
treed168499a4dfb3fdd832a07f798870ad797dfd972 /src/lib/libcrypto/doc/RAND_bytes.pod
parent67adc08f675407bec0b8772e99ac4b939530d7e9 (diff)
downloadopenbsd-b55a697c676bec213476fdf1525e9291c5d4aaf6.tar.gz
openbsd-b55a697c676bec213476fdf1525e9291c5d4aaf6.tar.bz2
openbsd-b55a697c676bec213476fdf1525e9291c5d4aaf6.zip
convert RAND manuals from pod to mdoc
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