boringssl/crypto/ec
David Benjamin 17cf2cb1d2 Work around language and compiler bug in memcpy, etc.
Most C standard library functions are undefined if passed NULL, even
when the corresponding length is zero. This gives them (and, in turn,
all functions which call them) surprising behavior on empty arrays.
Some compilers will miscompile code due to this rule. See also
https://www.imperialviolet.org/2016/06/26/nonnull.html

Add OPENSSL_memcpy, etc., wrappers which avoid this problem.

BUG=23

Change-Id: I95f42b23e92945af0e681264fffaf578e7f8465e
Reviewed-on: https://boringssl-review.googlesource.com/12928
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
2016-12-21 20:34:47 +00:00
..
asm ec/ecp_nistz256: harmonize is_infinity with ec_GFp_simple_is_at_infinity. 2016-11-16 18:16:54 +00:00
CMakeLists.txt Depend all_tests on p256-x86_64_test. 2016-11-17 02:56:51 +00:00
ec_asn1.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ec_key.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ec_montgomery.c Be -Wnewline-eof clean. 2016-08-29 19:15:19 +00:00
ec_test.cc ec/ecp_nistz256: harmonize is_infinity with ec_GFp_simple_is_at_infinity. 2016-11-16 18:16:54 +00:00
ec.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
example_mul.c Remove some easy obj.h dependencies. 2016-03-31 20:50:33 +00:00
internal.h Don't use function wrappers for EC_METHOD. 2016-08-16 19:27:52 +00:00
oct.c Fix error code for unreduced x. 2016-11-29 00:55:04 +00:00
p224-64.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
p256-64.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
p256-x86_64_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
p256-x86_64_tests.txt ec/ecp_nistz256: harmonize is_infinity with ec_GFp_simple_is_at_infinity. 2016-11-16 18:16:54 +00:00
p256-x86_64-table.h
p256-x86_64.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
p256-x86_64.h Add low-level p256-x86_64 tests. 2016-11-15 17:05:01 +00:00
simple.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
util-64.c Remove unused code for multiple-point ECC multiplication. 2016-03-09 19:47:19 +00:00
wnaf.c signed char => int8_t. 2016-11-29 01:03:52 +00:00