<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/common/cmd_hash.c, branch v2013.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>Add hash command to perform hashing using various algorithms</title>
<updated>2012-12-11T20:17:34+00:00</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2012-12-05T14:46:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=bf36c5d521c17460553e39d82232a51273b83aed'/>
<id>bf36c5d521c17460553e39d82232a51273b83aed</id>
<content type='text'>
This new command supports hashing SHA1 and SHA256. It could be extended
to others such as MD5 and the CRC algorithms. The syntax is modeled on
those:

   hash &lt;algorithm&gt; &lt;address&gt; &lt;length&gt; [*&lt;dest_addr&gt; | &lt;dest_envvar&gt;]

to calculate a hash, and:

   hash -v &lt;algorithm&gt; &lt;address&gt; &lt;length&gt; [*&lt;verify_addr&gt; | &lt;verify_envvar&gt;]

to verify a hash.

Use CONFIG_CMD_HASH to enable the command, CONFIG_SHA1 to enable SHA1 and
CONFIG_SHA256 to enable SHA256.

The existing sha1sum command remains.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This new command supports hashing SHA1 and SHA256. It could be extended
to others such as MD5 and the CRC algorithms. The syntax is modeled on
those:

   hash &lt;algorithm&gt; &lt;address&gt; &lt;length&gt; [*&lt;dest_addr&gt; | &lt;dest_envvar&gt;]

to calculate a hash, and:

   hash -v &lt;algorithm&gt; &lt;address&gt; &lt;length&gt; [*&lt;verify_addr&gt; | &lt;verify_envvar&gt;]

to verify a hash.

Use CONFIG_CMD_HASH to enable the command, CONFIG_SHA1 to enable SHA1 and
CONFIG_SHA256 to enable SHA256.

The existing sha1sum command remains.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
