2014-02-19 12:38 PM
Hi, I've problem with generating md5 hash. I use library from ST. It's called stm32f4xx_hash_md5.c and I call function HASH_MD5(PASS, 4, PASS_MD5). In PASS_MD5 I need hash. But the variable is empty.
Can you help me, please?2014-02-19 12:48 PM
What SPECIFIC STM32F4xx part are you using? Because the most generally available parts don't have a HASH/CRYPT unit.
2014-02-19 12:51 PM
I use STM32F4 Discovery kit with STM32F407VG.
2014-02-19 01:01 PM
Then you'll need to swap out that part for a F417
RCC->AHB2ENR |= RCC_AHB2Periph_CRYP | RCC_AHB2Periph_HASH | RCC_AHB2Periph_RNG;
if (RCC->AHB2ENR & RCC_AHB2Periph_CRYP)
puts(''Crypto Unit Present'');
if (RCC->AHB2ENR & RCC_AHB2Periph_HASH)
puts(''Hashing Unit Present'');
if (RCC->AHB2ENR & RCC_AHB2Periph_RNG)
puts(''Random Number Generator Unit Present'');