Skip to content

Commit

Permalink
Add call to wolfCrypt_Init()
Browse files Browse the repository at this point in the history
  • Loading branch information
anhu committed Sep 17, 2024
1 parent 612dc96 commit 76b75f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -3351,8 +3351,10 @@ int WP11_Library_Init(void)
ret = WP11_Lock_Init(&globalLock);
if (ret == 0)
#ifdef WOLFSSL_MAXQ10XX_CRYPTO
/* TODO: can we even do this? Has wolfCrypt even been initialized yet? */
ret = wc_InitRng_ex(&globalRandom, NULL, MAXQ_DEVICE_ID);
ret = wolfCrypt_Init();
if (ret == 0) {
ret = wc_InitRng_ex(&globalRandom, NULL, MAXQ_DEVICE_ID);
}
#else
ret = wc_InitRng(&globalRandom);
#endif
Expand Down

0 comments on commit 76b75f8

Please sign in to comment.