From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Saarnio Date: Wed, 23 Nov 2005 09:22:05 +0100 (MET) Subject: [U-Boot-Users] SHA1 Hash calculation Message-ID: <31192263.1132734126001.JavaMail.root@eni-cpps05.sth.basefarm.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >> >> I am wondering whether it would be worth to implement a SHA1 hash >> calculation over given memory address range. In this way one could >> assure for example that the binary image version is correct or that >> binary image is intact. > >Is the existing CRC32 checksum not good enough for your purposes? The CRC32 is not collision-proof in similar fashion that SHA1. In real life, if two binary images give the same SHA1 checksum, you can say that these binaries are identical. With CRC32 this is not so - or at least I would not count on that :-) br, Tom