diff options
author | schwarze <> | 2016-11-03 15:48:22 +0000 |
---|---|---|
committer | schwarze <> | 2016-11-03 15:48:22 +0000 |
commit | b55a697c676bec213476fdf1525e9291c5d4aaf6 (patch) | |
tree | d168499a4dfb3fdd832a07f798870ad797dfd972 /src/lib/libcrypto/doc/RAND_bytes.pod | |
parent | 67adc08f675407bec0b8772e99ac4b939530d7e9 (diff) | |
download | openbsd-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.pod | 43 |
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 | |||
5 | RAND_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 | |||
17 | RAND_bytes() puts B<num> cryptographically strong pseudo-random bytes | ||
18 | into B<buf>. | ||
19 | |||
20 | RAND_pseudo_bytes() puts B<num> pseudo-random bytes into B<buf>. | ||
21 | Pseudo-random byte sequences generated by RAND_pseudo_bytes() will be | ||
22 | unique if they are of sufficient length, but are not necessarily | ||
23 | unpredictable. They can be used for non-cryptographic purposes and for | ||
24 | certain purposes in cryptographic protocols, but usually not for key | ||
25 | generation etc. | ||
26 | |||
27 | =head1 RETURN VALUES | ||
28 | |||
29 | RAND_bytes() returns 1. | ||
30 | RAND_pseudo_bytes() returns 1. | ||
31 | |||
32 | =head1 SEE ALSO | ||
33 | |||
34 | L<rand(3)|rand(3)>, L<ERR_get_error(3)|ERR_get_error(3)>, | ||
35 | L<RAND_add(3)|RAND_add(3)> | ||
36 | |||
37 | =head1 HISTORY | ||
38 | |||
39 | RAND_bytes() is available in all versions of SSLeay and OpenSSL. It | ||
40 | has a return value since OpenSSL 0.9.5. RAND_pseudo_bytes() was added | ||
41 | in OpenSSL 0.9.5. | ||
42 | |||
43 | =cut | ||