Skip to main content
Andrea Motto
Visitor II
May 29, 2017
Question

AES with STEVAL-IDB006V1

  • May 29, 2017
  • 2 replies
  • 721 views
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
This topic has been closed for replies.

2 replies

qian chen
Visitor II
August 4, 2017
Posted on August 04, 2017 at 09:40

ME TOO!  ...and  no idea

After Forever
Senior III
August 4, 2017
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

.