2017-07-20 05:28 AM
Hi all
I have a function using the STM32CryptographicV3.0.0 to do AES-CMAC encryption / decryption on a STM32F446. This works fine.
I have a function
using the CRC peripheral of theSTM32F446
to check the integrity of the flash.This works fine.
My problem is when doing both at the same time or sequentially, the call of
encryption / decryption of the lib seems to use the crc and mess with my flash CRC calculation. (CRC_DR is set to 0 after the call)
In the pdf CD00208802.pdf User manual STM32 Cryptographic Library, i found out the note : 'Note: 3. CRC peripheral is used ', so i guess it's pretty normal to have this behaviour.
Is there a way to do them at the same time ? or am i forced to do a pure crc software implementation for the check of my flash ?
Solved! Go to Solution.
2017-07-20 07:00 AM
Hi,
Cryptolib use the CRC, so it's not possible to use CRC at the same time in Cryptolib and
check of the flash.
Imen
2017-07-20 05:53 AM
Depends how frequently you check the FLASH.
The library tests the CRC to confirm it is using STM32 hardware, if this annoyed me sufficiently I'd remove the test.
2017-07-20 07:00 AM
Hi,
Cryptolib use the CRC, so it's not possible to use CRC at the same time in Cryptolib and
check of the flash.
Imen
2017-07-20 09:35 AM
The complaint is that it doesn't need to interfere with the CRC peripheral, but does.
Does the library contain public domain, open source or GPL code?
2017-07-20 09:39 AM
Cryptolib use the CRC, so it's possible to use
them at the same time and not for the check of the flash.
Did you by possible meant IMpossible ?
The library is licensed by ST 'Licensed under MCD-ST Image SW License Agreement V2'
2017-07-20 09:44 AM
Sorry, It's a typo. I have correct my answer !
2017-07-20 09:53 AM
Alright thanks, i'll try to find a workaround but if anyone have a genius idea, feel free to share it !!
2017-07-20 09:54 AM
,
,
Small table CRC example
,