Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 12:40 PM
Dries Schellekens
 
Posts: n/a
Default Re: Question related to the Hash-Algorithms used for the Ports

Sebastian Rother wrote:

> During a report of the german news-website "Heise.de" experts
> (Christian Rechberger and Christophe De Cannihre) on the Crypto2006 (a
> conference) talked about at least one practical attack aggainst SHA-1.


It is De Cannihre. I should know because was a collegue of me for more
than 3 year

The results of their attack will only be presented today during the NIST
Second Cryptographic Hash Workshop
http://www.csrc.nist.gov/pki/HashWorkshop/program.htm

> The demonstration was made with a limited Version of SHA-1 but
> cryptographic scientist said the attack would also be practical again
> the normal version wich is widly in use.
>
> Rechberger and De Cannihre said that they exspect a even more
> practical attack against the normal SHA1 after some optimisations of
> their method.


The limited version is 64 rounds out of 80. Breaking the full version
will definately require bigger time complexity. Say a few year with a
few 1000 computers. That is more than the release cycle of OpenBSD

And the attack only allows 25% of the message to be freely selected, the
other 75% is determined by attack. In the case of ports the message is
compressed (tar.gz), so rather random. It is highly unlikely you can
find a collision of 2 almost random compressed packages. The attack
could be a bit more practical if the messages are ASCI text (on heise.de
they suggest html documents), but this is not the case.

BTW this is documented on http://www.cryptography.com/cnews/hash.html
"Q: Do these attacks allow somebody to break tools that use MD5 or SHA-1
to check for malicious binaries?
A: Not usually, as this would require a preimage attack. It would,
however, be possible for someone to construct an innocuous program and a
malicious program with the same hash. If this adversary could get the
innocuous version on the "good" list (e.g. by having a trusted authority
sign the hash value), the malicious program would also be accepted."

> The Ports-System uses MD5 and SHA1 wich are both now, at least for
> cryptographic experts, brocken and not realy trustfull anymore. So 2 of
> 3 Algorithms used by the Ports-System are in fact weak.


Finding a collision for both MD5 and SHA-1 at the same time is
completely improbable.

> Wouldn`t it be about time to think about alternatives?
> Experts said that SHA 512 may rise the border for an sucessfull attack.
>
> I would like to request the replacement of SHA-1 with SHA512 and to
> kick out MD5 out of the Ports-System.
> Using RipeMD with more bits would be usefull too (Ripe-MD is not
> limited to 160Bits).


RIPEMD-128 is not so safe either, while RIPEMD-160 should be fine for
the time being. See http://www.infosec.sdu.edu.cn/paper/...pemd-attck.pdf

> MD5 could get replaced with Whirpool wich is recommended by the
> NESSIE-Project and wich is also a ISO-Standard.
> Alternatives could be Tiger2 or HAVAL wich are also considred secure.


HAVAL is not so safe either. See http://eprint.iacr.org/2004/199.pdf

Tiger2 is a rather new version of Tiger, so it has not be analysed
thoroughly. However, the performance of Tiger sucks on non-64 bit
processors, because it has been designed for 64 bit...

> I think one of the Problems is that OpenSSL provides just a wide range
> of unsecure HASH-Functons like MD2/4/5 SHA and now also SHA1.
> The only algorithm considred as secure is the Ripe-MD (or rmd)
> algorithm.


OpenSSL contains a lot of other depreciated cryptographic algorithms,
like RC2, RC4, DES. Don't use what is not secure.

> So no matter what you`ll do (as developers of OpenBSD) the question
> came up one more time and I think some peoples should start looking for
> alternative HASH-Algorithms used in the Ports.
>
>
> Links for Nessie:
> http://www.cryptonessie.org/


The NESSIE project stopped more than 3 years ago and this was before the
Wang et al. attacks were published. So the results are no longer up to
date. It is better to use the suggestions from the ECRYPT project. See
http://www.ecrypt.eu.org/documents/S...H_STMT-1.1.pdf


Cheers,

Dries

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145