]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: stm32/crc32 - fix run-time self test issue.
authorNicolas Toromanoff <nicolas.toromanoff@st.com>
Tue, 12 May 2020 14:11:10 +0000 (16:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2020 14:08:20 +0000 (00:08 +1000)
commit7868a5620b440b60c3bd9b19487965e67ea29aff
tree6776596e6fbf214bc4f651882b204fe0ff067cc3
parentcb8e5c6d82d6481cb5f1f4cf81b547ea0e330ef2
crypto: stm32/crc32 - fix run-time self test issue.

Fix wrong crc32 initialisation value:
"alg: shash: stm32_crc32 test failed (wrong result) on test vector 0,
cfg="init+update+final aligned buffer"
cra_name="crc32c" expects an init value of 0XFFFFFFFF,
cra_name="crc32" expects an init value of 0.

Fixes: 3490b35bb395 ("crypto: stm32 - Support for STM32 CRC32 crypto module")
Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-crc32.c