summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/arc4random/getentropy_linux.c
AgeCommit message (Expand)AuthorFilesLines
2020-05-17As done everywhere else, use a local version of MINIMUM() and avoidderaadt1-5/+5
2018-11-20Saw a mention somewhere a while back that the gotdata() function inderaadt1-32/+7
2018-03-13ensure SYS_getrandom and GRND_NONBLOCK are both defined before using getrandom(2)bcook1-4/+4
2017-04-29Switch Linux getrandom() usage to non-blocking mode, continuing tobeck1-6/+9
2016-08-07Update the link for the getentropy(2) manual to man.openbsd.org/tb1-2/+2
2016-04-19fix typo in comment; ok becktj1-2/+2
2015-09-11unify files furtherderaadt1-10/+10
2015-08-25unify versions, so they are easier to diff.deraadt1-2/+2
2015-06-13Remove unneeded sys/sysctl.h on linux.bcook1-2/+1
2015-04-27Not all Linux libc's include linux/sysctl.h in sys/sysctl.h.bcook1-2/+3
2015-03-22sys/sysctl.h includes linux/sysctl.h, remove the extra unchecked includebcook1-2/+1
2014-10-11include header needed by older linux kernelsbcook1-1/+2
2014-08-28preserve errno value on success.bcook1-4/+6
2014-08-16only build the getrandom path if SYS_getrandom is defined.bcook1-3/+7
2014-08-16getrandom(2) support for getentropy_linuxbcook1-13/+10
2014-07-22better match proposed syscall apibcook1-8/+2
2014-07-21protect sysctl path with SYS__sysctl instead; from enh@google, ok bcookderaadt1-6/+6
2014-07-21Use explicit_bzero() instead of memset() on buffers going out of scope.guenther1-2/+3
2014-07-21cast from void * before math; enh@googlederaadt1-2/+2
2014-07-20Demonstrate how new linux getrandom() will be called, at least untilderaadt1-1/+37
2014-07-19remove disabled main hook; we use phdr now; ok bcookderaadt1-7/+1
2014-07-19tab lovederaadt1-3/+3
2014-07-16Only call getauxval(3) if HAVE_GETAUXVAL is defined. Fixes build on olderkettenis1-1/+3
2014-07-13Use dl_iterate_phdr() to iterate over the segments and throw the addressesderaadt1-1/+14
2014-07-13Provide a link to the canonical API specification.deraadt1-1/+4
2014-07-13Take away the use of the address of main as a source of entropy. Causesbeck1-1/+5
2014-07-12Remove signed/unsigned warning, statement before declaration andwouter1-11/+12
2014-07-12guard inclusion of sys/sysctl.h so we can detect at compile time andbeck1-1/+3
2014-07-12remove gratuitous differences, ok beck bcookderaadt1-6/+6
2014-07-08fix oops, accidental delete.. darn copying of files between machinesbeck1-2/+2
2014-07-08j should be an int, like repeatbeck1-3/+4
2014-07-08unbreak last commit - but same intent, make re-seed less expensivebeck1-12/+16
2014-07-08repeat calls to getentrypy() with the same pid likely indicate reseeds.deraadt1-3/+10
2014-06-26fix HD() misuse; from brent cookderaadt1-2/+2
2014-06-25AT_BASE returns us the *address* of the start of ld.so, sobeck1-2/+2
2014-06-25get the page of data at AT_SYSINFO_EHDRbeck1-2/+2
2014-06-25comment fixes from theobeck1-5/+6
2014-06-25Possibly obtain a little bit of entropy from addresses returnedbeck1-2/+23
2014-06-25O_NOFOLLOW would be very nice to have here if the version of linuxbeck1-10/+11
2014-06-23unbreak build of getentropy_sysctl - we need linux/sysctl.h, andbeck1-18/+21
2014-06-23unbreak - main needs to be extern in here somewhere.beck1-1/+2
2014-06-21repair indentation for an inner loop; shorten some macros and variablederaadt1-127/+133
2014-06-21hash in correct pointerderaadt1-2/+2
2014-06-20KNFbeck1-48/+56
2014-06-20indentderaadt1-2/+2
2014-06-20rearrange so that the main function with the important comments is at the topotto1-78/+80
2014-06-20Work in progress on how to deal with the inherit unreliability ofbeck1-0/+439