Rename test hash_finish_bad_paths to hash_finish_bad_args

Test dependency moved to .function file.
This commit is contained in:
itayzafrir 2018-11-01 11:58:59 +02:00
parent f86548d674
commit b2dd5ed1e6
2 changed files with 5 additions and 6 deletions

View File

@ -363,9 +363,8 @@ PSA hash verify: bad paths
depends_on:MBEDTLS_SHA256_C depends_on:MBEDTLS_SHA256_C
hash_verify_bad_paths: hash_verify_bad_paths:
PSA hash finish: bad paths PSA hash finish: bad arguments
depends_on:MBEDTLS_SHA256_C hash_finish_bad_args:
hash_finish_bad_paths:
PSA MAC setup: good, HMAC-SHA-256 PSA MAC setup: good, HMAC-SHA-256
depends_on:MBEDTLS_MD_C:MBEDTLS_SHA256_C depends_on:MBEDTLS_MD_C:MBEDTLS_SHA256_C

View File

@ -1655,11 +1655,11 @@ exit:
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:MBEDTLS_SHA256_C */
void hash_finish_bad_paths( ) void hash_finish_bad_args( )
{ {
psa_algorithm_t alg = PSA_ALG_SHA_256; 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 ); size_t expected_size = PSA_HASH_SIZE( alg );
psa_hash_operation_t operation; psa_hash_operation_t operation;
size_t hash_len; size_t hash_len;