From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] RFC: extended image formats
Date: Wed, 28 Feb 2007 09:58:09 -0500 [thread overview]
Message-ID: <45E59881.4060402@smiths-aerospace.com> (raw)
In-Reply-To: <625fc13d0702280621l3aa02837m7ed896bba79f3df6@mail.gmail.com>
Josh Boyer wrote:
> On 2/27/07, Wolfgang Denk <wd@denx.de> wrote:
>> Hello,
>>
>> I'm trying to figure out what could be done to add (at least in some
>> cases) more information to U-Boot images.
>>
>> In this case, the existing CRC32 checksum is not sufficient;
>> therequirement is to use some stronger hashes (md5 or sha1) to verify
>> the correctness of the kernel and file system images.
>
> Just curious, but why isn't CRC32 sufficient exactly?
>
> josh
CRC32 is pretty weak with respect to:
* Multibit errors:
* It will detect all single bit errors - good
* It will detect all two bit errors up to a block size that
is dependent on the CRC length & polynomial (2KBytes for
CRC-32 IIRC, but I may recall incorrectly - much less than
a u-boot image size in any case) - bad
* It detects some multibit errors but not all of them - bad
* Cryptography: it is trivial (cryptographically speaking) to "fix
up" the CRC after changing something in the block it is
covering - very bad.
Ref:
<http://en.wikipedia.org/wiki/List_of_checksum_algorithms>
<http://en.wikipedia.org/wiki/Cyclic_redundancy_check>
HTH,
gvb
prev parent reply other threads:[~2007-02-28 14:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-27 22:29 [U-Boot-Users] RFC: extended image formats Wolfgang Denk
2007-02-28 13:51 ` Jerry Van Baren
2007-02-28 15:40 ` Txema Lopez
2007-02-28 14:21 ` Josh Boyer
2007-02-28 14:58 ` Jerry Van Baren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45E59881.4060402@smiths-aerospace.com \
--to=gerald.vanbaren@smiths-aerospace.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox