diff options
author | Heiko Schocher <hs@denx.de> | 2014-03-03 15:19:25 +0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-03-22 00:39:33 +0400 |
commit | 2842c1c24269a05142802d25520e7cb9035e456c (patch) | |
tree | c64d4f99376dad8975f0033f7ef8dfc9d4865605 /lib | |
parent | 097dd3e0a9c4b07909dfa2d97d202f74856cfa81 (diff) | |
download | u-boot-2842c1c24269a05142802d25520e7cb9035e456c.tar.xz |
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.c | 5 |
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; |