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:
parent
6ad2f052c5
commit
25aa2167f6
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user