Commit 55b1681
crypto: Update HASH_MAX_DESCSIZE to include space for fallback tfm.
Adds additional 8 byte required for fallback tfm pointer in versal-sha3-384.
It fixes self-test warn_on when HMAC template tries to use versal-sha3-384
as inner tfm.
-----------[ cut here ]-----------
WARNING: CPU: 1 PID: 578 at crypto/shash.c:495 crypto_shash_init_tfm+0xac/0xd0
Modules linked in:
CPU: 1 PID: 578 Comm: cryptomgr_test Tainted: G W 6.6.0-xilinx-v2024.1-g01dca40485e6-dirty #7
Hardware name: Xilinx Versal vck190 Eval board revA (DT)
pstate: 20000005 (nzCv daif PAN -UAO -TCO -DIT -SSBS BTYPE=-)
pc : crypto_shash_init_tfm+0xac/0xd0
We can remove this fix once Herbert is done with updating shash framework
to support multibuffer requests (link below).
Signed-off-by: Harsh Jain <[email protected]>
Message-ID: <[email protected]>
Link: https://lore.kernel.org/linux-crypto/CAFXBA=kHUHNH_BEnK=sWvWPJPoxsDh56OEhisbRGzdD19Di2gQ@mail.gmail.com/T/#md4c42d52caab7c7dd8ee41ba194d2019d7e71d61
State: not-upstreamable1 parent 3fe162a commit 55b1681
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
| 183 | + | |
| 184 | + | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments