mbox series

[v5,0/2] crypto: hisilicon - fix the authsize and icv problems of aead in sec

Message ID 20241213091335.4190437-1-huangchenghai2@huawei.com
Headers show
Series crypto: hisilicon - fix the authsize and icv problems of aead in sec | expand

Message

Chenghai Huang Dec. 13, 2024, 9:13 a.m. UTC
1. Fix for aead invalid authsize.
2. Fix for aead icv error.

---
Changes in v5:
- Delete the 'fallback' that is not used.
- Link to v4: https://lore.kernel.org/all/20241115102139.3793659-1-huangchenghai2@huawei.com/

Changes in v4:
- Add a switching flag (fallback) for soft-calculation in req.
- Link to v3: https://lore.kernel.org/all/20241102025559.2256734-1-huangchenghai2@huawei.com/

Changes in v3:
- Call crypto_aead_authsize to obtain authsize instead of
actx->authsize.
- Link to v2: https://lore.kernel.org/all/20241018105830.169212-1-huangchenghai2@huawei.com/

Changes in v2:
- Restored authsize to the tfm.
- Link to v1: https://lore.kernel.org/all/20240929112630.863282-1-huangchenghai2@huawei.com/
---

Wenkai Lin (2):
  crypto: hisilicon/sec2 - fix for aead icv error
  crypto: hisilicon/sec2 - fix for aead invalid authsize

 drivers/crypto/hisilicon/sec2/sec.h        |   3 +-
 drivers/crypto/hisilicon/sec2/sec_crypto.c | 161 ++++++++++-----------
 drivers/crypto/hisilicon/sec2/sec_crypto.h |  11 --
 3 files changed, 76 insertions(+), 99 deletions(-)