MLK-20798 imx8: spl: Fix container header parser issue
authorYe Li <ye.li@nxp.com>
Tue, 22 Jan 2019 13:07:33 +0000 (05:07 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 10:38:54 +0000 (03:38 -0700)
commitba4f923b6465da85e0727bc322d08b2864249fcf
tree2e9de6e13c7a82d90df244d955310b556c6b4a09
parent9e9524c86a08d5b16bb94c1a30eda378536c4860
MLK-20798 imx8: spl: Fix container header parser issue

Current container parser only load 0x400 as container header size.
However, the signature block in container header may exceed 0x400 size,
when using certificate or 4096bits RSA keys to sign image, so we
have to load the entire header according to container length field.
Otherwise the container authentication will fail

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit f435435f2e8367dc3f689d6ba946441a54acad0a)
arch/arm/mach-imx/imx8/parser.c