Skip to main content
FForm
Associate
December 10, 2018
Solved

STM32 crypto library package (X-CUBE-CRYPTOLIB)

  • December 10, 2018
  • 3 replies
  • 4009 views

Hi, I’m trying to use the cryptographic library on a board based on STM32L152CBT6-A to encrypt data to be sent. I tried to replace the files inside the “Driver�? folder but it did not work. Does anyone know how to use the library and import it correctly on System Workbench?

This topic has been closed for replies.
Best answer by Amir NEIFAR

Hi,

​You have to add the Library path in the include configuration.

Please check the thread https://community.st.com/s/question/0D50X0000AAGtwqSQD/how-to-include-crypto-library-in-sysytem-workbench-project

Regards,

Amir 

3 replies

Amir NEIFAR
Visitor II
December 26, 2018

​Hi Fabriformo,

Please porvide détails about the package you are using. We recommend to use the version 3.0.0 https://www.st.com/en/embedded-software/x-cube-cryptolib.html which include examples for every algorythm and which is including projects for IAR, Keil and Atollic.

Regards,

Amir

FForm
FFormAuthor
Associate
January 14, 2019

Hi, Amir. My problem is another. I would like to import the library into a project that already exists in System Workbench. Within the library for each board there are the folders Utilities, Projects, Middlewares, Drivers, Documentation. I tried to copy files within Middlewares and Drivers in my project but when I do "Build Project" there are errors.

If I import a project for System Workbench from the Project folder, I still have errors.

How can I import the library into my existing project?

Amir NEIFAR
Amir NEIFARBest answer
Visitor II
January 15, 2019

Hi,

​You have to add the Library path in the include configuration.

Please check the thread https://community.st.com/s/question/0D50X0000AAGtwqSQD/how-to-include-crypto-library-in-sysytem-workbench-project

Regards,

Amir 

Amir NEIFAR
Visitor II
January 2, 2019

Hi Fabriformo,

Could you please feedback if you still having issue with crypto library?

​Regards,

Amir

YLAZREG
Associate
January 28, 2020

hello,

This is an old thread but I hope to get an answer here.

I'm using NUCLEO-L496ZG-P, and I have data de decrypt (AES128 CBC).

I'm using a Makefile generated by STM32CubeIDE to compile and my college is using the STM32CubeIDE to do so.

I'm trying to use th Cryptolib but didnt het how to do so. I did download "en.patchx_cryptolib.zip" and "en.x-cube-cryptolib.zip"

I copied the folder ST/ under Middleware to compile the library -llibSTM32CryptographicV3.0.0_CM4_GCC_FPU.a but I get

ld: cannot find -llibSTM32CryptographicV3.0.0_CM4_GCC_FPU.a

Is there a document to follow ? Any suggested guide lines ?