diff options
author | Heiko Schocher <hs@denx.de> | 2014-03-03 12:19:30 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-03-21 16:40:38 -0400 |
commit | 29a23f9d6c533f8371be3ae0268c4c75866291b2 (patch) | |
tree | cb7e69f6a7903ac5f63c03f99aa4f34b9fd151d7 /lib/rsa/rsa-checksum.c | |
parent | 6bf4ca076f8c7a3c1c5abd1cbb059516f7af15df (diff) | |
download | talos-obmc-uboot-29a23f9d6c533f8371be3ae0268c4c75866291b2.tar.gz talos-obmc-uboot-29a23f9d6c533f8371be3ae0268c4c75866291b2.zip |
tools, fit_check_sign: verify a signed fit image
add host tool "fit_check_sign" which verifies, if a fit image is
signed correct.
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/rsa/rsa-checksum.c')
-rw-r--r-- | lib/rsa/rsa-checksum.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/rsa/rsa-checksum.c b/lib/rsa/rsa-checksum.c index a9d096d455..32d6602e97 100644 --- a/lib/rsa/rsa-checksum.c +++ b/lib/rsa/rsa-checksum.c @@ -4,14 +4,18 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#ifndef USE_HOSTCC #include <common.h> #include <fdtdec.h> -#include <rsa.h> -#include <sha1.h> -#include <sha256.h> #include <asm/byteorder.h> #include <asm/errno.h> #include <asm/unaligned.h> +#else +#include "fdt_host.h" +#endif +#include <rsa.h> +#include <sha1.h> +#include <sha256.h> /* PKCS 1.5 paddings as described in the RSA PKCS#1 v2.1 standard. */ |