Skip to main content
workingStudent
Associate II
December 3, 2018
Solved

How to import "CryptoAuthLib" to existing project?

  • December 3, 2018
  • 6 replies
  • 3987 views

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.

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

​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

6 replies

Amir NEIFAR
Amir NEIFARBest answer
Visitor II
December 26, 2018

​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
Visitor II
January 2, 2019

Hi,

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

Regards,

Amir

workingStudent
Associate II
January 2, 2019

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

DDang
Visitor II
August 19, 2019

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

Amir NEIFAR
Visitor II
January 2, 2019

​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

workingStudent
Associate II
January 2, 2019

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
Visitor II
January 2, 2019

​It's Ok now.

You are welcome.

Amir

Rahul.Santhosh
Associate II
November 10, 2022

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?