Integrating wolfSSL with WICED

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

cross mob
SaSh_4649506
Level 2
Level 2
5 replies posted 5 questions asked 5 sign-ins

Hello all,

The motive is to integrate wolfSSL library to implement Secure Bootloader on WICED.

Already done:

  • Downloaded the application code on the external FLASH using the build script: "snip.pers-BCM943909WCD1_3.B1-ThreadX-NetX_Duo-debug ota2_download"
  • Debugging "ota2_bootloader.c" using build script: "waf.ota2_bootloader-NoOS-NoNS-BCM943909WCD1_3"
  • Included wolfSSL folders (wolfcrypt, wolfssl and src) in the path: \43xxx_Wi-Fi\libraries\filesystems\ota2
  • Defined wolfSSL library related Macros in "user_setting.h" [Path: \43xxx_Wi-Fi\libraries\filesystems\ota2\wolfssl\user_settings.h ]to port wolfSSL source code and to enable features of the wolfSSL library in the WICED.
  • Globally defined "WOLFSSL_USER_SETTINGS" and "WC_RSA_BINDING" symbols in "ota2.mk" file [Path: \43xxx_Wi-Fi\libraries\filesystems\ota2\ota2.mk]
  • Using wolfSSL APIs in "wiced_ota2_image_extract()" [Path: \43xxx_Wi-Fi\libraries\filesystems\ota2\wiced_ota2_image.c]
  • Successfully generated HASH value using wolfSSL APIs: wc_InitSha256(),wc_Sha256Update() or wc_Sha256Final(). Being able to debug the APIs as well to understand the program flow.

The issue being faced at the moment is that while using "ParseCert()" API in "wiced_ota2_image_extract()" function, the behavior of the code changes. By that, I mean to say while debugging, the debugger doesn't even hit "wiced_ota2_image_extract()" function, let alone hitting the "ParseCert()" API inside. Although a breakpoint is given on the function call of "wiced_ota2_image_extract()" function in "ota2_bootloader.c", the breakpoint is skipped, and the program jumps to the line: "if (result != WICED_SUCCESS)".

Kindly help me out to successfully integrate wolfSSL with WICED.

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

We do have a secure boot option in WICED.

https://www.cypress.com/file/298286/download

Is there any particular reason that you still  want a full fledge ssl/tls library like wolfssl to be integrated in bootloader?

0 Likes