/*++ /* NAME /* tls_prng_file 3 /* SUMMARY /* seed OpenSSL PRNG from entropy file /* SYNOPSIS /* #include <tls_prng_src.h> /* /* TLS_PRNG_SRC *tls_prng_file_open(name, timeout) /* const char *name; /* int timeout; /* /* ssize_t tls_prng_file_read(fh, length) /* TLS_PRNG_SRC *fh; /* size_t length; /* /* int tls_prng_file_close(fh) /* TLS_PRNG_SRC *fh; /* DESCRIPTION /* tls_prng_file_open() open the specified file and returns /* a handle that should be used with all subsequent access. /* /* tls_prng_file_read() reads the requested number of bytes from /* the entropy file and updates the OpenSSL PRNG. The file is not /* locked for shared or exclusive access. /* /* tls_prng_file_close() closes the specified entropy file /* and releases memory that was allocated for the handle. /* /* Arguments: /* .IP name /* The pathname of the entropy file. /* .IP length /* The number of bytes to read from the entropy file. /* .IP timeout /* Time limit on individual I/O operations. /* DIAGNOSTICS /* tls_prng_file_open() returns a null pointer on error. /* /* tls_prng_file_read() returns -1 on error, the number /* of bytes received on success. /* /* tls_prng_file_close() returns -1 on error, 0 on success. /* /* In all cases the errno variable indicates the type of error. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.