From b2dd5ed1e62f932fb6750fe89c1cdc02b24163d6 Mon Sep 17 00:00:00 2001 From: itayzafrir Date: Thu, 1 Nov 2018 11:58:59 +0200 Subject: [PATCH] Rename test hash_finish_bad_paths to hash_finish_bad_args Test dependency moved to .function file. --- tests/suites/test_suite_psa_crypto.data | 5 ++--- tests/suites/test_suite_psa_crypto.function | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/suites/test_suite_psa_crypto.data b/tests/suites/test_suite_psa_crypto.data index 45ce896fc7..071d6f39fe 100644 --- a/tests/suites/test_suite_psa_crypto.data +++ b/tests/suites/test_suite_psa_crypto.data @@ -363,9 +363,8 @@ PSA hash verify: bad paths depends_on:MBEDTLS_SHA256_C hash_verify_bad_paths: -PSA hash finish: bad paths -depends_on:MBEDTLS_SHA256_C -hash_finish_bad_paths: +PSA hash finish: bad arguments +hash_finish_bad_args: PSA MAC setup: good, HMAC-SHA-256 depends_on:MBEDTLS_MD_C:MBEDTLS_SHA256_C diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function index a6ab78ede4..305e95da78 100644 --- a/tests/suites/test_suite_psa_crypto.function +++ b/tests/suites/test_suite_psa_crypto.function @@ -1655,11 +1655,11 @@ exit: } /* END_CASE */ -/* BEGIN_CASE */ -void hash_finish_bad_paths( ) +/* BEGIN_CASE depends_on:MBEDTLS_SHA256_C */ +void hash_finish_bad_args( ) { psa_algorithm_t alg = PSA_ALG_SHA_256; - unsigned char hash[PSA_HASH_MAX_SIZE] = { 0 }; + unsigned char hash[PSA_HASH_MAX_SIZE]; size_t expected_size = PSA_HASH_SIZE( alg ); psa_hash_operation_t operation; size_t hash_len;