mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 23:35:43 +01:00
Rename test hash_finish_bad_paths to hash_finish_bad_args
Test dependency moved to .function file.
This commit is contained in:
parent
f86548d674
commit
b2dd5ed1e6
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user