boringssl/crypto
Adam Langley 518ba0772b Switch constant-time functions to using |crypto_word_t|.
Using |size_t| was correct, except for NaCl, which is a 64-bit build
with 32-bit pointers. In that configuration, |size_t| is smaller than
the native word size.

This change adds |crypto_word_t|, an unsigned type with native size and
switches constant-time functions to using it.

Change-Id: Ib275127063d5edbb7c55d413132711b7c74206b0
Reviewed-on: https://boringssl-review.googlesource.com/15325
Reviewed-by: Adam Langley <agl@google.com>
2017-04-21 22:06:05 +00:00
..
asn1 Fix potential memory leak in ASN1_TIME_to_generalizedtime() 2017-03-21 18:10:51 +00:00
base64 Convert base64_test to GTest. 2017-04-17 14:14:17 +00:00
bio Convert bio_test to GTest. 2017-03-21 17:39:57 +00:00
bn Move much of rand/ into the FIPS module. 2017-04-21 22:03:18 +00:00
buf
bytestring Convert bytestring_test to GTest. 2017-04-17 14:19:47 +00:00
chacha x86_64 assembly pack: Win64 SEH face-lift. 2017-02-16 21:55:04 +00:00
cipher Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00
cmac
conf Fix out-of-memory condition in conf. 2017-03-21 16:19:22 +00:00
curve25519 Add the start of standalone iOS build support. 2017-04-07 17:13:44 +00:00
des
dh Remove direct calls to BN_mod_exp. 2017-02-28 18:00:02 +00:00
digest_extra First part of the FIPS module. 2017-04-07 00:05:34 +00:00
dsa Add a common TestEventListener for the error queue. 2017-02-07 21:33:22 +00:00
ec Align BN_rand_range_ex with FIPS 186-4. 2017-04-14 19:49:49 +00:00
ecdh
ecdsa Fix ECDSA signing for FIPS compliance. 2017-04-13 16:43:52 +00:00
engine
err Move PKCS#7 functions into their own directory. 2017-04-19 17:24:51 +00:00
evp Unwind multiprime RSA support. 2017-04-12 23:14:57 +00:00
fipsmodule Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00
hkdf
hmac_extra First part of the FIPS module. 2017-04-07 00:05:34 +00:00
lhash
obj Teach crypto/x509 how to verify an Ed25519 signature. 2017-04-05 23:35:30 +00:00
pem
perlasm Gate assembly sources on !OPENSSL_NO_ASM. 2017-03-30 19:34:21 +00:00
pkcs7 Add PKCS7_get_raw_certificates. 2017-04-19 17:30:31 +00:00
pkcs8 First part of the FIPS module. 2017-04-07 00:05:34 +00:00
poly1305 Fix Android build. 2017-04-07 17:33:24 +00:00
pool
rand_extra Move much of rand/ into the FIPS module. 2017-04-21 22:03:18 +00:00
rc4
rsa Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00
stack
test Convert base64_test to GTest. 2017-04-17 14:14:17 +00:00
x509 Move PKCS#7 functions into their own directory. 2017-04-19 17:24:51 +00:00
x509v3 Fix a crash in print_notice. 2017-03-21 14:50:26 +00:00
CMakeLists.txt Move much of rand/ into the FIPS module. 2017-04-21 22:03:18 +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
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 Be less clever about .rel.ro avoidance. 2017-04-07 15:20:26 +00:00
ex_data.c Fix CRYPTO_dup_ex_data. 2017-04-04 18:21:49 +00:00
internal.h Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00
mem.c
refcount_c11.c
refcount_lock.c
refcount_test.cc
thread_none.c
thread_pthread.c
thread_test.c Move much of rand/ into the FIPS module. 2017-04-21 22:03:18 +00:00
thread_win.c
thread.c