common/cpt: add checks for offset overflow
authorAnoob Joseph <anoobj@marvell.com>
Mon, 10 May 2021 09:44:00 +0000 (15:14 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 7 Jul 2021 19:28:39 +0000 (21:28 +0200)
commit2a6c7922fcfc28f5745c28aa94c0d454361971a1
tree794fb197c72bc40e5d8d24f73eb7a620cd6c5ed7
parent2b81eb2c992b2e3728b8866cf6199cfd3b5fd776
common/cpt: add checks for offset overflow

Add checks to catch overflow of any offsets. Offset control word
specifies,

1. 16 bits encryption offset
2. 8 bits IV offset
3. 8 bits auth offset

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/common/cpt/cpt_ucode.h