Update w.r.t. test macro name changes from #6253
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
c98f8d996a
commit
4dd89310e9
1 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ void mbedtls_ct_zeroize_if(char *c_str, int len)
|
||||||
uint8_t *buf = NULL;
|
uint8_t *buf = NULL;
|
||||||
mbedtls_ct_condition_t c = mbedtls_ct_bool(strtoull(c_str, NULL, 16));
|
mbedtls_ct_condition_t c = mbedtls_ct_bool(strtoull(c_str, NULL, 16));
|
||||||
|
|
||||||
ASSERT_ALLOC(buf, len);
|
TEST_CALLOC(buf, len);
|
||||||
for (size_t i = 0; i < (size_t) len; i++) {
|
for (size_t i = 0; i < (size_t) len; i++) {
|
||||||
buf[i] = 1;
|
buf[i] = 1;
|
||||||
}
|
}
|
||||||
|
@ -321,8 +321,8 @@ void mbedtls_ct_memmove_left(int len, int offset)
|
||||||
size_t o = (size_t) offset;
|
size_t o = (size_t) offset;
|
||||||
|
|
||||||
uint8_t *buf = NULL, *buf_expected = NULL;
|
uint8_t *buf = NULL, *buf_expected = NULL;
|
||||||
ASSERT_ALLOC(buf, l);
|
TEST_CALLOC(buf, l);
|
||||||
ASSERT_ALLOC(buf_expected, l);
|
TEST_CALLOC(buf_expected, l);
|
||||||
|
|
||||||
for (size_t i = 0; i < l; i++) {
|
for (size_t i = 0; i < l; i++) {
|
||||||
buf[i] = (uint8_t) i;
|
buf[i] = (uint8_t) i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue