Skip to content

Commit e65361c

Browse files
committed
change MBEDTLS_RANDOM_SEED_ITS_UID define to be PSA_CRYPTO_ITS_RANDOM_SEED_UID
1 parent bbd93fe commit e65361c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

features/mbedtls/platform/TARGET_PSA/COMPONENT_PSA_SRV_IMPL/src/default_random_seed.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ int mbed_default_seed_read(unsigned char *buf, size_t buf_len)
77
{
88
struct psa_its_info_t info = {0, 0};
99
size_t actual_size = buf_len;
10-
psa_its_get_info(MBED_RANDOM_SEED_ITS_UID, &info);
10+
psa_its_get_info(PSA_CRYPTO_ITS_RANDOM_SEED_UID, &info);
1111
if (info.size < buf_len)
1212
{
1313
actual_size = info.size;
1414
}
15-
psa_its_status_t rc = psa_its_get(MBED_RANDOM_SEED_ITS_UID, 0, actual_size, buf);
15+
psa_its_status_t rc = psa_its_get(PSA_CRYPTO_ITS_RANDOM_SEED_UID, 0, actual_size, buf);
1616
/* Make sure that in case of an error the value will be negative
1717
* Mbed TLS errors are negative values */
1818
rc = rc < 0 ? rc : (-1 * rc);
@@ -21,7 +21,7 @@ int mbed_default_seed_read(unsigned char *buf, size_t buf_len)
2121

2222
int mbed_default_seed_write(unsigned char *buf, size_t buf_len)
2323
{
24-
psa_its_status_t rc = psa_its_set(MBED_RANDOM_SEED_ITS_UID, buf_len, buf, 0);
24+
psa_its_status_t rc = psa_its_set(PSA_CRYPTO_ITS_RANDOM_SEED_UID, buf_len, buf, 0);
2525
/* Make sure that in case of an error the value will be negative
2626
* Mbed TLS errors are negative values */
2727
rc = rc < 0 ? rc : (-1 * rc);

0 commit comments

Comments
 (0)