[U-Boot] [PATCH 3/3] dfu: Introduction of the "dfu_checksum_method" env variable for checksum method setting
Marek Vasut
marex at denx.de
Mon Mar 31 11:04:13 CEST 2014
On Monday, March 31, 2014 at 10:48:49 AM, Lukasz Majewski wrote:
> Up till now the CRC32 of received data was calculated unconditionally.
> The standard crc32 implementation causes long delays when large images
> were uploaded.
You might want to check common/cmd_hash.c and include/hash.h for the
hash_command() call. It does the resolution of the hash algorithm from it's name
and you can operate also SHA1 and SHA256 with it. It would be nice if you could
just extend it a bit and use that instead of adding another ad-hoc mechanism.
Do you think it'd be possible to reuse it please ?
Best regards,
Marek Vasut
More information about the U-Boot
mailing list