mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
We want the PSA hash code if MBEDTLS_PSA_CRYPTO_CLIENT && !MBEDTLS_PSA_CRYPTO_C
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
@@ -30,11 +30,12 @@
|
|||||||
* If you switch to a different algorithm you will need to update
|
* If you switch to a different algorithm you will need to update
|
||||||
* the hash data in the EXAMPLE_HASH_VALUE macro below. */
|
* the hash data in the EXAMPLE_HASH_VALUE macro below. */
|
||||||
|
|
||||||
#if !defined(MBEDTLS_PSA_CRYPTO_C) || !defined(PSA_WANT_ALG_SHA_256)
|
#if !defined(MBEDTLS_PSA_CRYPTO_CLIENT) && \
|
||||||
|
(!defined(MBEDTLS_PSA_CRYPTO_C) || !defined(PSA_WANT_ALG_SHA_256))
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
mbedtls_printf("MBEDTLS_PSA_CRYPTO_C and PSA_WANT_ALG_SHA_256"
|
mbedtls_printf("MBEDTLS_PSA_CRYPTO_C and PSA_WANT_ALG_SHA_256"
|
||||||
"not defined.\r\n");
|
"not defined, and not MBEDTLS_PSA_CRYPTO_CLIENT.\r\n");
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@@ -32,11 +32,12 @@
|
|||||||
* If you switch to a different algorithm you will need to update
|
* If you switch to a different algorithm you will need to update
|
||||||
* the hash data in the EXAMPLE_HASH_VALUE macro below. */
|
* the hash data in the EXAMPLE_HASH_VALUE macro below. */
|
||||||
|
|
||||||
#if !defined(MBEDTLS_PSA_CRYPTO_C) || !defined(PSA_WANT_ALG_SHA_256)
|
#if !defined(MBEDTLS_PSA_CRYPTO_CLIENT) && \
|
||||||
|
(!defined(MBEDTLS_PSA_CRYPTO_C) || !defined(PSA_WANT_ALG_SHA_256))
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
mbedtls_printf("MBEDTLS_PSA_CRYPTO_C and PSA_WANT_ALG_SHA_256"
|
mbedtls_printf("MBEDTLS_PSA_CRYPTO_C and PSA_WANT_ALG_SHA_256"
|
||||||
"not defined.\r\n");
|
"not defined, and not MBEDTLS_PSA_CRYPTO_CLIENT.\r\n");
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user