From 4a0a989913d5f0df1b643fb27fae43ccec3f456e Mon Sep 17 00:00:00 2001 From: Waleed Elmelegy Date: Fri, 4 Aug 2023 11:39:01 +0100 Subject: [PATCH] Fix unused parameters warnings when MBEDTLS_CIPHER_PADDING_PKCS7 is disabled Signed-off-by: Waleed Elmelegy --- tests/suites/test_suite_pkcs5.function | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/suites/test_suite_pkcs5.function b/tests/suites/test_suite_pkcs5.function index 05ce1db85..47de85e54 100644 --- a/tests/suites/test_suite_pkcs5.function +++ b/tests/suites/test_suite_pkcs5.function @@ -39,8 +39,9 @@ void pbes2_encrypt(int params_tag, data_t *params_hex, data_t *pw, size_t my_out_len = 0; #endif MD_PSA_INIT(); - /* This parameter is only used when MBEDTLS_CIPHER_PADDING_PKCS7 is enabled */ + /* Those parameters are only used when MBEDTLS_CIPHER_PADDING_PKCS7 is enabled */ (void) ref_out_len; + (void) outsize; params.tag = params_tag; params.p = params_hex->x; @@ -88,8 +89,9 @@ void mbedtls_pkcs5_pbes2(int params_tag, data_t *params_hex, data_t *pw, #endif MD_PSA_INIT(); - /* This parameter is only used when MBEDTLS_CIPHER_PADDING_PKCS7 is enabled */ + /* Those parameters are only used when MBEDTLS_CIPHER_PADDING_PKCS7 is enabled */ (void) ref_out_len; + (void) outsize; params.tag = params_tag;