summaryrefslogtreecommitdiff
path: root/include/u-boot
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-09-08 21:23:55 -0400
committerTom Rini <[email protected]>2021-09-08 21:23:55 -0400
commit4412fd8ba2ce5945d04f4b181a96e05576c46bf2 (patch)
tree68d860b82ae6b1023a52810481bd0263883505f9 /include/u-boot
parent1c02fd4686e7bc17b583b55cc6f2e3e83f38b381 (diff)
parent0b905e25813a0b4e368730a147dadc7f55150edc (diff)
Merge branch '2021-09-08-fix-FIT-hash-algos-in-SPL'
- Merge some fixes to how we enable hash algorithms for FIT images in SPL. This fixes a few cases where we should have had some options enabled, but did not. This also removes otherwise unused options in a few other cases.
Diffstat (limited to 'include/u-boot')
-rw-r--r--include/u-boot/md5.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/u-boot/md5.h b/include/u-boot/md5.h
index e09c16a6e3f..6d48592aa64 100644
--- a/include/u-boot/md5.h
+++ b/include/u-boot/md5.h
@@ -8,6 +8,8 @@
#include "compiler.h"
+#define MD5_SUM_LEN 16
+
struct MD5Context {
__u32 buf[4];
__u32 bits[2];
@@ -28,7 +30,7 @@ void md5 (unsigned char *input, int len, unsigned char output[16]);
* 'output' must have enough space to hold 16 bytes. If 'chunk' Trigger the
* watchdog every 'chunk_sz' bytes of input processed.
*/
-void md5_wd (unsigned char *input, int len, unsigned char output[16],
- unsigned int chunk_sz);
+void md5_wd(const unsigned char *input, unsigned int len,
+ unsigned char output[16], unsigned int chunk_sz);
#endif /* _MD5_H */