X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fcrypto%2FRAND_bytes.pod;h=1a9b91e28144222419516b99392b3222c50d865b;hb=a12a6b99629e29d6f8f2e6731e29627a89839715;hp=aa89f3c27c449d7486eece18c1f39f1bebb25eb3;hpb=720b3598d6b5c6cac7807ef9121820d35bc0be1d;p=oweals%2Fopenssl.git diff --git a/doc/crypto/RAND_bytes.pod b/doc/crypto/RAND_bytes.pod index aa89f3c27c..1a9b91e281 100644 --- a/doc/crypto/RAND_bytes.pod +++ b/doc/crypto/RAND_bytes.pod @@ -2,7 +2,7 @@ =head1 NAME -RAND_bytes, RAND_pseudo_bytes - Generate random data +RAND_bytes, RAND_pseudo_bytes - generate random data =head1 SYNOPSIS @@ -25,17 +25,21 @@ unpredictable. They can be used for non-cryptographic purposes and for certain purposes in cryptographic protocols, but usually not for key generation etc. +The contents of B is mixed into the entropy pool before retrieving +the new pseudo-random bytes unless disabled at compile time (see FAQ). + =head1 RETURN VALUES RAND_bytes() returns 1 on success, 0 otherwise. The error code can be -obtained by ERR_get_error(3). RAND_pseudo_bytes() returns 1 if the +obtained by L. RAND_pseudo_bytes() returns 1 if the bytes generated are cryptographically strong, 0 otherwise. Both functions return -1 if they are not supported by the current RAND method. =head1 SEE ALSO -rand(3), err(3), RAND_add(3) +L, L, +L =head1 HISTORY