Skip to content

Commit 192125e

Browse files
chleroyherbertx
authored andcommitted
crypto: talitos - fix max key size for sha384 and sha512
Below commit came with a typo in the CONFIG_ symbol, leading to a permanently reduced max key size regarless of the driver capabilities. Reported-by: Horia Geantă <horia.geanta@nxp.com> Fixes: b8fbdc2 ("crypto: talitos - reduce max key size for SEC1") Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent f651bd9 commit 192125e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/talitos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static void talitos_unregister_rng(struct device *dev)
823823
* HMAC_SNOOP_NO_AFEA (HSNA) instead of type IPSEC_ESP
824824
*/
825825
#define TALITOS_CRA_PRIORITY_AEAD_HSNA (TALITOS_CRA_PRIORITY - 1)
826-
#ifdef CONFIG_CRYPTO_DEV_TALITOS_SEC2
826+
#ifdef CONFIG_CRYPTO_DEV_TALITOS2
827827
#define TALITOS_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + SHA512_BLOCK_SIZE)
828828
#else
829829
#define TALITOS_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + SHA256_BLOCK_SIZE)

0 commit comments

Comments
 (0)