Commit 393307b9 authored by Peter Harliman Liem's avatar Peter Harliman Liem Committed by Greg Kroah-Hartman
Browse files

crypto: inside-secure - Change swab to swab32



[ Upstream commit 66459340 ]

The use of swab() is causing failures in 64-bit arch, as it
translates to __swab64() instead of the intended __swab32().
It eventually causes wrong results in xcbcmac & cmac algo.

Fixes: 78cf1c8b ("crypto: inside-secure - Move ipad/opad into safexcel_context")
Signed-off-by: default avatarPeter Harliman Liem <pliem@maxlinear.com>
Acked-by: default avatarAntoine Tenart <atenart@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 93538944
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment