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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:21:34 +0000 (09:21 +0100)
commitc7f92e45fe21a55ea6906e165e14e666fa53a8d1
tree4fa0d1f7df76bda6bfba523e81eebc4a150b4456
parentbe41df88a568ef7871870b1c924d220c37d2e28c
crypto: stm32/hash - Fix hmac issue more than 256 bytes

commit 0acabecebc912b3ba06289e4ef40476acc499a37 upstream.

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>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/stm32/stm32-hash.c