aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-12-26 09:00:45 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-12-26 09:00:45 +0000
commit9485d1e2ff9c713abb9db6128d7986b0ed6b976f (patch)
tree1a451a581d399073d4aa7ad6d335ab65eeed2dd9 /testhal/STM32
parent1a9aa9ad975d4f520d5b88c17eb634dfe46a2012 (diff)
downloadChibiOS-9485d1e2ff9c713abb9db6128d7986b0ed6b976f.tar.gz
ChibiOS-9485d1e2ff9c713abb9db6128d7986b0ed6b976f.tar.bz2
ChibiOS-9485d1e2ff9c713abb9db6128d7986b0ed6b976f.zip
Settled for a weird DMA use in this driver. Apparently it is working, it needs complete test vectors.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12484 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h1
-rw-r--r--testhal/STM32/multi/CRYPTO/debug/STM32-CRYPTO (Select ELF file)(OpenOCD, Flash and Run).launch2
-rw-r--r--testhal/STM32/multi/CRYPTO/main.c4
3 files changed, 4 insertions, 3 deletions
diff --git a/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h b/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h
index 1e5e6624a..58315d901 100644
--- a/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h
+++ b/testhal/STM32/multi/CRYPTO/cfg/stm32f756zg_nucleo144/mcuconf.h
@@ -150,6 +150,7 @@
#define STM32_CRY_HASH1_IRQ_PRIORITY 9
#define STM32_CRY_HASH1_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
#define STM32_CRY_HASH1_DMA_PRIORITY 0
+#define STM32_CRY_HASH_SIZE_THRESHOLD 1024
#define STM32_CRY_HASH_DMA_ERROR_HOOK(cryp) osalSysHalt("DMA failure")
/*
diff --git a/testhal/STM32/multi/CRYPTO/debug/STM32-CRYPTO (Select ELF file)(OpenOCD, Flash and Run).launch b/testhal/STM32/multi/CRYPTO/debug/STM32-CRYPTO (Select ELF file)(OpenOCD, Flash and Run).launch
index bfd40254c..918d40d5e 100644
--- a/testhal/STM32/multi/CRYPTO/debug/STM32-CRYPTO (Select ELF file)(OpenOCD, Flash and Run).launch
+++ b/testhal/STM32/multi/CRYPTO/debug/STM32-CRYPTO (Select ELF file)(OpenOCD, Flash and Run).launch
@@ -33,7 +33,7 @@
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_REGISTER_GROUPS" value=""/>
-<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;contentList&gt;&lt;content id=&quot;digest[4]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[3]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[2]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[1]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[0]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;PAR-stream-dma_hash-cryp-cry_lld_SHA256_update-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;M0AR-stream-dma_hash-cryp-cry_lld_SHA256_update-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;NDTR-stream-dma_hash-cryp-cry_lld_SHA256_update-(format)&quot; val=&quot;0&quot;/&gt;&lt;content id=&quot;CR-stream-dma_hash-cryp-cry_lld_SHA256_update-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[3]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[4]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[5]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[6]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[7]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[8]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[9]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[10]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[11]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[12]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[13]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[14]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[15]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[16]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[17]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[18]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[19]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[20]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[21]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[22]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[23]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[24]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[25]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[26]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[27]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[28]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;xPSR-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[32]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[33]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;DIN-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;STR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;HR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;IMR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;SR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;RESERVED-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[0]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[1]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[2]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[3]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[4]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[5]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[6]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[7]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[8]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[9]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[10]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[11]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[12]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[13]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[14]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[15]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[16]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[17]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[18]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[19]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[20]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[21]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[22]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[23]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[24]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[25]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[26]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[27]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[28]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[29]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[30]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[31]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[32]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[33]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[34]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[35]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[36]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[37]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[38]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[39]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[40]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[41]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[42]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[43]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[44]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[45]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[46]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[47]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[48]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[49]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[50]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[51]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[52]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[53]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;/contentList&gt;"/>
+<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;contentList&gt;&lt;content id=&quot;digest[33]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[32]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;xPSR-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[28]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[27]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[26]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[25]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[24]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[23]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[22]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[21]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[20]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[19]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[18]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[17]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[16]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[15]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[14]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[13]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[12]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[11]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[10]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[9]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[8]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[7]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[6]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[5]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[4]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;rand[3]-rand-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CR-stream-dma_hash-cryp-cry_lld_SHA256_update-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;NDTR-stream-dma_hash-cryp-cry_lld_SHA256_update-(format)&quot; val=&quot;0&quot;/&gt;&lt;content id=&quot;M0AR-stream-dma_hash-cryp-cry_lld_SHA256_update-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;PAR-stream-dma_hash-cryp-cry_lld_SHA256_update-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[0]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[1]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[2]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[3]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[4]-digest-cry_lld_SHA256_final-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;DIN-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;STR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;HR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;IMR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;SR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;RESERVED-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[0]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[1]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[2]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[3]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[4]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[5]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[6]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[7]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[8]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[9]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[10]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[11]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[12]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[13]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[14]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[15]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[16]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[17]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[18]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[19]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[20]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;CSR[21]-CSR-null-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[0]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[1]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[2]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[3]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[4]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[5]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[6]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[7]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[8]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[9]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[10]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[11]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[12]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[13]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[14]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[15]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[16]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[17]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[18]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[19]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[20]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[21]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[22]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[23]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[24]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[25]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[26]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[27]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[28]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[29]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[30]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;content id=&quot;digest[31]-digest-main-(format)&quot; val=&quot;4&quot;/&gt;&lt;/contentList&gt;"/>
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;globalVariableList/&gt;&#10;"/>
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;memoryBlockExpressionList&gt;&#10;&lt;memoryBlockExpressionItem&gt;&#10;&lt;expression text=&quot;0x20000c34&quot;/&gt;&#10;&lt;/memoryBlockExpressionItem&gt;&#10;&lt;/memoryBlockExpressionList&gt;&#10;"/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="${selected_resource_loc}"/>
diff --git a/testhal/STM32/multi/CRYPTO/main.c b/testhal/STM32/multi/CRYPTO/main.c
index 61be877f0..75d5e51e5 100644
--- a/testhal/STM32/multi/CRYPTO/main.c
+++ b/testhal/STM32/multi/CRYPTO/main.c
@@ -69,7 +69,7 @@ int main(void) {
if (palReadLine(PORTAB_LINE_BUTTON) == PORTAB_BUTTON_PRESSED) {
SHA256Context ctx256;
-#if 0
+
crySHA256Init(&CRYD1, &ctx256);
crySHA256Update(&CRYD1, &ctx256, 0U, (const uint8_t *)"");
crySHA256Final(&CRYD1, &ctx256, digest);
@@ -77,7 +77,7 @@ int main(void) {
crySHA256Init(&CRYD1, &ctx256);
crySHA256Update(&CRYD1, &ctx256, 3U, (const uint8_t *)"abc");
crySHA256Final(&CRYD1, &ctx256, digest);
-#endif
+
crySHA256Init(&CRYD1, &ctx256);
crySHA256Update(&CRYD1, &ctx256, 56U, (const uint8_t *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq");
crySHA256Final(&CRYD1, &ctx256, digest);