boringssl/crypto/curve25519
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 Add #ifdef guards to crypto/curve25519 assembly files. 2016-02-02 16:03:33 +00:00
CMakeLists.txt Add SPAKE2 over Ed25519. 2016-03-01 19:34:10 +00:00
curve25519.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ed25519_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ed25519_tests.txt Add X25519 and Ed25519 support. 2015-11-17 21:56:12 +00:00
internal.h Add SPAKE2 over Ed25519. 2016-03-01 19:34:10 +00:00
spake25519_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
spake25519.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
x25519_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
x25519-x86_64.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00