boringssl/crypto
David Benjamin 9d4e06e6bc Switch some pointer casts to memcpy.
This isn't all of our pointer games by far, but for any code which
doesn't run on armv6, memcpy and pointer cast compile to the same code.
For code with does care about armv6 (do we care?), it'll need a bit more
work. armv6 makes memcpy into a function call.

Ironically, the one platform where C needs its alignment rules is the
one platform that makes it hard to honor C's alignment rules.

Change-Id: Ib9775aa4d9df9381995df8698bd11eb260aac58c
Reviewed-on: https://boringssl-review.googlesource.com/17707
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-07-11 02:02: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
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 Reduce the alignment tag on aead_aes_gcm_siv_asm_ctx. 2017-07-10 23:54:41 +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
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 Switch some pointer casts to memcpy. 2017-07-11 02:02: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
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
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
thread_test.cc Convert thread_test to GTest. 2017-06-05 22:30:35 +00:00
thread_win.c
thread.c