Skip to content

Commit 303d0f0

Browse files
committed
SPE: fix inject entropy macro
Use new TLS macro
1 parent eebc1b9 commit 303d0f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_partition.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ static void psa_entropy_operation(void)
14531453
}
14541454

14551455
case PSA_IPC_CALL: {
1456-
#if (defined(MBEDTLS_ENTROPY_NV_SEED) && defined(MBEDTLS_PSA_HAS_ITS_IO))
1456+
#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
14571457
unsigned char *seed = NULL;
14581458
uint32_t bytes_read;
14591459
size_t seed_size = msg.in_size[0];
@@ -1479,7 +1479,7 @@ static void psa_entropy_operation(void)
14791479
mbedtls_free(seed);
14801480
#else
14811481
status = PSA_ERROR_NOT_SUPPORTED;
1482-
#endif /* MBEDTLS_ENTROPY_NV_SEED && MBEDTLS_PSA_HAS_ITS_IO*/
1482+
#endif /* MBEDTLS_PSA_INJECT_ENTROPY */
14831483
break;
14841484
}
14851485

0 commit comments

Comments
 (0)