diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/doc/RAND_set_rand_method.pod | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/lib/libcrypto/doc/RAND_set_rand_method.pod b/src/lib/libcrypto/doc/RAND_set_rand_method.pod deleted file mode 100644 index 464eba416d..0000000000 --- a/src/lib/libcrypto/doc/RAND_set_rand_method.pod +++ /dev/null | |||
| @@ -1,59 +0,0 @@ | |||
| 1 | =pod | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | RAND_set_rand_method, RAND_get_rand_method, RAND_SSLeay - select RAND method | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | #include <openssl/rand.h> | ||
| 10 | |||
| 11 | void RAND_set_rand_method(RAND_METHOD *meth); | ||
| 12 | |||
| 13 | RAND_METHOD *RAND_get_rand_method(void); | ||
| 14 | |||
| 15 | RAND_METHOD *RAND_SSLeay(void); | ||
| 16 | |||
| 17 | =head1 DESCRIPTION | ||
| 18 | |||
| 19 | A B<RAND_METHOD> specifies the functions that OpenSSL uses for random | ||
| 20 | number generation. By modifying the method, alternative | ||
| 21 | implementations such as hardware RNGs may be used. Initially, the | ||
| 22 | default is to use the OpenSSL internal implementation. RAND_SSLeay() | ||
| 23 | returns a pointer to that method. | ||
| 24 | |||
| 25 | RAND_set_rand_method() sets the RAND method to B<meth>. | ||
| 26 | RAND_get_rand_method() returns a pointer to the current method. | ||
| 27 | |||
| 28 | =head1 THE RAND_METHOD STRUCTURE | ||
| 29 | |||
| 30 | typedef struct rand_meth_st | ||
| 31 | { | ||
| 32 | void (*seed)(const void *buf, int num); | ||
| 33 | int (*bytes)(unsigned char *buf, int num); | ||
| 34 | void (*cleanup)(void); | ||
| 35 | void (*add)(const void *buf, int num, int entropy); | ||
| 36 | int (*pseudorand)(unsigned char *buf, int num); | ||
| 37 | int (*status)(void); | ||
| 38 | } RAND_METHOD; | ||
| 39 | |||
| 40 | The components point to the implementation of RAND_seed(), | ||
| 41 | RAND_bytes(), RAND_cleanup(), RAND_add(), RAND_pseudo_rand() | ||
| 42 | and RAND_status(). | ||
| 43 | Each component may be NULL if the function is not implemented. | ||
| 44 | |||
| 45 | =head1 RETURN VALUES | ||
| 46 | |||
| 47 | RAND_set_rand_method() returns no value. RAND_get_rand_method() and | ||
| 48 | RAND_SSLeay() return pointers to the respective methods. | ||
| 49 | |||
| 50 | =head1 SEE ALSO | ||
| 51 | |||
| 52 | L<rand(3)|rand(3)> | ||
| 53 | |||
| 54 | =head1 HISTORY | ||
| 55 | |||
| 56 | RAND_set_rand_method(), RAND_get_rand_method() and RAND_SSLeay() are | ||
| 57 | available in all versions of OpenSSL. | ||
| 58 | |||
| 59 | =cut | ||
