common/cpt: check MAC length
authorArchana Muniganti <marchana@marvell.com>
Wed, 16 Sep 2020 10:37:00 +0000 (16:07 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 14 Oct 2020 19:37:26 +0000 (21:37 +0200)
commit7293bae19a30b0fb9b8d50ac5f1997c6da32e2c2
treea764b41e88f8f1752f68f1d04621f46ef65704b7
parentb67ecf3e737c25a5abe47da559247bf25bfe2ec6
common/cpt: check MAC length

HMAC/HASH opcode algorithms supports fixed mac length.
Allowed session creation to fail when requested for
unsupported MAC length for HMAC/HASH-only use cases.

Signed-off-by: Archana Muniganti <marchana@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
drivers/common/cpt/cpt_mcode_defines.h
drivers/common/cpt/cpt_ucode.h
drivers/crypto/octeontx/otx_cryptodev_ops.c
drivers/crypto/octeontx2/otx2_cryptodev_ops.c