Skip to main content
Associate
June 2, 2025
Question

Crypto Library - Source Code

  • June 2, 2025
  • 2 replies
  • 2649 views

Hello,

We want to use the STM Crypto Library " X-CUBE-CRYPTOLIB" for a project at our company. Since we will only be using a portion of it, the question arises whether it is possible to customize the static ".a" file ourselves (to make it smaller) or to provide a customized one from STM. The reason is that the memory on the microcontroller is very limited, so saving a few kilobytes would be very helpful.

We look forward to your feedback.


Kind regards,

Rojeda

2 replies

Pavel A.
Super User
June 2, 2025

Which STM32 MCU do you have? And what crypto functionality do you use?

 

Tesla DeLorean
Guru
June 2, 2025

Generally in a well constructed library the linker will discard the objects it doesn't need for closure.

Yeah, ST's not going to furnish you with source.

With standard algorithms you can probably find existing source examples.

What MCU, with what capacity, running what algorithm?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..