crypto/cnxk: fix CMAC IV
Fixing CMAC IV length to 16 bytes.
Fixes: 759b5e6535
("crypto/cnxk: support AES-CMAC")
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
This commit is contained in:
parent
c1eac1b966
commit
57fe58d0a5
@ -82,7 +82,7 @@ pdcp_iv_copy(uint8_t *iv_d, uint8_t *iv_s, const uint8_t pdcp_alg_type,
|
||||
memcpy(iv_d, iv_s, 16);
|
||||
} else {
|
||||
/* AES-CMAC EIA2, microcode expects 16B zeroized IV */
|
||||
for (j = 0; j < 4; j++)
|
||||
for (j = 0; j < 16; j++)
|
||||
iv_d[j] = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user