net: openthread: Initialize PSA crypto when random is initializing
The psa_generate_random function requires the psa_crypto_init call before the usage. This can be ensured by calling the psa_crypto_init in otPlatCryptoRandomInitfunction. Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
This commit is contained in:
parent
e36b0a4157
commit
f16f1ae819
1 changed files with 1 additions and 0 deletions
|
@ -415,6 +415,7 @@ otError otPlatCryptoSha256Finish(otCryptoContext *aContext, uint8_t *aHash, uint
|
||||||
|
|
||||||
void otPlatCryptoRandomInit(void)
|
void otPlatCryptoRandomInit(void)
|
||||||
{
|
{
|
||||||
|
psa_crypto_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void otPlatCryptoRandomDeinit(void)
|
void otPlatCryptoRandomDeinit(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue