boringssl/crypto
David Benjamin 7d53638872 Use __NR_getrandom rather than SYS_getrandom.
The former is defined by the kernel and is a straightforward number. The
latter is defined by glibc as:

  #define SYS_getrandom __NR_getrandom

which does not work when kernel headers are older than glibc headers.
Instead, use the kernel values.

Bug: chromium:742260
Change-Id: Id162f125db660643269e0b1329633437048575c4
Reviewed-on: https://boringssl-review.googlesource.com/17864
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-07-18 16:28:41 +00:00
..
asn1 Remove some dead code from crypto/asn1. 2017-06-09 19:58:38 +00:00
base64 Optimize constant-time base64 implementation slightly. 2017-05-17 23:11:47 +00:00
bio Test with IPv6 by default, and IPv4 only if that fails. 2017-05-25 23:49:52 +00:00
bn_extra Move bn/ into crypto/fipsmodule/ 2017-05-01 22:51:25 +00:00
buf Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
bytestring Convert bytestring_test to GTest. 2017-04-17 14:19:47 +00:00
chacha Fix chacha-armv4.pl with clang -fno-integrated-as. 2017-06-28 13:35:29 +00:00
cipher_extra Enable extra_in with the ChaCha20-Poly1305 AEAD. 2017-07-14 22:13:25 +00:00
cmac Convert cmac_test to GTest. 2017-04-24 20:25:22 +00:00
conf Fix out-of-memory condition in conf. 2017-03-21 16:19:22 +00:00
curve25519 Improve Curve25519 cswap x64 assembly 2017-05-23 22:51:48 +00:00
dh Remove ex_data's dup hook. 2017-05-23 22:43:59 +00:00
digest_extra Convert digest_test to GTest. 2017-05-18 14:50:06 +00:00
dsa Remove ex_data's dup hook. 2017-05-23 22:43:59 +00:00
ec_extra Remove some unnecessary indirections. 2017-06-21 21:29:38 +00:00
ecdh Convert a number of tests to GTest. 2017-06-01 17:02:13 +00:00
ecdsa_extra Tidy up FIPS module dependencies. 2017-05-05 23:10:24 +00:00
engine Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
err Detect WatchGuard's TLS 1.3 interference failure mode. 2017-06-22 19:49:23 +00:00
evp Unify RSA errors somewhat. 2017-07-06 22:16:17 +00:00
fipsmodule Use __NR_getrandom rather than SYS_getrandom. 2017-07-18 16:28:41 +00:00
hkdf Convert various tests to GTest. 2017-05-23 22:34:09 +00:00
hmac_extra Convert a number of tests to GTest. 2017-06-01 17:02:13 +00:00
lhash Convert various tests to GTest. 2017-05-23 22:34:09 +00:00
obj Align EVP_PKEY Ed25519 API with upstream. 2017-06-12 12:04:11 +00:00
pem Delete some dead code from crypto/x509. 2017-06-09 19:58:08 +00:00
perlasm Sync ARM assembly up to 609b0852e4d50251857dbbac3141ba042e35a9ae. 2017-06-13 17:47:20 +00:00
pkcs7 Move pkcs{7,8}_test over to gtest 2017-06-02 16:53:41 +00:00
pkcs8 Convert remaining pkcs8 tests to gtest 2017-06-07 17:30:27 +00:00
poly1305 Convert a number of tests to GTest. 2017-06-01 17:02:13 +00:00
pool Convert various tests to GTest. 2017-05-23 22:34:09 +00:00
rand_extra fuchsia: Use new spelling of NO_ERROR. 2017-06-16 17:01:32 +00:00
rc4
rsa_extra Don't crash when decrypting with public keys. 2017-06-22 15:20:15 +00:00
stack Convert stack.h to use inline functions. 2017-05-22 15:06:04 +00:00
test Make AES-GCM AEADs support the optional second input argument to seal_scatter. 2017-06-27 23:39:48 +00:00
x509 Sync asn1_gen.c with upstream 1.0.2. 2017-07-05 21:37:08 +00:00
x509v3 Convert the tests in x509v3 to GTest. 2017-07-10 19:05:04 +00:00
CMakeLists.txt Convert the tests in x509v3 to GTest. 2017-07-10 19:05:04 +00:00
compiler_test.cc Fix build on android_aarch64. 2017-04-21 22:52:10 +00:00
constant_time_test.cc Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00
cpu-aarch64-linux.c
cpu-arm-linux.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
cpu-arm.c
cpu-intel.c
cpu-ppc64le.c Make the POWER hardware capability value a global in crypto.c. 2017-04-04 18:19:19 +00:00
crypto.c Set static armcaps based on __ARM_FEATURE_CRYPTO. 2017-06-09 00:29:10 +00:00
ex_data.c Remove ex_data's dup hook. 2017-05-23 22:43:59 +00:00
internal.h Remove ex_data's dup hook. 2017-05-23 22:43:59 +00:00
mem.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
refcount_c11.c
refcount_lock.c
refcount_test.cc Convert various tests to GTest. 2017-05-23 22:34:09 +00:00
thread_none.c
thread_pthread.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
thread_test.cc Convert thread_test to GTest. 2017-06-05 22:30:35 +00:00
thread_win.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
thread.c Remove a bunch of unnecessary includes. 2016-06-28 20:31:14 +00:00