]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: stm32/hash - Fix hmac issue more than 256 bytes
authorLionel Debieve <lionel.debieve@st.com>
Fri, 28 Jun 2019 11:26:54 +0000 (13:26 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Jul 2019 14:15:08 +0000 (22:15 +0800)
commit76b1a1954fc10489cb31880f2cd028c36c7713d9
tree0f41d09983ed462af63375dfbb6171f200a2013e
parent0284acca62b34f1a86e744194c56eaae2a6c6469
crypto: stm32/hash - Fix hmac issue more than 256 bytes

Correct condition for the second hmac loop. Key must be only
set in the first loop. Initial condition was wrong,
HMAC_KEY flag was not properly checked.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-hash.c