summaryrefslogtreecommitdiff
path: root/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c
AgeCommit message (Collapse)AuthorLines
4 daysRelease tarball libsodium.tar.gz (dist-generated files / local differences ↵HEADlocal/libsodiummasterbeatrice-1/+17
from tag)
2023-09-12IndentFrank Denis-1/+0
2020-11-08DragonFlyBSD supports getrandom too since 5.7David CARLIER-2/+3
2019-05-301.0.181.0.18-RELEASEFrank Denis-9/+12
2019-03-26Trust another safe arc4random() implementationFrank Denis-1/+1
2018-11-11LONG_LONG_* -> LLONG_*Frank Denis-3/+3
2018-09-30Add getrandom(2) support for FreeBSD 12Frank Denis-39/+50
2018-09-29Revert "Add getrandom(2) support for FreeBSD 12"Frank Denis-15/+8
This reverts commit 52fdd7ab3903f14c1160e789cd1070f08cb60c2a. Due to TinyC crashing.
2018-09-29Revert "TinyC now crashes on Travis when compiling sysrandom"Frank Denis-1/+1
This reverts commit 44dccfe6d42ab916a9bde5199ef29e382a623c9e.
2018-09-29TinyC now crashes on Travis when compiling sysrandomFrank Denis-1/+1
2018-09-29Add getrandom(2) support for FreeBSD 12Frank Denis-8/+15
Fixes #762
2017-09-13Don't return voidFrank Denis-1/+1
2017-08-16+ FirefoxFrank Denis-2/+2
2017-08-16Some notes about RtlGenRandomFrank Denis-0/+9
2017-08-01Include private/common.h for COMPILER_ASSERTFrank Denis-0/+1
2017-07-29Introduce *_BYTES_MAX constantsFrank Denis-1/+2
*_BYTES_MAX constants constants represent the maximum size of a message. No accessor functions for now. They will be renamed, as the *_BYTES_MAX suffix was previously also used for the maximum output size of stream ciphers. These macros are designed to be used by language bindings, so they can perform some sanity checks before calling the sodium API.
2017-07-23IndentFrank Denis-1/+1
2017-07-19Remove error string from sodium_misuse()Frank Denis-5/+5
Returning the name of an internal function to bindings is useless. They need way more context to recover from these errors, and their own backtrace will be way more useful for diagnostics.
2017-07-16Start replacing abort() with an internal sodium_misuse() functionFrank Denis-5/+6
This function will eventually be able to call a user-defined hook, that may be useful to people writing bindings for other languages. The function will not return, though, and will keep calling abort() after the hook. So, hooks should not return either. They should gracefully kill the current process or thread instead. There are many more abort() instances to replace. This is long and boring.
2017-03-12Avoid useless comparisonsFrank Denis-1/+3
2017-03-02Reorder includesFrank Denis-10/+10
This restores compatibility with CompCert
2017-01-18IndentFrank Denis-9/+9
2017-01-18Use getrandom() on dietlibc -- via Felix von LeitnerFrank Denis-1/+9
2016-09-20add preprocessor flag to skip blocking /dev/random during libsodium init (#429)Robert Spychala-2/+2
2016-06-15NitsFrank Denis-2/+2
2016-06-15document why RtlGenRandom is usedAaron Zauner-0/+6
2016-05-15On ancient Linux kernels, block on /dev/random before using /dev/urandomFrank Denis-0/+33
2016-04-14Do not use getrandom(2) on SLES11 service pack 4Frank Denis-4/+4
2015-11-21Limit safe_read() to SSIZE_MAX bytesFrank Denis-0/+5
2015-11-19Mark randombytes_implementation functions staticFrank Denis-18/+18
2015-11-01FormatFrank Denis-7/+7
2015-10-26CompCert compatibilityFrank Denis-2/+4
2015-10-14S_IFNAM -> S_ISNAM (for QNX)Frank Denis-2/+2
2015-10-05/dev/urandom can be a name special file in addition to a character special fileFrank Denis-1/+7
2015-09-13randombytes: use arc4random(3) on OpenBSD and CloudABIFrank Denis-1/+5
2015-03-09Use getrandom(2) on Linux, if available.Frank Denis-8/+76
2015-03-09IndentationFrank Denis-2/+2
2015-01-18Factorize randombytes_uniform()Frank Denis-30/+2
Don't require randombytes implementations to reimplement this. NULL can be passed instead of a function pointer to use the default implementation. Allow NULL for randombytes_stir() and randombytes_close() as well.
2015-01-17Do not require /dev/urandom emulation in Javascript any more.Frank Denis-5/+3
2014-12-25Retry if open(2) is interrupted; set the CLOEXEC flag as well.Frank Denis-2/+9
Also retry if read(2) returns EAGAIN. This shouldn't happen in blocking mode, but it can't hurt either.
2014-11-20Add explicit size_t conversions.Frank Denis-1/+1
2014-10-06Make include guards consistent, and avoid reserved identifiers.Frank Denis-8/+8
2014-09-16More testsFrank Denis-1/+1
2014-09-16More lcov exclusions.Frank Denis-3/+3
poly1305 optimized implementations will come after 1.0.
2014-09-14Coverage exclusion when relevantFrank Denis-4/+6
2014-06-15Use RtlGenRandom() instead of CryptGenRandom() on WindowsFrank Denis-11/+8
2014-06-09Remove useless access() before open()Frank Denis-2/+1
2014-06-09Add annotations for Coverity FPsFrank Denis-0/+1
2014-05-10Use explicitly Unicode Win32 APIs.evoskuil-2/+2
2014-05-05Ensure that /dev/urandom is a char device.Frank Denis-4/+11