boringssl/crypto/cipher
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
..
asm chacha20_poly1305_x86_64.pl: Suppress Yasm non-local label warnings. 2017-02-09 18:05:41 +00:00
test Add CAVP GCMVS Known Answer tests. 2017-04-21 17:59:25 +00:00
aead_test.cc Add test for truncated AEAD tags. 2017-01-20 21:45:47 +00:00
aead.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
cipher_test.cc Add AESVS KAT vectors (CBC and ECB only). 2017-04-12 22:50:23 +00:00
cipher.c Fix crashes in EVP_CIPHER if cipher_data was not allocated. 2017-02-17 01:11:14 +00:00
CMakeLists.txt Split AES-CTR-HMAC and AES-GCM-SIV from e_aes.c. 2017-04-11 17:21:32 +00:00
derive_key.c
e_aes.c Move modes/ into the FIPS module 2017-04-21 17:46:37 +00:00
e_aesctrhmac.c Split AES-CTR-HMAC and AES-GCM-SIV from e_aes.c. 2017-04-11 17:21:32 +00:00
e_aesgcmsiv.c Split AES-CTR-HMAC and AES-GCM-SIV from e_aes.c. 2017-04-11 17:21:32 +00:00
e_chacha20poly1305.c Test SSE4.1 before using ChaCha20-Poly1305 asm. 2017-02-03 16:46:26 +00:00
e_des.c Add support for 3DES-ECB. 2017-04-11 18:28:59 +00:00
e_null.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
e_rc2.c Fix up macros. 2016-10-18 18:28:23 +00:00
e_rc4.c Remove some easy obj.h dependencies. 2016-03-31 20:50:33 +00:00
e_ssl3.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
e_tls.c Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00
internal.h Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00
tls_cbc.c Switch constant-time functions to using |crypto_word_t|. 2017-04-21 22:06:05 +00:00