]> git.baikalelectronics.ru Git - uboot.git/commit
crypto/fsl: Clear the memory when blob decapsulation fails
authorGaurav Jain <gaurav.jain@nxp.com>
Fri, 15 Apr 2022 11:22:34 +0000 (16:52 +0530)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 13:18:25 +0000 (15:18 +0200)
commit70cf6af75f0af36f0ece351667241d56959b585a
tree4882ba3ad83673cea353e25cab6f400c400a5f72
parent1b01009bdbe8583d29a22755e4d551b047cd98ce
crypto/fsl: Clear the memory when blob decapsulation fails

issue: blob decapsulation operation store the decrypted data
       in memory even if ICV check failed.

fix: clear the blob data output memory.

Fixes: c5de15cbc8 (crypto/fsl: Add command for encapsulating/decapsulating blobs)
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Reviewed-by: Kshitiz Varshney <kshitiz.varshney@nxp.com>
Tested-by: Kshitiz Varshney <kshitiz.varshney@nxp.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
drivers/crypto/fsl/fsl_blob.c