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)
commit0acabecebc912b3ba06289e4ef40476acc499a37
tree0f41d09983ed462af63375dfbb6171f200a2013e
parentfdbd643a74efb353a20ecde94a2200e13a283b66
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