1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/psa_crypto: allow repeated calls to psa_crypto_init()

as defined per https://armmbed.github.io/mbed-crypto/html/api/library/library.html?highlight=psa_crypto_init#c.psa_crypto_init
This commit is contained in:
Mikolai Gütschow 2023-10-17 17:40:19 +02:00
parent 6ad2f052c5
commit 25aa2167f6
No known key found for this signature in database
GPG Key ID: 943E2F37AA659AD5

View File

@ -113,6 +113,10 @@ const char *psa_status_to_humanly_readable(psa_status_t status)
psa_status_t psa_crypto_init(void)
{
if (lib_initialized) {
return PSA_SUCCESS;
}
lib_initialized = 1;
#if (IS_USED(MODULE_PSA_KEY_SLOT_MGMT))