summaryrefslogtreecommitdiffstats
path: root/lib/sha256.c
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/sha256.c
parent097dd3e0a9c4b07909dfa2d97d202f74856cfa81 (diff)
downloadtalos-obmc-uboot-2842c1c24269a05142802d25520e7cb9035e456c.tar.gz
talos-obmc-uboot-2842c1c24269a05142802d25520e7cb9035e456c.zip
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/sha256.c')
-rw-r--r--lib/sha256.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sha256.c b/lib/sha256.c
index 7348162575..3212baba5f 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;
OpenPOWER on IntegriCloud