@@ -7,12 +7,12 @@ int mbed_default_seed_read(unsigned char *buf, size_t buf_len)
7
7
{
8
8
struct psa_its_info_t info = {0 , 0 };
9
9
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);
11
11
if (info.size < buf_len)
12
12
{
13
13
actual_size = info.size ;
14
14
}
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);
16
16
/* Make sure that in case of an error the value will be negative
17
17
* Mbed TLS errors are negative values */
18
18
rc = rc < 0 ? rc : (-1 * rc);
@@ -21,7 +21,7 @@ int mbed_default_seed_read(unsigned char *buf, size_t buf_len)
21
21
22
22
int mbed_default_seed_write (unsigned char *buf, size_t buf_len)
23
23
{
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 );
25
25
/* Make sure that in case of an error the value will be negative
26
26
* Mbed TLS errors are negative values */
27
27
rc = rc < 0 ? rc : (-1 * rc);
0 commit comments