From cced3521cbcb9e75cff305e796c194cce5e01715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 6 Feb 2023 12:37:02 +0100 Subject: [PATCH] Fix style in test_suite_md.function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- tests/suites/test_suite_md.function | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/suites/test_suite_md.function b/tests/suites/test_suite_md.function index 65aad13fcc..f117a2ce42 100644 --- a/tests/suites/test_suite_md.function +++ b/tests/suites/test_suite_md.function @@ -133,7 +133,7 @@ void md_text(int md_type, char *text_src_string, data_t *hash) { unsigned char *src = (unsigned char *) text_src_string; size_t src_len = strlen(text_src_string); - unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0}; + unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; const mbedtls_md_info_t *md_info = NULL; md_info = mbedtls_md_info_from_type(md_type); @@ -150,7 +150,7 @@ void md_text(int md_type, char *text_src_string, data_t *hash) /* BEGIN_CASE */ void md_hex(int md_type, data_t *src_str, data_t *hash) { - unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0}; + unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; const mbedtls_md_info_t *md_info = NULL; md_info = mbedtls_md_info_from_type(md_type); @@ -171,7 +171,7 @@ void md_text_multi(int md_type, char *text_src_string, { unsigned char *src = (unsigned char *) text_src_string; size_t src_len = strlen(text_src_string); - unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0}; + unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; size_t halfway; const mbedtls_md_info_t *md_info = NULL; @@ -218,7 +218,7 @@ exit: /* BEGIN_CASE */ void md_hex_multi(int md_type, data_t *src_str, data_t *hash) { - unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0}; + unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; const mbedtls_md_info_t *md_info = NULL; mbedtls_md_context_t ctx, ctx_copy; int halfway; @@ -266,7 +266,7 @@ void mbedtls_md_hmac(int md_type, int trunc_size, data_t *key_str, data_t *src_str, data_t *hash) { - unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0}; + unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; const mbedtls_md_info_t *md_info = NULL; md_info = mbedtls_md_info_from_type(md_type); @@ -274,7 +274,7 @@ void mbedtls_md_hmac(int md_type, int trunc_size, TEST_EQUAL(0, mbedtls_md_hmac(md_info, key_str->x, key_str->len, - src_str->x, src_str->len, output)); + src_str->x, src_str->len, output)); TEST_ASSERT(mbedtls_test_hexcmp(output, hash->x, trunc_size, hash->len) == 0); @@ -285,7 +285,7 @@ void mbedtls_md_hmac(int md_type, int trunc_size, void md_hmac_multi(int md_type, int trunc_size, data_t *key_str, data_t *src_str, data_t *hash) { - unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0}; + unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; const mbedtls_md_info_t *md_info = NULL; mbedtls_md_context_t ctx; int halfway; @@ -328,7 +328,7 @@ exit: void mbedtls_md_file(int md_type, char *filename, data_t *hash) { - unsigned char output[MBEDTLS_MD_MAX_SIZE] = {0}; + unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 }; const mbedtls_md_info_t *md_info = NULL; md_info = mbedtls_md_info_from_type(md_type);