@@ -12,16 +12,16 @@ void md2_text(char *text_src_string, data_t *hash)
12
12
unsigned char src_str[100];
13
13
unsigned char output[16];
14
14
15
- memset(src_str, 0x00, sizeof src_str);
16
- memset(output, 0x00, sizeof output);
15
+ memset(src_str, 0x00, sizeof( src_str) );
16
+ memset(output, 0x00, sizeof( output) );
17
17
18
18
strncpy((char *) src_str, text_src_string, sizeof(src_str) - 1);
19
19
20
20
ret = mbedtls_md2_ret(src_str, strlen((char *) src_str), output);
21
21
TEST_ASSERT(ret == 0);
22
22
23
23
TEST_ASSERT(mbedtls_test_hexcmp(output, hash->x,
24
- sizeof output, hash->len) == 0);
24
+ sizeof( output) , hash->len) == 0);
25
25
}
26
26
/* END_CASE */
27
27
@@ -32,16 +32,16 @@ void md4_text(char *text_src_string, data_t *hash)
32
32
unsigned char src_str[100];
33
33
unsigned char output[16];
34
34
35
- memset(src_str, 0x00, sizeof src_str);
36
- memset(output, 0x00, sizeof output);
35
+ memset(src_str, 0x00, sizeof( src_str) );
36
+ memset(output, 0x00, sizeof( output) );
37
37
38
38
strncpy((char *) src_str, text_src_string, sizeof(src_str) - 1);
39
39
40
40
ret = mbedtls_md4_ret(src_str, strlen((char *) src_str), output);
41
41
TEST_ASSERT(ret == 0);
42
42
43
43
TEST_ASSERT(mbedtls_test_hexcmp(output, hash->x,
44
- sizeof output, hash->len) == 0);
44
+ sizeof( output) , hash->len) == 0);
45
45
}
46
46
/* END_CASE */
47
47
0 commit comments