summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2014-03-03 12:19:25 +0100
committerTom Rini <trini@ti.com>2014-03-21 16:39:33 -0400
commit2842c1c24269a05142802d25520e7cb9035e456c (patch)
treec64d4f99376dad8975f0033f7ef8dfc9d4865605 /lib
parent097dd3e0a9c4b07909dfa2d97d202f74856cfa81 (diff)
downloadu-boot-imx-2842c1c24269a05142802d25520e7cb9035e456c.zip
u-boot-imx-2842c1c24269a05142802d25520e7cb9035e456c.tar.gz
u-boot-imx-2842c1c24269a05142802d25520e7cb9035e456c.tar.bz2
fit: add sha256 support
add sha256 support to fit images Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/sha256.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sha256.c b/lib/sha256.c
index 7348162..3212bab 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -258,14 +258,15 @@ void sha256_csum_wd(const unsigned char *input, unsigned int ilen,
{
sha256_context ctx;
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
- unsigned char *end, *curr;
+ const unsigned char *end;
+ unsigned char *curr;
int chunk;
#endif
sha256_starts(&ctx);
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
- curr = input;
+ curr = (unsigned char *)input;
end = input + ilen;
while (curr < end) {
chunk = end - curr;