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
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
internal.h
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
simple.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
util-64.c
wnaf.c signed char => int8_t. 2016-11-29 01:03:52 +00:00