boringssl/crypto/modes
Aaron Green 136df6bd99 Fix implementation-specific behavior in gcm_test.c
gcm_test.c includes a test case that does a 'malloc(0)'. This test case
currently fails if malloc(0) returns NULL.  According to the standard,
malloc's behavior with a size of 0is implementation specific and may
either be NULL or another pointer suitable to be passed to free().  This
change modifies gcm_test.c to handle a return value of NULL.  It has
been tested with a custom allocator on an experimental branch.

Change-Id: I35514ec9735cedffc621f7dfae42b4c6664a1766
Reviewed-on: https://boringssl-review.googlesource.com/7122
Reviewed-by: Adam Langley <agl@google.com>
2016-02-26 22:17:35 +00:00
..
asm Unify AEAD and EVP code paths for AES-GCM. 2016-02-23 23:13:31 +00:00
cbc.c Fix the shared builders by exporting GCM symbols. 2015-10-26 23:26:40 +00:00
cfb.c Fix the shared builders by exporting GCM symbols. 2015-10-26 23:26:40 +00:00
CMakeLists.txt Add a run_tests target to run all tests. 2015-10-26 20:33:44 +00:00
ctr.c Fix trivial -Wcast-qual violations. 2016-01-21 21:06:02 +00:00
gcm_test.c Fix implementation-specific behavior in gcm_test.c 2016-02-26 22:17:35 +00:00
gcm.c Use correct counter after invoking stitched AES-NI GCM code. 2016-02-26 01:02:40 +00:00
internal.h Remove unused |ccm128_context| in crypto/modes/internal.h. 2016-02-24 21:08:21 +00:00
ofb.c Fix the shared builders by exporting GCM symbols. 2015-10-26 23:26:40 +00:00