summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arc4random/getentropy_osx.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* For open/openat, if the flags parameter does not contain O_CREAT, thederaadt2021-10-241-2/+2
| | | | | | | | | | | | | 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
* As done everywhere else, use a local version of MINIMUM() and avoidderaadt2020-05-171-4/+4
| | | | conflict against a potential define min() from some other scope.
* Saw a mention somewhere a while back that the gotdata() function inderaadt2018-11-201-28/+5
| | | | | | | | here could creates non-uniformity since very short fetches of 0 would be excluded. blocks of 0 are just as random as any other data, including blocks of 4 4 4.. This is a misguided attempt to identify errors from the entropy churn/gather code doesn't make sense, errors don't happen. ok bcook
* add iOS support for getentropybcook2016-09-031-1/+12
| | | | from Jacob Berkman, ok beck@
* Update the link for the getentropy(2) manual to man.openbsd.org/tb2016-08-071-2/+2
| | | | ok deraadt@
* unify files furtherderaadt2015-09-111-8/+8
|
* Use explicit_bzero() instead of memset() on buffers going out of scope.guenther2014-07-211-2/+3
| | | | | | | Also, zero the SHA256 context. suggested by "eric" in a comment on an opensslrampage.org post ok miod@ deraadt@
* remove disabled main hook; we use phdr now; ok bcookderaadt2014-07-191-7/+1
|
* Provide a link to the canonical API specification.deraadt2014-07-131-1/+4
| | | | ok beck
* Take away the use of the address of main as a source of entropy. Causesbeck2014-07-131-1/+5
| | | | | | distractions to people testing and seeing link errors in some setups. This will come back in another form ok deraadt@
* Remove signed/unsigned warning, statement before declaration andwouter2014-07-121-9/+10
| | | | | | add a function to use function pointers that does not take sizeof(fptr). OK beck@
* remove gratuitous differences, ok beckderaadt2014-07-121-39/+40
|
* remove unused variables getentropy for OS Xbcook2014-07-091-3/+3
| | | | ok beck@
* getentropy for osx and solaris. will be needed for a portable releasebeck2014-07-081-0/+425