This serie adds a stage pre-load before launching an image. This stage is used to read a header before the image and this header contains the signature of the full image. So u-boot may check the full image before using any data of the image.
Changelog: v2: - move the code to image-pre-load - add support of stage pre-load for spl - add support of stage pre-load on spl_ram Philippe Reynes (6): lib: allow to build asn1 decoder and oid registry in SPL lib: crypto: allow to build crypyo in SPL lib: rsa: allow rsa verify with pkey in SPL common: image: add a stage pre-load cmd: bootm: add a stage pre-load common: spl: fit_ram: allow to use image pre load cmd/Kconfig | 9 ++ cmd/bootm.c | 2 +- common/Kconfig.boot | 33 +++++ common/Makefile | 1 + common/bootm.c | 33 +++++ common/image-pre-load.c | 291 ++++++++++++++++++++++++++++++++++++++++ common/spl/spl_ram.c | 21 ++- include/image.h | 10 ++ lib/Kconfig | 6 + lib/Makefile | 9 +- lib/crypto/Kconfig | 15 +++ lib/crypto/Makefile | 19 ++- lib/rsa/Kconfig | 8 ++ 13 files changed, 446 insertions(+), 11 deletions(-) create mode 100644 common/image-pre-load.c -- 2.17.1