cancel
Showing results for 
Search instead for 
Did you mean: 

How to import "CryptoAuthLib" to existing project?

workingStudent
Associate II

I am currently working on a STM32F767ZI-Nucleo board and a little security chip (microchip atecc508a), that is connected via i2c connection. For this chip is a library available CryptoAuthLib (https://github.com/MicrochipTech/cryptoauthlib), that I want to use in my project. I'm also using STM32CubeMX to generate my C-Files and Atollic TrueStudio to write my implementations.

C programming language is relatively new to me, so I have no idea how to include my library folder to my project (either in cubemx or in trustudio?) to get it work.

I think the include statement

"#include "cryptoauthlib.h"

should be in the

main.c

include section, but in a certain way I have to tell the IDE to use this library.

I appreciate any help, thank you very much.

1 ACCEPTED SOLUTION

Accepted Solutions
Amir NEIFAR
Associate III

​Hi,

You can use cryptolibrary provided by ST for the STM32. Below the link to the STM32 crypto Library which is including many project examples using Atollic and you can use to customise your application.

https://www.st.com/en/embedded-software/x-cube-cryptolib.html

Regards,

Amir

View solution in original post

8 REPLIES 8
Amir NEIFAR
Associate III

​Hi,

You can use cryptolibrary provided by ST for the STM32. Below the link to the STM32 crypto Library which is including many project examples using Atollic and you can use to customise your application.

https://www.st.com/en/embedded-software/x-cube-cryptolib.html

Regards,

Amir

Amir NEIFAR
Associate III

Hi,

Could you please feedback if you still having issue to use cryptolib?

Regards,

Amir

workingStudent
Associate II

Sorry, I've totally forgotten to answer you. For educational use my task was to get "cryptoauthlib" to successfully work with an atecc508a. In the meantime I've written an additional HAL (hardware abstraction layer) implementations for a stm32 device. Now it works perfectly. I'm not very experienced with microcontrollers and my implementation was only a proof of concept, to get a stm32 device running cryptoauthlib (https://github.com/MicrochipTech/cryptoauthlib).

@AMIR NEIFAR Thank you very much, for your help.

Best regards,

WorkingStudent

Amir NEIFAR
Associate III

​Good to know that you are progressing in your application.

could you please mark ticket as Answered since your issue have been fixed.

Good luck and happy new year.

Regards,

Amir

I didn't find a FAQ, can you tell me where I can mark the ticket as answered?

Thank you very much for your help.

And a happy new year.

Regards,

WorkingStudent

Amir NEIFAR
Associate III

​It's Ok now.

You are welcome.

Amir

Hi,

I'm working on a project that I need communicate between STM32 device and ATECC508A. If you don't mind, can you share me your library of STM32 device running cryptoauthlib (https://github.com/MicrochipTech/cryptoauthlib). Thank you very much.

Best regards,

Dat

Rahul.Santhosh
Associate II

Hey @workingStudent​ ,

have you figured out how to import the cryptoauthlib to work with the STM32 MCU?

or have you found any driver for your secure element IC?