cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined references to cmox_... functions in Cube-Cryptolib-4.3.0

Shubha_99
Visitor

I'm using cube-cryptolib-4.3.0 in my STM32CubeIDE project, and I'm running into linker errors stating that the following functions are missing:

  • cmox_sha256_construct
  • cmox_hash_append
  • cmox_hash_compute

Even though the header files are present and included in my project, the linker complains about undefined references to these functions. Here’s a snippet of the error messages I receive:

undefined reference to `cmox_sha256_construct'
undefined reference to `cmox_hash_append'
undefined reference to `cmox_hash_compute'

I've already tried the following troubleshooting steps:

 

  • Include Paths: My include paths point to the correct version of cube-cryptolib.
  • Clean Build: I've performed a full clean and rebuild of the project.

Despite these efforts, the linker errors persist. It seems that the actual definitions for these functions are missing from the compiled sources or are conditionally excluded.

 

Questions:

  1. Is there a specific configuration or additional macro I need to define to enable the legacy API functions like cmox_sha256_construct, cmox_hash_append, and cmox_hash_compute in cube-cryptolib-4.3.0?
  2. Has anyone encountered similar issues with this version of Cube-Cryptolib, and what was the resolution?
  3. Are these functions part of the new unified API instead of the legacy API in this version?

Any guidance or suggestions to resolve this issue would be greatly appreciated!

 

0 REPLIES 0