From: Wolfgang Denk Date: Sat, 03 Nov 2012 16:23:05 +0100 Subject: [U-Boot] [PATCH 09/17] Add sha256 command for hashing In-Reply-To: <1351902453-27956-10-git-send-email-sjg@chromium.org> References: <1351902453-27956-1-git-send-email-sjg@chromium.org> <1351902453-27956-10-git-send-email-sjg@chromium.org> Message-ID: <20121103152305.1EF75200255@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message <1351902453-27956-10-git-send-email-sjg@chromium.org> you wrote: > From: ARUN MANKUZHI > > sha256 command is added which can be used to test SHA 256 hash > algorithm. > > Signed-off-by: ARUN MANKUZHI > Signed-off-by: Simon Glass > --- > README | 1 + > common/Makefile | 1 + > common/cmd_sha256.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++ > include/config_cmd_all.h | 1 + > 4 files changed, 60 insertions(+), 0 deletions(-) > create mode 100644 common/cmd_sha256.c Please make sure interface and functionality is similar to what we do elsewhere, i. e. with the crc32 command. > +U_BOOT_CMD( > + sha256, 4, 1, do_sha256, > + "print hash result", > + " " > +); What is "" or "" supposed to mean? I don;t understand this. "" should not be mandatory. I would appreciate if we could use similar help text as with the crc32 command: crc32 - checksum calculation Usage: crc32 address count [addr] - compute CRC32 checksum [save at addr] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Love is an ideal thing, marriage a real thing; a confusion of the real with the ideal never goes unpunished." - Goethe