cancel
Showing results for 
Search instead for 
Did you mean: 

AES with STEVAL-IDB006V1

Andrea Motto
Associate
Posted on May 29, 2017 at 21:16

I'm trying to use AES with STEVAL-IDB006V1. I'm using some utilities from 

stm32l1xx_aes_util.c file.

I have enabled 

RCC_AHBPeriph_AES

 with the command 

RCC_AHBPeriphClockCmd(RCC_AHBPeriph_AES, ENABLE);

but when the application tries to execute 

AES_Init

it stops. Taking a look inside 

AES_Init

 in 

stm32l1xx_aes.c file, I have found out the command that stops the app: 

tmpreg = AES->CR;

It seems that AES register is not accessible. Should I enable anything else? What's the problem?

#aes #steval-idb006v1
2 REPLIES 2
qian chen
Associate
Posted on August 04, 2017 at 09:40

ME TOO!  ...and  no idea

Posted on August 04, 2017 at 12:03

STM32L151CBU6 doesn't have a hardware crypto module. You'll have to use software cryptography using ST's

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

or a 3-rd party crypto library like

https://github.com/ARMmbed/mbedtls

, or something lighter like

https://github.com/cjhdev/moda

.