[U-Boot] [PATCH 3/3 v2] gen: Add sha256 option to hash command
Simon Glass
sjg at chromium.org
Thu Feb 28 12:24:39 CET 2013
Hi Akshay,
On Thu, Feb 28, 2013 at 3:00 AM, Akshay Saraswat <akshay.s at samsung.com> wrote:
> sha256 support is added to "hash" command which can be used
> to test SHA 256 hash algorithm.
>
> Tested with command "hash sha256 0x40008000 0x2B 0x40009000".
> Used mm and md to write a standard string to memory location
> 0x40008000 and ran the above command to verify the output.
>
> Signed-off-by: ARUN MANKUZHI <arun.m at samsung.com>
> Signed-off-by: Akshay Saraswat <akshay.s at samsung.com>
> ---
> Changes since v1:
> - Added sha256 support to "hash" command instead of new sha256 command.
>
> common/cmd_hash.c | 46 ++++++++++++++++++++++++++++++++++++++++-
> include/configs/exynos5250-dt.h | 1 +
This code should go in hash.c. Please see 'struct hash_algo' at the
top of this file. You can add your new hash function in there. There
really is no need to change cmd_hash I think.
Also the config file change should go in a separate patch.
> 2 files changed, 46 insertions(+), 1 deletion(-)
>
Regards,
Simon
More information about the U-Boot
mailing list