arm: uncompress: verify sha256 if enabled
Add piggydata verification before the ARM uncompress function.
This calculates the sha256sum of the compressed barebox binary and only
continues if the builtin sha256sum matches the calculated sha256sum.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 6ca22c9 commit a0dbc68b50a288853e647e868117ba62d2d3aac7
@Rouven Czerwinski Rouven Czerwinski authored on 6 Aug 2019
Sascha Hauer committed on 7 Aug 2019
Showing 1 changed file
View
arch/arm/cpu/uncompress.c