diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-12-26 09:00:45 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-12-26 09:00:45 +0000 |
commit | 9485d1e2ff9c713abb9db6128d7986b0ed6b976f (patch) | |
tree | 1a451a581d399073d4aa7ad6d335ab65eeed2dd9 /testhal/STM32/multi/CRYPTO/main.c | |
parent | 1a9aa9ad975d4f520d5b88c17eb634dfe46a2012 (diff) | |
download | ChibiOS-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/multi/CRYPTO/main.c')
-rw-r--r-- | testhal/STM32/multi/CRYPTO/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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);
|