* MA 02111-1307 USA
*/
-#define DEBUG
#ifndef USE_HOSTCC
#include <common.h>
#endif
#if defined(CONFIG_FIT)
+#include <md5.h>
#include <sha1.h>
static int fit_check_ramdisk (const void *fit, int os_noffset,
int verify);
#else
#include "mkimage.h"
+#include <md5.h>
#include <time.h>
#include <image.h>
#endif /* !USE_HOSTCC*/
(unsigned char *) value);
*value_len = 20;
} else if (strcmp (algo, "md5") == 0 ) {
- printf ("MD5 not supported\n");
- *value_len = 0;
+ md5 ((unsigned char *)data, data_len, value);
+ *value_len = 16;
} else {
debug ("Unsupported hash alogrithm\n");
return -1;