zephyr/tests/crypto
Flavio Santes 6a3ca408cf tests/tinycrypt: Fix wrong sizeof argument in test_ccm_mode (2nd)
This commit fixes an issue in the test_ccm_mode.c file:

sizeof(data) is used to compute the length of the array pointed to
by the 'uint8_t *data' pointer.

At the same function scope, there is a variable (dlen) that already
specifies the required length, so we use that variable instead of
the 'sizeof' function call.

This issue was not reported by Coverity, although is worth to fix it.

Change-Id: I27cbf8c7000a4189a42d193f6445996d4b852aa6
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2016-11-18 01:05:32 +00:00
..
test_aes tests/tinycrypt/aes: Replace spaces by tabs 2016-11-18 00:27:23 +00:00
test_cbc_mode samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
test_ccm_mode tests/tinycrypt: Fix wrong sizeof argument in test_ccm_mode (2nd) 2016-11-18 01:05:32 +00:00
test_cmac_mode samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
test_ctr_mode samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
test_ctr_prng tinycrypt: Update CTR PRNG test case 2016-11-16 16:52:04 +00:00
test_ecc_dh samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
test_ecc_dsa tests/tinycrypt: Fix dead code issue (2nd) 2016-11-18 01:05:30 +00:00
test_hmac samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
test_hmac_prng test/tinycrypt: Solve style issues in test_hmac_prng 2016-11-18 00:31:10 +00:00
test_mbedtls samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
test_sha256 samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00