From: Wenkai Lin linwenkai6@hisilicon.com
The hardware only uses the block mode, so set the aead message state to the block mode first.
Signed-off-by: Wenkai Lin linwenkai6@hisilicon.com --- v1/drv/hisi_sec_udrv.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/v1/drv/hisi_sec_udrv.c b/v1/drv/hisi_sec_udrv.c index 605f3d04..7cabc57b 100644 --- a/v1/drv/hisi_sec_udrv.c +++ b/v1/drv/hisi_sec_udrv.c @@ -3388,6 +3388,9 @@ int qm_fill_aead_sqe(void *message, struct qm_queue_info *info, __u16 i) uintptr_t temp; int ret;
+ /* The hardware only uses the block mode. */ + msg->msg_state = WCRYPTO_AEAD_MSG_BLOCK; + ret = aead_comb_param_check(msg); if (ret) { WD_ERR("Invalid aead cipher alg = %hhu and mode = %hhu combination\n",