[SDK 6.2][43903] Unexpected behavior when trying to use secure pRNG (Fortuna)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi all,

I'm facing the problem of unexpected behavior (mostly system freeze) when trying to initialize secure pRNG (Fortuna) with:

wiced_crypto_use_secure_prng()

Environment:

1. SDK 6.2.0.72

2. HW: ISM43903 module

In my case freeze happens when SDK is internally calling:

wiced_hw_sha256_starts()

Looks like more or less memory leak, but I might be wrong (didn't trace it carefully).

I saw that since SDK 6.1.0.85 introduced (enabled by default) alternative crypto functionalities basing on HW (eg. sha256_alt.c etc.).

Disabling usage of HW crypto alts fixes described problem:

GLOBAL_DEFINES += WICED_CONFIG_DONOT_USE_HW_CRYPTO

Is it possible to use HW crypto functionalities using 43903 platform and SDK 6.2?

0 Likes
1 Reply
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Did you try using the test.console app or some other application?

0 Likes