Fix erroneous macro guards

Replace MBEDTLS_SHA256_C for PSA_WANT_ALG_SHA_256
everywhere, including comments and print statements.

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney 2023-07-28 14:21:38 +01:00
parent 1fd916a1a3
commit 2c872340e8

View file

@ -49,7 +49,7 @@ const size_t mbedtls_test_sha256_hash_len =
#if !defined(MBEDTLS_PSA_CRYPTO_C) || !defined(PSA_WANT_ALG_SHA_256)
int main(void)
{
mbedtls_printf("MBEDTLS_PSA_CRYPTO_C and MBEDTLS_SHA256_C"
mbedtls_printf("MBEDTLS_PSA_CRYPTO_C and PSA_WANT_ALG_SHA_256"
"not defined.\r\n");
return EXIT_SUCCESS;
}
@ -160,4 +160,4 @@ int main(void)
mbedtls_psa_crypto_free();
return EXIT_SUCCESS;
}
#endif /* MBEDTLS_PSA_CRYPTO_C && MBEDTLS_SHA256_C */
#endif /* MBEDTLS_PSA_CRYPTO_C && PSA_WANT_ALG_SHA_256 */