]> git.dujemihanovic.xyz Git - u-boot.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)
commitcc84edddd17ed6eedbd17ad1ab9672854ec5fa27
tree4882ba3ad83673cea353e25cab6f400c400a5f72
parente3b330e489e777d4cf0d8d83e4d89cfe674ed597
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