cancel
Showing results for 
Search instead for 
Did you mean: 

Crypto lib - STM32 crpto lib vs Openssl

s-shige
Associate II
Posted on August 31, 2016 at 18:29

Hello, Admin and everyone.

Please let me ask,

Can we use Openssl with STM32 nucleo board ? if possible, how ?

I cannot read the lib on Keil.

and can we migrate from Opennssl to STM32 crypto lib ?

Thanks.

#stm32-crypto-openssl
3 REPLIES 3
Walid FTITI_O
Senior II
Posted on September 01, 2016 at 13:38

Hi s-shige,

YEs you can , just enable the CRC before using the crypto lib and ensure that the CRC and CRYP Enable macros are uncommented in the hal_conf.h :

Check:

in hal_conf.h enabled:

 #define HAL_CRC_MODULE_ENABLED   

 #define HAL_CRYP_MODULE_ENABLED  

in your init function:

 /* Enable CRC clock */

  __CRC_CLK_ENABLE();

-Hannibal-
s-shige
Associate II
Posted on September 02, 2016 at 18:47

Hello, Hannibal.

Please let me confirm and ask again.

Does it mean that ST32 cyrpt lib comatible with Openssl, right ?

I can use Openssl apps with ST32 cyrpt lib with your configuration.

Is my understanding correct ?

Regards,

Shigenori

Posted on September 02, 2016 at 19:18

I think you'll need to evaluate how easy it is to port, the algorithms are clearly the same, and defined, but the interfaces to various API, and the functionality at a hardware level (data length, alignment, etc) tend to complicate things.

I'm not sufficiently familiar with OpenSSL to know it's needs, but the ST code does work.

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