Slashdot Mirror


New, Faster Attack against SHA-1 Revealed

VxSote writes "According to Bruce Schneier's blog, a team of Chinese cryptographers has announced new results against SHA-1 that speed up the time required to find collisions compared to their previously published attack. Schneier says that a SHA-1 collision search is now 'squarely in the realm of feasibility,' and that further improvements are expected."

298 comments

  1. Is that the attack... by RevDobbs · · Score: 5, Funny

    Is that the same attack the chinese exchange student used in Lineage II?

    1. Re:Is that the attack... by heatdeath · · Score: 1

      no.

      --
      I'm sorry. The number you have reached is imaginary. Please rotate your phone 90 degrees and try again.
    2. Re:Is that the attack... by Anonymous Coward · · Score: 2, Funny

      ...that speed up the time required to find collisions...

      They sped up time? Impressive!

    3. Re:Is that the attack... by Omnieiunium · · Score: 2, Funny

      No, that was with two Level 68 Knights with Swords of Death.

    4. Re:Is that the attack... by isorox · · Score: 3, Funny

      They sped up time? Impressive!

      Not really. They moved, which meant that, relative to them, they sped up time for the rest of us!

    5. Re:Is that the attack... by Dwonis · · Score: 4, Funny
      Let's see if they're the same attack, by comparing the two files that Schneier has linked to in the last few weeks:

      $ sha1sum wang_sha1_v2.pdf sha1-crypto-auth-new-2-yao.pdf
      f4489045822c1940a3 71c87d7d54cfca5fedd6f7 wang_sha1_v2.pdf
      f4489045822c1940a3 71c87d7d54cfca5fedd6f7 sha1-crypto-auth-new-2-yao.pdf

      So it's the same attack.

      Oh, wait...

    6. Re:Is that the attack... by Dwonis · · Score: 0

      (Note that it's not *actually* the same attack.)

    7. Re:Is that the attack... by I'm+Troy+McClure · · Score: 1

      Dingo's eating babies???!! WhAT!!!

      --
      larryvagina@gmail.com
  2. The world is collapsing around me! by frinkacheese · · Score: 5, Funny

    Next there will be massive ASIC machines crunching your PGP ciphertext and nobody will be able to proove anything until Lt Cmdr Data comes up with another Fractal Encryption algorythm that even the Borg cannot break.

    1. Re:The world is collapsing around me! by Anonymous Coward · · Score: 0

      Feh. I can break that regardless of keylength in constant-time with an optimized bogosort.

  3. oh God bless them, those kooky spookies by peculiarmethod · · Score: 4, Funny

    I repeat the saying I've heard comes from inside the NSA: "Attacks always get better; they never get worse."

    And THAT kind of forward thinking, gentlemen, is why we're number one over here in the good ol' U.S. of A. So glad we spend money in all the right places.

    --
    ** "It's not my job to stand between the people talking to me, and the ones listening to me." -- Pego the Jerk
    1. Re:oh God bless them, those kooky spookies by kevin_conaway · · Score: 2, Insightful

      Is that why a team from CHINA are the ones making this discovery?

      /From the USA :)

    2. Re:oh God bless them, those kooky spookies by frinkacheese · · Score: 2, Informative

      Yeah but us Brits cracked Enigma, no matter what Holly Wood would have y'all believe.

      OK so thats bait.

    3. Re:oh God bless them, those kooky spookies by Anonymous Coward · · Score: 5, Informative

      The NSA doesn't release its finding about new attacks against encryption algos. They use the info to crack and keep secure. Promote AES as a standard, and have a decades worth of research about useful attacks against AES that no-one knows about but the NSA.

      Like public-key encryption. People in Britain discovered it first, but kept the research secret.

    4. Re:oh God bless them, those kooky spookies by tool462 · · Score: 1, Funny

      Yeah, well us 'mericans invented the Navajo cipher, so there! /Tongue planted firmly in cheek

    5. Re:oh God bless them, those kooky spookies by frinkacheese · · Score: 1


      You should have kept speaking American, I doubt they understood half of what you said anyway. mv tongue /dev/cheek

    6. Re:oh God bless them, those kooky spookies by Surt · · Score: 1

      Heh heh, we wish the team from CHINA were the discoverers. What they really are is the _publishers_.

      --
      "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
    7. Re:oh God bless them, those kooky spookies by Anonymous Coward · · Score: 0

      uhhh firstly anyone who considers hollywood a valid source of historical accuracy should consider a career with the Daily Mail :)

      Secondly, if you bothered to pay attention to the credits at the end of the movie, it acknowledged the real ships that actually captured the enigma machines.

      in any case at the end of the day does it really matter if it was us (yes i'm a briton) or the americans who cracked the enigma? we were in the the war together, and i'm pretty sure if either one of us were absent from it, chances are Europe might be looking a little different today.

    8. Re:oh God bless them, those kooky spookies by andreyw · · Score: 2, Funny

      That didn't do what you think it did. You just wiped out your cheek.

    9. Re:oh God bless them, those kooky spookies by Sephiriz · · Score: 3, Insightful

      Right, because every other nation freely gives away any edge it has in the world. Its like saying the U.S. was a spoiled brat because it didn't make public the information on how to construct a nuclear bomb.

      Secrecy DOES give an advantage, and ALL countries employ it and benefit from its advantages. I don't know where you come from, but if this isn't the case in your country, then perhaps they're just incapable of keeping secrets or not innovative enough to have any worth keeping.

    10. Re:oh God bless them, those kooky spookies by dnoyeb · · Score: 2, Insightful

      LOL, yea...

      If there exists a flaw, it does not matter that we are the only ones that know about it. Sooner or later one of US is going to sell it.

    11. Re:oh God bless them, those kooky spookies by JonXP · · Score: 3, Informative

      The NSA already said that people should stop using SHA-1 in favor of other methods. It can be assumed they already knew about attacks.

    12. Re:oh God bless them, those kooky spookies by Anonymous Coward · · Score: 0
      Depends on the device characteristics.

      mv /ass/head ./

    13. Re:oh God bless them, those kooky spookies by Anonymous Coward · · Score: 0
    14. Re:oh God bless them, those kooky spookies by dustmite · · Score: 1

      Sure. Let's think about this for a moment. The NSA knows about vulnerabilities in widely used encryption, but want to keep it secret to give them the US an "edge". Pretty soon thousands of US companies and even government and military organisations are using that encryption. Sooner or later of course someone finds the vulnerability, and bam, a huge section of the US economy is suddenly exposed. Real clever going there with that "advantage" .. good luck with it.

    15. Re:oh God bless them, those kooky spookies by the+way,+what're+you · · Score: 0
      mv tongue /dev/cheek
      oh god, it's geek analingus
      --
      example.org - powered by Linux!
    16. Re:oh God bless them, those kooky spookies by Anonymous Coward · · Score: 0

      Everyone(at least everyone who has been paying attention) has known about weaknesses in SHA-1 for years now.

    17. Re:oh God bless them, those kooky spookies by p2sam · · Score: 2, Insightful

      NSA has been known to "fix" a major flaw in what was SHA, but now known as SHA-0. The did a minor change to the algorithm, but didn't tell anyone why they changed it, and what attack that change was meant to fix.

      It's not until years later that civilian crytographers discovered an attack that works fairly well with SHA-0, but not with the modifications made by the NSA.

      So do give the NSA some credit. :)

    18. Re:oh God bless them, those kooky spookies by kasperd · · Score: 1

      The did a minor change to the algorithm, but didn't tell anyone why they changed it, and what attack that change was meant to fix.

      I have heard something like that before, except last time I heard it, it was about DES. Did the same thing happen with both DES and SHA?

      --

      Do you care about the security of your wireless mouse?
    19. Re:oh God bless them, those kooky spookies by p2sam · · Score: 3, Interesting

      not quite.

      They fixed SHA up cuz they knew of a flaw, but didn't explain what the fix does.

      For DES, they were ... ahem... they realize that DES was DAMNED good. And allegedly they knew of 2 theoretical attacks 20 years before the civilian academics.

      But their interference in DES is to restrict DES DOWN to a 56-bit keyspace, cuz they knew that DES was TOO good. :)

      Almost anyone with a million bucks can search through 56-bit key space nowadays. As far as I know, there currently does not exist a DES attack that is more efficient (cheaper) than exhaustive search. Not bad for a 20 year old algorithm, huh? That's SECURITY!!

      It is commonly believe in the crypto community the weakest point of attack for DES is its small key space.

      Now imagine how many more years of service we could had squeezed out of DES, if the keyspace was set to 128?

    20. Re:oh God bless them, those kooky spookies by Anonymous Coward · · Score: 1, Informative

      The NSA also changed the s-boxes, making it more resistant to differential cryptanalysis (a technique not discovered by others until years later). Both differential and linear cryptanalysis are more efficient than a brute force search, but massive amounts of known cyphertext is required.

    21. Re:oh God bless them, those kooky spookies by Synli · · Score: 2, Insightful

      The NSA doesn't release its finding about new attacks against encryption algos. They use the info to crack and keep secure. Promote AES as a standard, and have a decades worth of research about useful attacks against AES that no-one knows about but the NSA.

      You're so wrong. When NSA discovered a flaw in SHA-0, they did not announce what flaw it was (to protect those who used it after they recommended it) and then released a new strengthened version, called SHA-1 (and yes, they recommended everyone to migrate to SHA-1 from the insecure SHA-0). Stop being paranoid, and get the facts before making a fool of yourself.

      --
      "Two things inspire me to awe -- the starry heavens above and the moral universe within." - Albert Einstein
    22. Re:oh God bless them, those kooky spookies by Anunnaki · · Score: 1

      money? right places ? :-x

    23. Re:oh God bless them, those kooky spookies by finkployd · · Score: 1

      Nope, that would be the Poles who cracked the Enigma. However you get massive props for mechanising the process and making it happen fast enough to be useful as wartime intelligence.

      However, you get also get docked a point for having a Field Marshal (Monty) who was too arrogent to use this intelligence and who constantly screwed up because of this. Patton and Bradley end up with a lot of credit as tactical geniuses primarily due to their use of the intelligence that Ultra gave them.

      You also lose a point for persecuting perhaps the most important figure you had in this game (Turing), because he was later revealed to be a homosexual. Granted, the US would have done the same thing then, and unfortunately we probably would today as well.

      Finkployd

    24. Re:oh God bless them, those kooky spookies by Anonymous Coward · · Score: 0

      yes good old - "we have big secrets and won't share because no one could be as clever as us" horse shit.

      "Yes,", "We". Also, your opening hyphen is unecessary (as the quotes perform the same function), but, if you use one, you should have a matching closing hyphen: 'us" - horse'.

      while the usa sits on it's sandpile like a spoilt brat, the rest of the world ill pass them by

      "While", "USA", "its", "spoiled" (USA only), "will", "by.".

    25. Re:oh God bless them, those kooky spookies by timmarhy · · Score: 1

      your logic is fundamentally flawed, becuase there is no such thing as a secret. all they are doing is forcing the rest of the world to reinvent their work. your not clever, your not orginal and other people are perfectly capable of discovering the same flaws the NSA does. your example of the atomic bomb proves my point completely - how many countries have developed their own nukes?? 10 - 20? you can find plans for it on the bloody internet. oh an nice try at flaming my country, but waving that little flag at me doesn't work.

      --
      If you mod me down, I will become more powerful than you can imagine....
    26. Re:oh God bless them, those kooky spookies by Sephiriz · · Score: 1

      I think you took this a little to personally, but in any case, I find it ironic you would say my logic is flawed when you deny the existence of "secrets". Thats aside the point, so back to the main issue:

      Secrecy gives an advantage, and obviously that advantage is only temporary, but nonetheless secrecy is a powerful tool. Anyone would think twice before dealing with another country if you thought they might have nukes (Israel, for example. Many suspect they have nuclear weapons, but I doubt anyone is willing to actually provoke a response to see if this is true.) As for the countries that have nuclear weapons: USA, Russia, China, UK, India, Pakistan, and North Korea (?). Oh, and France.... yeah, forgot about them. I still get your point that the plans are public, but the U.S. had a BIG advantage when it was the only nuclear country. It lost that advantage when Russia successfully developed nuclear weaponry.

      As for your country (wherever that is), it wasn't as much a direct flame as a general remark at how ridiculous it would be if a country didn't keep its own secrets. History has shown repeatedly that secrecy provides advantages, be it temporary or long-term. If the NSA knows about a vulnerability years before anyone else, then perhaps they might find some (potentially dubious) advantages in keeping the rest of the world in ignorance ;)

  4. Big deal by That's+Unpossible! · · Score: 5, Funny

    All they did was look for a near-collision
    differential path which has low Hamming weight in the "disturbance vector" where each 1-bit represents a 6-step local collision. Then they simply adjusted the differential path in the first round to another possible differential path so as to avoid impossible consecutive local collisions and truncated local collisions. Then obviously the final step taken was to transform two one-block near-collision differential paths into a twoblock
    collision differential path with twice the search complexity.

    Duh...

    --
    Ironically, the word ironically is often used incorrectly.
    1. Re:Big deal by leonmergen · · Score: 1, Informative

      Would someone with mod points please mod parent funny?

      I, for one, would not have thought of that... :-)

      --
      - Leon Mergen
      http://www.solatis.com
    2. Re:Big deal by Rocky1138 · · Score: 1, Funny

      Yeah, what he said.

    3. Re:Big deal by Anonymous Coward · · Score: 0

      Glad I'm not the only one who thought it was a joke :)

    4. Re:Big deal by MikeB90 · · Score: 2, Funny

      He's right. This is really straightforward and intuitively obviou. Nothing to learn here folks, move along

    5. Re:Big deal by Krach42 · · Score: 1, Funny

      You lost me at "All the did was..."

      --

      I am unamerican, and proud of it!
    6. Re:Big deal by Raelus · · Score: 0

      Mod parent up. That was great.

      --
      "It is the stillest words which bring the storm. Thoughts that come with doves' footsteps guide the world."
    7. Re:Big deal by Jeff+DeMaagd · · Score: 3, Funny

      Yeah. It would have only been hard if they also had to deal with invariant -manifolds.

    8. Re:Big deal by Rei · · Score: 0

      You forgot to add a link to where he describes this process and how he derrived it. A fascinating read, really.

      --
      Kneel Before Christ!
    9. Re:Big deal by gardyloo · · Score: 4, Funny

      You forgot to add a link to where he describes this process and how he derrived it. A fascinating read, really.

      Not Found
      The requested URL /blog/archives/2005/08/new_cryptanalyt_details.htm l was not found on this server.


          Oh, yes, I've just wet my pants with excitement.

    10. Re:Big deal by gardyloo · · Score: 5, Funny

      Invariant manifolds? You were lucky! We dreamed of invariant manifolds. We had to make do with symplectic diffeomorphisms of the torus, what with its four fixed points, you know, assuming that the eigenvalues of the Jacobi matrix are not equal to minus unity at any point... and we liked it.

    11. Re:Big deal by quanticle · · Score: 2, Funny

      But did they use a flux capacitor?

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    12. Re:Big deal by mav[LAG] · · Score: 1

      Looxury...

      --
      --- Hot Shot City is particularly good.
    13. Re:Big deal by maelstrom · · Score: 1

      Who turned out the lights?

      --
      The more you know, the less you understand.
    14. Re:Big deal by Anonymous Coward · · Score: 0

      Oh, yes, I've just wet my pants with excitement.

      I can practically smell the excitement in the air! It's so thick you can almost cut it.

    15. Re:Big deal by kurzweilfreak · · Score: 1

      Well duh, what this all really means is that they found out how to make it work at 44 miles per hour.

      --

      kurzweil_freak

      5th Kyu Genbukan Ninpo/KJJR student

      Be the darkness that allows the light to shine.

    16. Re:Big deal by PakProtector · · Score: 1

      Who was it that said, "The question isn't whether or not [the theory] is crazy. The question is whether it's crazy enough."

      --

      Edward@Tomato - /home/Edward/ man woman
      man: no entry for woman in the manual.
      "Qua!?"

    17. Re:Big deal by ben_rh · · Score: 1

      Cardboard minus unity? You were lucky.

    18. Re:Big deal by Baloo+Ursidae · · Score: 1

      Oh yeah!? Well, I got the same result by realigning the deflector array and routing more power through the flux capacitor!

      --
      Help us build a better map!
  5. Now can we panic? by John.P.Jones · · Score: 4, Funny
    Alas poor SHA-1, I knew him...

    Okay so we still have SHA-256 and SHA-512 but can we really feel good about them?

    Wanted: One reliable hash...

    1. Re:Now can we panic? by MightyMartian · · Score: 4, Funny

      Commit everything to memory, keep a cyanide pill close by and hope like hell that that crazy guy with the tinfoil hat is wrong.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    2. Re:Now can we panic? by kihjin · · Score: 2, Funny

      Wanted: One reliable hash...

      I know of one. It has a problem with snack collisions though... or rather, the user has a problem with snack collisions. ;)

      --
      This slashdot-related signature is a stub. You can help kihjin by expanding it.
    3. Re:Now can we panic? by evanism · · Score: 0

      I've read that to crack a code: big, expensive machines running billions of calcs over hundreds of years are needed. Many billions in Watts.

      I've also read a 80 Watt soldering iron can also find the same code in minutes.....
       

      --
      Just bought a new quantum computer, but I'm uncertain how it works.
    4. Re:Now can we panic? by Anonymous Coward · · Score: 0

      Okay so we still have SHA-256 and SHA-512 but can we really feel good about them?

      Sure we can, but I heard that in South Korea, only old people use SHA-256 and SHA-512.

    5. Re:Now can we panic? by chrysrobyn · · Score: 2, Funny

      Commit everything to memory, keep a cyanide pill close by and hope like hell that that crazy guy with the tinfoil hat is wrong.

      Buddy, if you're keeping that cyanide pill close by, the guy with the tinfoil hat isn't the only crazy one. You might as well label yourself correctly and put your own tinfoil hat on.

    6. Re:Now can we panic? by Stauf · · Score: 1

      Commit everything to memory, keep a cyanide pill close by and hope like hell that that crazy guy with the tinfoil hat is wrong.

      You do know he's wearing that hat so people can't read his mind right? Maybe your memory isn't the safest place to store things.

    7. Re:Now can we panic? by Anonymous Coward · · Score: 0

      DUUR... that's why he has to hope the tinfoilers are wrong.

    8. Re:Now can we panic? by Ckwop · · Score: 2, Interesting

      Whirlpool. It's based on the mathematics that gives AES it's proofs of security against certain classes of attack.

      It's slower than SHA-1 but guess what? Security costs CPU cycles. A lot of people tend to forget this most important lesson.

      Simon.

    9. Re:Now can we panic? by Anonymous Coward · · Score: 0

      #!/usr/bin/perl

      my %hash = ();

      has always worked for me...

    10. Re:Now can we panic? by celtic_hackr · · Score: 1

      I still prefer my method of converting all my big secrets to Klingon and then encrypt them in Sindarin, and run them through 3DES and finally Blowfish. And in case that isn't enough I convert the final result to Black speech. Oddly enough the hash is always the same: "One OS to Rule them All and in the Darkness bind them".


      Kind of creepy.

  6. i'll never understand why... by mashedpatatas · · Score: 1, Funny

    i think it's human nature to just look for fault in other's work (in this case, a crypto algorithm)... but wouldn't it be more sensible if they spend their brilliance on creating a more stronger algorithm than proving and finding weaknesses in somebody else's work?

    1. Re:i'll never understand why... by JanneM · · Score: 3, Insightful

      How would you know what you need to improve without knowing the weaknesses of current algorithms?

      --
      Trust the Computer. The Computer is your friend.
    2. Re:i'll never understand why... by leonmergen · · Score: 3, Insightful

      Someone can only improve when he understands his own mistakes...

      --
      - Leon Mergen
      http://www.solatis.com
    3. Re:i'll never understand why... by FLAGGR · · Score: 3, Insightful

      Why create stronger algorithms if no one is going to break them? I'd rather the NSA found the exploits and told the right people, or the world, then somebody with bad intent.

    4. Re:i'll never understand why... by Chabil+Ha' · · Score: 3, Insightful

      Of course it's important to find fault in 'secure' computing. If the white hats don't uncover it first, someone with malicious intent will discover it to their benefit.

      As to your comment about spending time to develope a better algorithm, how do you know it's secure, if you don't try to break it???

      --
      We're all hypocrites. We all have hidden parts, it's the contrast between them that make us more a hypocrite than others
    5. Re:i'll never understand why... by WhipItGood · · Score: 3, Insightful
      If a white hat doesn't, a black hat will. I'd rather find out from someone who'll share the vulnerability rather than exploit it.

      When these algorithms are created, they often represent a time tradeoff, the time to hash/encrypt versus the time to compare the hash/decrypt. These guys are just sharing with the world its time to move on to another algorithm. Although I agree it would be nice to find an algorithm that is guaranteed never to be weak!

    6. Re:i'll never understand why... by Anonymous Coward · · Score: 0

      What motivation is there to make better crypto if the existing stuff is viewed as "good enough"?

    7. Re:i'll never understand why... by $RANDOMLUSER · · Score: 1
      > I think it's human nature to just look for fault in other's work...

      Does anyone else get the delicious irony that this got modded "troll"?

      --
      No folly is more costly than the folly of intolerant idealism. - Winston Churchill
    8. Re:i'll never understand why... by Anonymous Coward · · Score: 0

      I'd rather the NSA found the exploits and told the right people, or the world, then somebody with bad intent.

      I find that sentence disturbing.

    9. Re:i'll never understand why... by Anonymous Coward · · Score: 0

      Anyone who knows something of the history of cryptography will tell you that if the NSA has found an exploit, they LAST thing they'll do is tell the world. They keep all of their abilities very, very secret. Their ideal world is to have everyone using cryptography which is hard for other nations to break, thought to be unbreakable, but trivial for them to break. They could well have known about this for years, and you and I would never know.

    10. Re:i'll never understand why... by heinousjay · · Score: 1

      You mean the moderator meant to mod it +1? How the hell do you know that?

      --
      Slashdot - where whining about luck is the new way to make the world you want.
    11. Re:i'll never understand why... by Hack+Jandy · · Score: 4, Funny

      I'd rather the NSA found the exploits...

      The NSA did this six years ago. Just pick up any phone and ask them.

      HJ

    12. Re:i'll never understand why... by Winkhorst · · Score: 1

      I just find it incomprehensible.

      --
      "Is this Winkhorst a nova criminal?" "No just a technical sergeant wanted for interrogation."
    13. Re:i'll never understand why... by larry+bagina · · Score: 1

      well, they did release perl and that "secure" linux fork.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    14. Re:i'll never understand why... by Anonymous Coward · · Score: 0

      I didn't see what it was modded but I nearly hit the fool laughing when you mentioned it... thanks

    15. Re:i'll never understand why... by Anonymous Coward · · Score: 0

      I think you ment floor not fool.

    16. Re:i'll never understand why... by Anonymous Coward · · Score: 0

      s/understands/knows/

      k?

    17. Re:i'll never understand why... by JebusIsLord · · Score: 1

      I think it's human nature to just look for fault in other's work... ;)

      --
      Jeremy
    18. Re:i'll never understand why... by jiushao · · Score: 1

      Damn chinese plotting against us, we need to spend more money on the NSA to keep us safe.

    19. Re:i'll never understand why... by Anonymous Coward · · Score: 0

      > I'd rather the NSA found the exploits...
      >
      > The NSA did this six years ago. Just pick up any phone and ask them.

      I'm sure they can show you a document stating so, with a matching cryptographically signed hash deposited in a notary 6 years ago...

    20. Re:i'll never understand why... by Anonymous Coward · · Score: 0

      I think it's human nature to just look for fault in others work...

    21. Re:i'll never understand why... by JebusIsLord · · Score: 1

      and so on

      --
      Jeremy
  7. Two questions... by meditation_dude · · Score: 3, Interesting

    One is, is this really relevant when most terrorist threats these days are so low tech? Two, does anyone know what kind of funding the NSA gets these days? I remember a news report a couple years back that said they were deeply out of date with hardware and so forth.

    1. Re:Two questions... by Anonymous Coward · · Score: 0

      Very significant if this would allow someone to, for example, conduct credit card fraud on a massive scale...

    2. Re:Two questions... by Anonymous Coward · · Score: 5, Insightful

      I think that the greatest threat in this case is not terrorists but the institutions such as government and security forces. Terrorists have a great interest in keeping their own transmissions secure but little interest in the communications of others.

      Their tagets are soft, security is fairly low and information can be obtained using people on the street.

      Counterintelligence is a game played by large beauracracies who are at peace at the moment but would really like not to be. It involves the use of large ammounts of resources for the main purpose of maintaining the status quo. Terrorists are not interested in the status quo, they want things to change.

    3. Re:Two questions... by autophile · · Score: 1
      Two, does anyone know what kind of funding the NSA gets these days? I remember a news report a couple years back that said they were deeply out of date with hardware and so forth.

      Come on. You know that report was a plant!

      --Rob

      --
      Towards the Singularity.
    4. Re:Two questions... by Anonymous Coward · · Score: 0

      One is, is this really relevant when most terrorist threats these days are so low tech?

      Who said anything about terrorism? There are other sources of problems in the world.

    5. Re:Two questions... by Chandon+Seldon · · Score: 1

      What crack are the mods smoking?

      This is "News for Nerds" site. Even the mods should understand that encryption breakthroughs have NOTHING TO DO WITH TERRORISTS.

      --
      -- The act of censorship is always worse than whatever is being censored. Always.
    6. Re:Two questions... by PaxTech · · Score: 1

      Terrorists are not interested in the status quo, they want things to change.

      Terrorists want things to change back to the way they were a thousand years ago. So while they're against the status quo, it's only because they're actually really, really against change. They're the ultimate reactionaries.

      Explaining why reactionary fundamentalist terrorists and today's "progressives" both find themselves opposing the same things is left as an exercise to the reader. ;)

      --
      All movements for social change begin as missions, evolve into businesses, and end up as rackets.
    7. Re:Two questions... by LPetrazickis · · Score: 1

      Explaining why reactionary fundamentalist terrorists and today's "progressives" both find themselves opposing the same things is left as an exercise to the reader. ;)

      Well, if we assume that sort of linear scale, then it's because the things are regressions, but not fast enough regressions to satisfy the ultra-reactionaries.;)

      --
      Is this a sigs-optional kind of place? 'Cause I am totally down with that if you know what I mean.
  8. Few Details? No report? No paper? by hoka · · Score: 4, Insightful

    I mean, I'm sure that these guys are the real thing, judging by their past experience breaking SHA-1 and how much notoriety they have. But they have been inconsistent with presenting information. It would be nice to see something thats really solid with information rather than what looks at best like a bit of speculation. Last I checked information on their last attack (2^69) was still pretty thin and I suppose its time to move on to SHA-256 anyways.

    1. Re:Few Details? No report? No paper? by hoka · · Score: 1

      I am self-owned as the paper is actually deep down at the bottom of TFA.

    2. Re:Few Details? No report? No paper? by Krach42 · · Score: 2, Informative

      Also because their most recent attack is 2^63 complexity, which is under the 2^64 complexity that people have already run.

      --

      I am unamerican, and proud of it!
    3. Re:Few Details? No report? No paper? by clap_hands · · Score: 1

      I believe Yin presented two papers on the SHA attacks at CRYPTO 2005 a couple of days ago, and the papers had been circulating publically for a while before that.

    4. Re:Few Details? No report? No paper? by CRCulver · · Score: 1

      There were supposed to be many details and a paper, but the researchers didn't get US visas in time to attend the conference and properly present their work. The delays in issuing visas are a liability to organising any kind of international scholarly symposium in the US.

    5. Re:Few Details? No report? No paper? by Anonymous Coward · · Score: 0

      The paper describes their 2^69 attack, not the improvement to 2^63. They don't have a paper for that yet. I am annoyed by this as well.

    6. Re:Few Details? No report? No paper? by Anonymous Coward · · Score: 0
      There were supposed to be many details and a paper...
      No, there was supposed to be an announcement of the result and that's it; just like their announcement at last year's rump session. A full paper on the results is still in the works.
    7. Re:Few Details? No report? No paper? by rbarreira · · Score: 1

      Last I checked information on their last attack (2^69) was still pretty thin

      Check again.

      --

      The AACS key is NOT 0xF606EEFD628B1CA427BEA93A9CA9773F
  9. Security by bredk · · Score: 5, Funny

    I've just changed away from using SHA-1. Double ROT13 seems most appealing these days. ;)

    --
    http://slashdot.su/
    1. Re:Security by jaseparlo · · Score: 2, Funny

      Hmm, was that message Double Rot13 encrypted? If that's the case, I fear I have violated the DMCA by reading it.

      --
      All available data suggest that regardless of any of this, the sun will still come up tomorrow.
    2. Re:Security by dmaxwell · · Score: 1

      Double ROT-13 is soooo 20th century. I'm using ROT-26!

    3. Re:Security by CRCulver · · Score: 5, Funny

      SHA-1 isn't a cipher, it's a hash algorithm. Therefore, it has nothing to do with encryption (like ROT13), but with authentication. Sorry to ruin your little joke, which has become a tired amusement lamely presented in every new Slashdot story on cryptography.

    4. Re:Security by p3d0 · · Score: 1

      Thanks for taking the karma hit on this one. It had to be said.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    5. Re:Security by cpeikert · · Score: 5, Funny

      Wait a minute, you don't sound sorry at all!

    6. Re:Security by Anonymous Coward · · Score: 0

      Just with authentication? Almost as bad generalization as if I said pantihose is meant to keep your legs warm.

    7. Re:Security by BlueHands · · Score: 1

      Hey! panty house has never kept my legs warm! Sometimes they have gotten me hot thou....

      --
      I mod everyone down who says "I'll get modded down for this." I hate to disappoint.
    8. Re:Security by Fatchap · · Score: 1

      There are many uses for encrpytion, not just to make sure that what you right can not be read by bad people. As you put it confidenitality.

      I would say that a hash is still encryption, but in this case used for integrity as well as for authentication. ROT13 is encryption for confidenitality (just a poor one).

      --
      The only reason some people get lost in thought is because it's unfamiliar territory.
    9. Re:Security by provolt · · Score: 1

      If you would say "that a hash is still encryption" then you would say something completely false.

    10. Re:Security by telecsan · · Score: 1

      News flash! Parent post decrypted! Details at 11...

      Time to go apply for a job at the NSA...

    11. Re:Security by Fatchap · · Score: 1

      Why? A hash is a one way encryption function. Or have I missesd the point of your post?

      --
      The only reason some people get lost in thought is because it's unfamiliar territory.
    12. Re:Security by provolt · · Score: 1

      You definately misunderstood the point of my post. Most because I think you misunderstand the terminology.

      Encryption functions are 1-to-1 and have an inverse. Hash functions are many-to-1 and cannot possibly have an inverse. (Cryptographically secure hashes have other properties about being able to find collisions.)

      A hash is not a "one way encryption function". A hash is a mapping from a large set of items to a smaller set. (e.g. A mapping from all strings that are less than 2^64 bits long to the set of non-negative integers less than 2^160)

      Encryption functions are 1-to-1 functions.

    13. Re:Security by Fatchap · · Score: 2, Interesting

      Where did you get that definition of encryption from?

      Hash functions are many to 1 and cannot possibly have an inverse.

      No, the inverse is computationally unfeasable or unknown. There is no way to prove that it is not possible. Most definitions I can find involve the transformation of plain text into an obscured form cyphertext. The ability to reverse this is not a prerequisit. So it has to satisfy:

      P F = C

      Where P is plain text, F is an encryption function and C is cyphertext.

      The ability to reverse this is not needed, unless the purpose of encryption is to preserve confidentiallity of the plaintext.

      A hash is a mapping from a large set of items to a smaller set.

      No, it could be the opposite of this, taking a small set of items and mapping them to a larger set. Many hash functions result in a set value of set length and so a hash may be larger that its plaintext.

      --
      The only reason some people get lost in thought is because it's unfamiliar territory.
    14. Re:Security by melandy · · Score: 1
      • A hash is a mapping from a large set of items to a smaller set.

      No, it could be the opposite of this, taking a small set of items and mapping them to a larger set. Many hash functions result in a set value of set length and so a hash may be larger that its plaintext.

      You're missing the point here. The GP stated that a hash is mapping from a large SET of items to a smaller SET [of items]. You are twisting the words to indicate that s/he said that large ITEMS map to small ITEMS, which is not what was stated. It is true that the hash of the string "a string" is larger than the string itself, but to argue that is to miss the point entirely.
    15. Re:Security by Fatchap · · Score: 1

      so what is meant by a "set" of items? I am trying to get the point honest.

      --
      The only reason some people get lost in thought is because it's unfamiliar territory.
    16. Re:Security by void+warranty() · · Score: 1

      Compare the double ROT13 encrypted message with the original message. If they are identical, the message is authentic. It's a foolproof system.

    17. Re:Security by melandy · · Score: 3, Informative

      Ok, bear with me for a moment...

      In this example for simplicity's sake, I'm going to use a ficticious function to shorten the output. The same logic will apply to any hashing function that gives output of a specific length.

      Let's give this function a name, so that people don't assume I'm using SHA-1, and flame me for it. Let's call the function "melandy_hash", and say that for whatever input it receives, it gives a 6 digit hex number for the output (yes, I know that this is ridiculously short, but this is a simplified example).

      For the input "This is my input string", you might receive the output 82a78b. For the input "This is another input string", you might receive the output 1721ca. Note that although the values for the output are different, the length is the same, because we specified that the output would be a 6 digit hex number.

      To expand this further, and to get directly to the point of your question... say we have a list of strings that we want to hash:

      "This is my input string"
      "This is another input string"
      "And another one"
      "And yet another one"
      "X"

      These five strings collectively are the "set" of inputs. When we compute the hashes of these strings using melandy_hash, we get the following output:

      82a78b
      1721ca
      82a78b
      1b82ac
      97f25b

      The above list of hex values is then the "set" of output.

      Note that the strings "This is my input string" and "And another one" both have the same hash value. This is known as a collision. As a result, there are really only 4 unique values in out set of output. This means that the set of inputs (with 5 unique elements) is larger than the set of outputs (with 4 unique elements).

      Where you may have been confused before is that the output for the string "X" is 97f25b, and for this particular element, the output is larger than the input. The original point that was made was that the number of unique elements in the input set is larger than the number of unique elements in the output set.

      Make sense now?

    18. Re:Security by Sloppy · · Score: 1
      SHA-1 isn't a cipher, it's a hash algorithm. Therefore, it has nothing to do with encryption (like ROT13), but with authentication. Sorry to ruin your little joke, which has become a tired amusement lamely presented in every new Slashdot story on cryptography.
      And besides, everyone knows that having only two rounds of ROT13, is totally weak. You need at least 400 to be safe against an attacker with modern hardware.
      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    19. Re:Security by Fatchap · · Score: 1

      Top explaination. Thanks very much.

      --
      The only reason some people get lost in thought is because it's unfamiliar territory.
  10. It's an insurmountable problem. by Sheetrock · · Score: 0, Troll
    Hash algorithms (or #algo in compsci parlance) quite naturally represent duplicable checksums of different source materials because you're rendering large variable-width data as small fixed-width data. That's why the results are often called "fingerprints", which are themselves only mostly reliable, and not "DNA".

    The problem is that these algorithms rely on external characteristics of the data sources and render them to a short description. Indeed, a "DNA" approach would look at what makes up the files (binary) rather than the obvious (ASCII characters) and create a profile that could only match that file.

    This has been less than practical to this point because of a difference in file formats and transfer protocols. Anybody who uses FTP can attest to how easy it is to transfer binary when you mean ASCII and visa versa, and newline characters and little-endian/big-endian conversions make developing a DNA standard for file comparison difficult at best.

    But I think that we're quickly reaching a point where standard fingerprint checksums are running out of usefulness.

    --

    Try not. Do or do not, there is no try.
    -- Dr. Spock, stardate 2822-3.




    1. Re:It's an insurmountable problem. by Krach42 · · Score: 4, Insightful

      Well, the method for "DNA-printing" a file would have to allow for the complete recreation of the file from the DNA-printing.

      This has been actually done for a long time, it's called "file compression".

      --

      I am unamerican, and proud of it!
    2. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 2, Informative

      The problem is that these algorithms rely on external characteristics of the data sources and render them to a short description. Indeed, a "DNA" approach would look at what makes up the files (binary) rather than the obvious (ASCII characters) and create a profile that could only match that file.

      Er, what are you talking about? SHA-1 works with blocks of binary data, not ASCII characters, and it's impossible to "create a profile that could only match that file" since such a hash would be at least as large as the file itself.

      Near as I can tell, you've just strung some clever-sounding words together to try and appear clever yourself. It might get you karma, but it's nonsense, all the same.

    3. Re:It's an insurmountable problem. by Krach42 · · Score: 1

      it's impossible to "create a profile that could only match that file" since such a hash would be at least as large as the file itself.

      You forgot about lossy compression. In a way, you could view gzip, and bzip2 as hashing algorithms that take a larger file and reduce it to a smaller size.

      This "hash" would only match one file per "hash", and the "hash" would be smaller than the file itself.

      --

      I am unamerican, and proud of it!
    4. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      Ignoring the rest of the dribble, the way DNA currently is tested (eg in forensics), is very much like a hashing algorithm. Indeed, it is the "hash" that is compared to "hashes" from other samples. They don't compare the whole strand.

    5. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 1, Informative

      > You forgot about lossy compression. In a way, you could view gzip, and bzip2 as hashing algorithms that take a larger file and reduce it to a smaller size.
      > This "hash" would only match one file per "hash",

      AFAICT, you wrote "lossy" where you meant "lossless". The difference is large, and crucial to your entire discussion :)

    6. Re:It's an insurmountable problem. by Mike+McTernan · · Score: 2, Insightful

      The basic problem is that the length of the hash is always much less than that of the data being hashed. If you compress a 9 bit message into a mere 8 bits, you have to appreciate that there is a 50% chance of a collision i.e. two input messages having the same hash because there are twice as many hashs values as possible messages.

      All the hash algorithms are basically up against this problem, and on a much greater scale. The defense is that they use various techniques to make it such that if I were to produce a meaningful message, it is very difficult for an attacker to produce a different message with the same hash value.

      To make matters worse, it has already been pointed out elsewhere that many message formats (email, PDF, PS, Word Docs etc...) already contain lots of redundant data that can be manipulated to reach some desired hash value in a way that is not easily observable by the user. Given this, and fast algorithms to find collisions, I think such research is quite signifiant.

      --
      -- Mike
    7. Re:It's an insurmountable problem. by pthisis · · Score: 1

      gzip and bzip2 are lossless compression algorithms.

      Like all lossless compression algorithms, they make most arbitrary files bigger (e.g. use dd to right a couple MB from /dev/urandom into a file and then gzip it; you might need a force flag if gzip refuses to write larger files by default).

      --
      rage, rage against the dying of the light
    8. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      If you compress a 9 bit message into a mere 8 bits, you have to appreciate that there is a 50% chance of a collision i.e. two input messages having the same hash because there are twice as many hashs values as possible messages.

      This mangled, and completely incorrect explanation of the birthday paradox (hint: think root n) is why all the good crypto is done in China or UK, and no longer the US

    9. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      I didn't forget about lossy compression. It has collisions too. Think about it.

      gzip and bzip2 don't guarantee smaller file sizes. No compression system can.

    10. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      What would be the point?

      You don't have a "profile" you have the actual file. Albeit converted into another form.

      The scheme essentially becomes useless when the original file is already tightly compressed.

    11. Re:It's an insurmountable problem. by sshore · · Score: 2, Informative

      Uunless the size of the "DNA" is larger than the size of the information being hashed, there will always be duplicates in the hash space.

      Basic information theory. Nothing to do with file formats, transfer protocols, or endianness.

    12. Re:It's an insurmountable problem. by Wavicle · · Score: 1

      I have a system where all my files are exactly two bits:

      00
      01
      10
      11

      Could you devise a hash that uniquely identifies each of those values in fewer bits? No? What if my files were 3 bits and I wanted a 2 bit hash? 4 bits in a 3 bit hash? n bits in an n-1 bit hash?

      Ahh well. Guess unique hashes aren't possible in fewer bits than the message.

      --
      Education is a better safeguard of liberty than a standing army.
      Edward Everett (1794 - 1865)
    13. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      This mangled, and completely incorrect explanation of the birthday paradox (hint: think root n) is why all the good crypto is done in China or UK

      ...he says in response to a person whose website address ends in .me.uk. Typical Yank, always assuming everybody you talk to on the Internet is also from the USA.

    14. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0, Interesting

      000 -> 0
      001 -> 1
      010 -> 00
      011 -> 01
      100 -> 10
      101 -> 11
      110 -> 000
      111 -> 001

      Granted, the hash isn't always smaller than the original, but it is so in 75% of the possible cases. This will grow towards 100% for original values with more bits.

    15. Re:It's an insurmountable problem. by Krach42 · · Score: 1

      DOH!

      --

      I am unamerican, and proud of it!
    16. Re:It's an insurmountable problem. by larry+bagina · · Score: 1

      the rm(1) compression utility does.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    17. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      'Fraid not. See, your representation of '000' is the same number as your representation of '010' and '110'. If you aren't storing the numbers, but storing the bit sequences, then you need to record the length of the bit sequences too, which increases the hash size.

      Word to the wise: give up. You're trying to defeat something that's been mathematically proven.

    18. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      proud of where and not what, no?

    19. Re:It's an insurmountable problem. by psavo · · Score: 1

      Nope. Identical twins have identical DNA (at least in the very beginning), but don't replay into same person.

      On the other hand, DNA, as molecular structure is only very small part of the whole organism. Even so, there's not that much living organisms and so DNA 'collision' is not that likely to be encountered. There's also the problem of DNA being highly structured to persevere at all, some instances of DNA are impossible as creature would die.

      --
      fucktard is a tenderhearted description
    20. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      Sorry, but you're wrong.

      You can sort the hashes by size.

      HashList *hash1[2]; /* here's where I store my 1 bit hashes */
      HashList *hash2[4]; /* here's where I store my 2 bit hashes */ /* etc... */

      When doing lookups, you would simply use the hash list that corresponds to the size of your hash.

      Eg:

      void *lookup(BitList foo)
      {
          return hash(#foo->length)->lookup(foo->value);
      }

      Mathematically proven, eh?

    21. Re:It's an insurmountable problem. by wfberg · · Score: 2, Interesting

      A 128 bithash, has got a lot of possible values. 2 to the power of 128 values. Which is estimated to be a bit more than there are atoms in the universe. So the lack of possible permutations is not a problem (otherwise you could just take a larger hash), there are just weaknesses in the algorithm.

      Detecting minute differences, like the ones between twins, is EXACTLY what hashes should do. The minute differences between a check in the amount of $100 or a check in the amount of $1000, for example. They both start out as the same sort of thing, but the environment adds information that you want to authenticate.

      This is not really a philosophical issue, it's a numbers game.

      --
      SCO employee? Check out the bounty
    22. Re:It's an insurmountable problem. by AndrewRUK · · Score: 1
      If we consider your hashes in isolation, that is
      000 -> 0
      001 -> 1
      010 -> 00
      011 -> 01
      100 -> 10
      101 -> 11
      110 -> 000
      111 -> 001
      the average hash length is 2, compared to 3 for the plaintexts.

      If a length field has to be stored along with the hashes, the average increases by the size of the length field. Since the lengths are up to three digits, we need a two-bit length field, and by prepending the length on to your original hash, we get:
      000 -> 010
      001 -> 011
      010 -> 1000
      011 -> 1001
      100 -> 1010
      101 -> 1011
      110 -> 11000
      111 -> 11001
      And now the average hash length is 4 (i.e. longer than the plaintexts), and the best case has no decrease in the number of bits compared to the plaintext.

      If you have n distinct symbols, then to represent each one with a unique bit string, you must use, on average, log2(n) bits per symbol. Lossless compression works by exploiting the fact that not all symbols occur with equal frequency, and assigns shorter symbols to more frequent symbols. But any lossless compression system must have some inputs that result in an output larger than the input, otherwise there would have to be different inputs which generate the same "compressed" output, and so a correct decompression would be impossible.
    23. Re:It's an insurmountable problem. by Wavicle · · Score: 1

      Ummm, where do you store the size of your hash? You are hiding information and thinking that is getting you ahead. You must now add at least two bits to indicate hash size so your hash is *NEVER* smaller than the original message.

      --
      Education is a better safeguard of liberty than a standing army.
      Edward Everett (1794 - 1865)
    24. Re:It's an insurmountable problem. by Anonymous Coward · · Score: 0

      The specific mistake you are making is that you aren't counting all of the information you are storing. When you store some hashes in one array and some hashes in another, you are storing two pieces of information each time - the hash itself, and the array that it is in. The use of multiple arrays is merely an obfuscated way of storing the length of the bit sequences.

      By all means, demonstrate how you would supply one of these hashes to me without also supplying the second piece of information and without introducing collisions.

      For example, when you want to transmit the one bit hash for '000' to me, you would transmit the number 0 (plus the fact that it's in your 1 bit long hashes array). When you want to transmit the two bit hash for '010' to me, you would transmit the number 0 (plus the fact that it's in your 2 bit long hashes array). When you want to transmit the three bit hash for '110' to me, you would transmit the number 0 to me (plus the fact that it's in your 3 bit long hashes array).

      But if you leave off the length information, all you are transmitting is the number 0, in which case you have collisions.

      So, as you can see, the arrays are merely a trick to hide the fact that you are still recording the length of the hashes - a pointless exercise in obfuscation.

  11. SHA-_1_(?!?!) by DaveCar · · Score: 1

    Cripes, given these newer 256 and 512 bit algorithms why am I still stuck on this crummy 1 bit version?!

    1. Re:SHA-_1_(?!?!) by jZnat · · Score: 1

      Well, 50% of the time, the attacker is wrong. ;)

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
  12. Crypto is an evolutionary process by Crixus · · Score: 3, Interesting

    Things like this are inevitable. Crypto is an evolving science, and this kind of thing is healthy.

        I for one am very excited about the future of crypto.

    --
    Ignore Alien Orders
    1. Re:Crypto is an evolutionary process by dreamer-of-rules · · Score: 2, Funny

      Yeah, yeah. I'm happy that these people are working tirelessly to find flaws in encryption algorithms in common use and publish the results. After all, I'd hate to think that some criminals got ahead of the good guys in compromising SHA.

      / minor sarcasm-- could you tell? // "He who can destroy a thing, controls that thing."

      --
      Everyone is entitled to his own opinions, but not his own facts.
    2. Re:Crypto is an evolutionary process by Simon+Garlick · · Score: 3, Insightful

      What, healthy that groundbreaking research is being done outside of the USA while the researchers are unable to even enter the country to talk about it?

    3. Re:Crypto is an evolutionary process by C0llegeSTUDent · · Score: 1

      I for one welcome our new chinese crypto overlords!!!

    4. Re:Crypto is an evolutionary process by Crixus · · Score: 1

      Who needs to enter the country? That's what PDF's and the internet are for.

      --
      Ignore Alien Orders
  13. Personally, I'd dump SHA. by jd · · Score: 1

    Whirlpool is based on AES, which seems a stronger approach at the moment. SHA-256 uses the same algorithm but more bits, so may be vulnerable. I'd rather go with the more trustable algorithm.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:Personally, I'd dump SHA. by larry+bagina · · Score: 1

      no fixed size hash can be trusted (duh!). The only trustable option is a variable-sized hash, using 1 (or more) bytes for every byte in the original file, like rot-13 (or rot-0). That's completely unbreakable.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

  14. RFC4109 by fwr · · Score: 4, Interesting

    I wonder how this will effect RFC 4109 in that it depreciates MD5 in favor of SHA1. Does this mean that SHA1, at 2^63 is less secure than MD5 at a brute-force 2^64? I'm not a crypto expert or anything, just asking the question; will this effect the proposed standard for the HASH algorithm used in IPsec?

    1. Re:RFC4109 by Krach42 · · Score: 1

      TFA says that it holds implications for IPsec, and a number of other algorithms that depend on SHA-1.

      Now, this SHA-1 attack is 2^63 complexity, but this is orders of magnitude less than the 2^80 brute force.

      Now, what makes you think that there isn't a faster MD5 attack than just the plain brute force 2^64? Assuming a relative number of orders of magnitude, we're talking around 2^50 or so complexity for an MD5 hash attack.

      --

      I am unamerican, and proud of it!
    2. Re:RFC4109 by fwr · · Score: 1

      Implications, yes, but I'm looking for some feedback from some crypto experts that know what they are talking about as to whether they think this will result in yet another RFC that changes the recommendations. I already said I'm not a crypto expert, so I have no idea if there is a better attack on MD5 or not. I do, however, implement some IPsec systems, so I'd like to hear some feedback as to what to go forward with in the meantime, SHA1 or MD5.

      But thanks for your comments! (If you want to be accurate, IPsec is a protocol that utilizes many different algorithms, but isn't an algorithm itself)

    3. Re:RFC4109 by SquadBoy · · Score: 4, Insightful

      It does have implications for IPsec but the main question you are starting from the wrong place. The first question you should be asking youself is "Who is my enemy?". For the sake of this discussion let's assume the worst and go with the NSA.

      The next thing you should be asking yourself is "What am I protecting?" Since we are assuming that the NSA is your enemy let's go ahead and say that you want to blow up rather large and expensive things that the USian .gov would really rather you not blow up.

      And the last factor is "How long do I want to keep this secret?"

      For the sake of argument let's assume that the NSA can do twice as well as any known attack. Given all of that if the answer to the last question is "years" you have something to worry about. If it is months you very likely have something to worry about. If it is "weeks", "days", or "hours" you are very likely safe.

      So yes at some point in the future if you have a long planning horizon it could matter.

      What this all means is that you want to pay attention to all of this but there is no need to panic. At this point SHA1 is still better than MD5 for most things. So use it, pay attention to it, and most of all you might want to evalute what traffic you are passing. I've *always* been against passing secrets over a IPSec tunnel with a lifetime of more than a few months. This is simply because, IMO, IPsec is too complex to ever be safe over a long planning horizon. I'm in pretty damn good company here.

      So pay attention and be ready to change when things change. And they *will* change. And I would not send anything that has a long lifetime over the wire.

      http://www.schneier.com/paper-ipsec.html

      --

      Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
    4. Re:RFC4109 by mre5565 · · Score: 4, Informative
      I wonder how this will effect RFC 4109 in that it depreciates MD5 in favor of SHA1. Does this mean that SHA1, at 2^63 is less secure than MD5 at a brute-force 2^64? I'm not a crypto expert or anything, just asking the question; will this effect the proposed standard for the HASH algorithm used in IPsec?
      First there are already attacks on MD5 that are less than O(2^64) which don't involve brute force.

      Second, RFC 4109 refers to the HMAC algorithms used for computing per packet integrity checksum that is resistant to tampering by a man in the middle. HMACs take as input both a known message and a shared secret (often, a session key for a symmetric key algorithm like DES, triple DES, AES, RC4, etc) and compute hash result ( MD5, or SHA1, or SHA-256, etc. ). In other words, part of the input to the hash algorithm is unknown. This makes it very difficult to find two messages, X and Y that compute the same HMAC. I.e. find X and Y such that HMAC(X, K) == HMAC(Y, K), where K is the shared secret. The attacks on MD5 and SHA-1 so far assume that there is no K, or if there is, it is known. And if the man in the middle knows K, he doesn't need to use these new cool attacks to tamper with messages; he's the man in the middle, he just tampers and re-computes the HMAC with far less computational overhead.

      I've see no indication in Schneir's blog entry that these attacks break HMACs.

      That said, it is surprising that SHA-256 wasn't added to the MUST list for RFC4109, given that when this RFC was published, it was known that SHA1 had be shown to be vulnerable to attacks of less than O(2^69). But then again, the RFC also mentions AES128 as MUST, but not AES256. Odd.

    5. Re:RFC4109 by slavemowgli · · Score: 1

      Out of curiosity, what constitutes "twice as well" in your opinion? Given an attack that needs about 2^64 calculations, would one that's twice as good need 2^63 or 2^32?

      If you really *mean* twice as good, then it should be 2^63, but I'm not sure if that's what you meant, really.

      --
      quidquid latine dictum sit altum videtur.
    6. Re:RFC4109 by Chandon+Seldon · · Score: 1

      What do you mean by twice? If your security fails once the NSA does a calculation of difficulty 2^31, you're got less than 1 second of security.

      --
      -- The act of censorship is always worse than whatever is being censored. Always.
    7. Re:RFC4109 by greenrom · · Score: 3, Informative
      Actually, this finding doesn't directly impact IPsec. It just lets you find two texts that generate the same hash in 2^63 time. IPsec uses SHA to generate a HMAC. The idea is that you generate an SHA hash based on the data being sent and a secret key that doesn't get sent. Since both sides know the secret key, both sides are able to generate and verify the hashes. However, somebody intercepting packets will not know the secret key and will not be able to generate valid hashes or modify packets without being detected. In order to break this part of IPsec, you need to be able to do one of two things:

      1) Figure out what the secret key is based on the data and hashes being sent. If you could do this, you could generate your own HMAC and send your own data without being detected.

      2) Intercept the packet and find a way to change the data in a way that will still generate the same hash value. This would allow you to change packets without being detected.

      The vulnerability the researchers found doesn't help you accomplish either of these tasks, but it does show that SHA-1 has some weaknesses. Therefore, it's probably a good idea to start moving to a different hashing algorithm before somebody figures out a practical way to do #1 or #2. Also keep in mind that an HMAC exploit wouldn't help an attacker decrypt IPsec packets. To do this, a vulnerability would need to be found in either the encryption algorithm or the key exchange algorithm. In reality, a HMAC exploit by itself would only allow an attacker to send garbage data to the target address.

    8. Re:RFC4109 by Anonymous Coward · · Score: 0


      It's worth modding this summary/example up for those who've missed it in earlier articles.

    9. Re:RFC4109 by SquadBoy · · Score: 1

      Yes, it was somewhat badly worded. I meant "able to break in half the time."

      --

      Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
    10. Re:RFC4109 by Splab · · Score: 1

      2^31 * 2 isnt 2^64...

    11. Re:RFC4109 by cryptoguy · · Score: 1

      HMAC is designed to be robust even if the underlying hash function has weaknesses, within reasonable limits. SHA-1 is still within such reasonable limits (for that matter, MD5 probably is also).

      The recently published attacks are not particularly useful for snooping on encrypted internet protocols such as IPSEC, SSL/TLS etc. To find a collision using the recently published attacks on MD5 and SHA-1, you must be able to control both of the colliding files. By introducing carefully chosen changes to each file you arrive at two files with the same hash. That is not very useful to a third party wishing to listen in on IPSEC, SSL/TLS, etc. However there are practical ways to exploit the new attacks. Stefan Lucks has a web site with a little story involving two PDF documents with the same hash, illustrating how this can be exploited:
      http://www.cits.rub.de/MD5Collisions/

  15. Solution? by Phil246 · · Score: 1, Insightful

    Im no expert but wouldnt using several different hashes on the same file be better?
    Sure you could get a hash collision in one or more of them but getting the collision to happen in all would be somewhat more tricky no?

    1. Re:Solution? by Krach42 · · Score: 3, Insightful

      This is no better than increasing the hash key size. In fact, it's worse than increasing the hash key by the same.

      If you take hash algo A at 32 bits, and algo B at 32 bits, but B is weaker than A, then hash collision calculation would be less than the complexity of A squared. (Since B is weaker than A)

      If instead you double the hash size of A to 64 bits, then your collision calculation would be the square of the complexity of A at 32.

      So, combining MD5 with SHA-1 could cause some problems, with both of them having weaknesses, neither is going to provide you much protection, even if you use them together.

      If you built a safe out of paper and cardboard. Sure such a safe would, yes, be better than one made of just paper, or just cardboard, but it's still not better than a safe built out of two cardboard sheets.

      Ideally, you don't want to build a safe out of either.

      --

      I am unamerican, and proud of it!
    2. Re:Solution? by Anonymous Coward · · Score: 0

      I think GPs not talking about chaining the hash functions, but instead about using several hash functions to hash the plaintext, and thus generate several hashes that can be verified against.

      Therefore, the colliding plaintexts would need to collide in multiple hashes.

      Can't say that at first sight I see anything wrong with this approach per se, apart from the extra computational effort. Its also a slightly inelegant way of doing things.

    3. Re:Solution? by Anonymous Coward · · Score: 0

      Think of the two hash functions as one has where the key is twice as long (ie put them next to each other). If you think about it this way, the paper/cardboard example makes sence.

    4. Re:Solution? by PDAllen · · Score: 1

      Your comment is true if you assume the only way to find collisions is to brute-force search the whole space of all possible messages. It no longer applies when you start using a clever algorithm that narrows the search space; it's quite possible, if very unlikely, that the SHA-1 algorithm cannot find a SHA-1 collision which is also an MD5 collision. For example an algorithm which tries to find collisions in a simple block hash may try to add blocks and preserve the hash; this algorithm obviously never produces a simultaneous collision with the size hash (though of course collisions must exist).

      More to the point, while it seems likely that there exists an algorithm capable of finding simultaneous collisions in both MD5 and SHA-1 in about 2^127 time, it's hard to analyse two different hashes together and isn't all that interesting when each hash is separately broken.

    5. Re:Solution? by Phil246 · · Score: 1

      this is precisely what i meant :) You could have a listing of hash values for crc, md5, all the way to sha-512. ( they could even be combined in a plaintext .hash file and automatically processed to verify the integrity of the file )

    6. Re:Solution? by Anonymous Coward · · Score: 0

      Actually, the paper/cardboard analogy doesn't make sense at all.

      Why is that? Because for an attack to succeed here, it must generate collisions in both hash1 (e.g. MD5) and hash2(e.g. SHA-1). Therefore, the space of all attacks is smaller than the space of attacks against MD5, and attacks against SHA-1 individually taken. Which contradicts the premise that the weaker hash is the weak link - you *must* satisfy the verification of *both* hashes.

      How much smaller is it, that is the real question I was proposing above (as AC) - the attack space may indeed be reduced greatly, since

      1. We are constructing collision in hash1 (e.g. MD5)

      2. Hash2 (SHA-1 or any other hash) like all hashes is designed with the idea in mind that given any two arbitrary input plaintexts, the corresponding hashes vary. There is no reason for any correlation with respect to hash1 to carry forward to hash2, unless the hashes are internally linked in some way.

      In other words, a more accurate analogy is this. You have two iron sheets, one behind the other, to attack. You know both are impregnable except for a small patch somewhere through which you can bore a hole. What are the chances that those patches are aligned so that you will be able to go through both of them while boring your hole? Low, given by the definiton of a hash function, you will end up boring a hole through sheet #1, but the corresponding area in sheet #2 will be impregnable probabilistically speaking.

    7. Re:Solution? by Anonymous Coward · · Score: 0

      Perhaps...one of the reasons it isnt being discussed too heavily is that people are still to get used to the fact that SHA-1 has joined the ranks of the broke ;)

    8. Re:Solution? by mre5565 · · Score: 1
      This is no better than increasing the hash key size. In fact, it's worse than increasing the hash key by the same.
      This is true only if the hash key size (N) of an algorithm is tunable, and as another poster remarked, if the only attack is a brute force attack of O(2^N) as opposed to attacks of the nature the folks in China are producing which are less than O(2^N).

      As far as I know, md5 is not tunable to outputting more than 160 bits.

      Note that SSL in fact uses this technique (use multiple hashes) to protect against hash collisions.

    9. Re:Solution? by Krach42 · · Score: 1

      The point is that computing the collision for a hash in two spaces is essentially equivalent to search for a collision in any single one hash with twice as much digest length.

      Instead of having to find a digest that matches 160 bits of the SHA-1, now instead you have to match 256 bits.

      Two seperate and mostly equivalent algorithms together is not better than a single similar algorithm with twice the digest length.

      --

      I am unamerican, and proud of it!
    10. Re:Solution? by Krach42 · · Score: 1

      While the individual strength of an algorithm is constant, tuning it to produce larger digest length produces a more difficult result. So, even if it takes 2^63 hash operations to find a hash collision for SHA-1, if you tune the algorithm to produce a digest of 1 bit more, then it would take 2^64 hash operations to find a hash collision.

      And your argument that algorithms are not tunable for larger digest production is wrong. MD5 as defined and specified cannot produce longer digests, but it would be a relatively "simple" matter to rework it to use larger blocks. (Say, instead of per-byte, it works per-2-byte)

      It's always possible to take a hash algorithm and extend it to produce a larger digest. It just won't be backwards compatible, so in all cases but the academic it's mostly just a useless point.

      But if you're going to make a hash out of MD5 concat SHA-1, then that hash won't be backwards compatible, and you'll need to write and validate code that would process it anyways.

      --

      I am unamerican, and proud of it!
    11. Re:Solution? by acidblood · · Score: 2, Interesting

      Look up Joux's construction for breaking concatenated hashes. Concatenated hashes are only as strong as the strongest among them, whereas you would expect that the concatenation of an n-bit hash with an m-bit hash would provide (n+m)-bit security.

      Although I'm not sure how these shortcut collision attacks fit in Joux's construction -- my recollection of it was that it was useful for collision search using the birthday paradox.

      --

      Join the NFSNET. Our prime goal is making little numbers out of big ones. http://www.nfsnet.org/

    12. Re:Solution? by Anonymous Coward · · Score: 1, Interesting

      IAMECS (I am a mathematician/engineer/computer scientist), but IANAC (I am not a cryptologist).

      Clearly it's better from a security perspective to combine ALL known hashes (at whatever strength you think you need) so that you get encryption AT LEAST as strong as the strongest one. By your analogy of the paper vs cardboard: you do not know in advance which one is cardboard and which is paper, so it's best to use both.

      Unfortunately, part of the engineering goal of a digest is to take up significantly less space than the original. Well it just so happens that recursive algorithms that can be broken at 2^N bits can usually be broken in 2^(N+1) bits with only marginally (i.e. 1/N) more effort. In such cases, doubling the number of bits gives you jack and squat in the way of protection.

      Thus, in order to keep the storage requirements low, we conclude that there's no real point in "doubling up" on a known compromised algorithm. Instead, you want to make a better algorithm that cannot be exploited by divide and conquer. One way to do this is to combine the results of dissimilar digests, as proposed by the grandparent (and many others).

      In summary, parent is right that it helps to increase the number of bits, but is dead wrong on the best way of doing so (when comparing doubling up on one digest vs concatenating different digests).

    13. Re:Solution? by mre5565 · · Score: 1
      And your argument that algorithms are not tunable for larger digest production is wrong. MD5 as defined and specified cannot produce longer digests, but it would be a relatively "simple" matter to rework it to use larger blocks. (Say, instead of per-byte, it works per-2-byte)

      It's always possible to take a hash algorithm and extend it to produce a larger digest. It just won't be backwards compatible, so in all cases but the academic it's mostly just a useless point.
      Odd then, that no one has this. md5 is much faster in software than sha-1. It wouldn't be useless at all as protocols like IPsec, Kerberos, TLS, etc. are always looking to add more algorithms. 256 bit md5 wouldn't be useless at all.
      But if you're going to make a hash out of MD5 concat SHA-1, then that hash won't be backwards compatible, and you'll need to write and validate code that would process it anyways.
      I've no idea what you are talking about. Backwards compatible with what? In any case, this is what SSL/TLS does ... uses multiple hash algorithms in order to insulate it from non-brute-force attacks.
    14. Re:Solution? by Eivind+Eklund · · Score: 1
      The point is to engineer against future attacks bringing down the effective hash length.

      If I use the combination of an SHA-256, an iterated AES (Rijndael) 256 bit hash, and an iterated HPC (Hasty Pudding Cipher) as my hash function, it means that *each* of these algorithms have to be broken before I have a security problem, instead of getting a security problem from the break of a single algorithm.

      The point is to be redundant against algorithmic breaks, not just to extend the key length.

      Or at least as I understood the poster. (Not that I'd choose either SHA-1 or MD5 as my building block for that redundancy these days.)

      Eivind.

      --
      Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
    15. Re:Solution? by TorKlingberg · · Score: 1

      The Bitprint hash used in Gnutella and by Bitzi combines a SHA-1 hash and a Tiger-Tree Hash. The Tiger-Tree is used instead of a "SHA-1 Tree" for exactly the reason that a theoretical breakthrough on either of the algorithms shouldn't break the identification completely.

    16. Re:Solution? by Just+Some+Guy · · Score: 1
      If you take hash algo A at 32 bits, and algo B at 32 bits, but B is weaker than A, then hash collision calculation would be less than the complexity of A squared. (Since B is weaker than A)

      Yes, but if you later discover that A reduces to O(1), while B stays at 32 bits, then your combined algorithm degrades to 32 bits instead of none. Wouldn't that be a benefit?

      --
      Dewey, what part of this looks like authorities should be involved?
    17. Re:Solution? by Krach42 · · Score: 1

      I see the point of having multiple hash algorithms to prevent the hash-length being brought down due to attacks.

      But any single good hash should beat out any number of worse hashes.

      While it's a good "bolt-on" fix to add a layer of security, really and functionally, it's not that much better than extending digest length production.

      Really, you can essentially guarentee that, eventually, finding a hash collision will be come computationally feasible.

      Let's take two hash algos, A, and B. Let's say they have the same brute force computational complexity: 2^n. Now, let's say that hash A is eventually found to have a flaw in it that allows that complexity to be brought down to 2^(n/2), while B has a more serious flaw that brings its complexity down to 2^(n/4).

      Now, if one were to be using the two hashes together for security, then the hash complexity to find a collision in both should be about 2^(n/2) * 2^(n/4) or simplifying 2^(n/2 + n/4) = 2^(3n/4) Which is closer to the complexity of a brute force attack than to constant time complexity.

      But, now let's say that instead you could have hashed the values with a digest of double the length for hash algo A. This means that the brute force complexity goes from 2^n to 2^(2n). But since we now have an attack that halves the n in the complexity, we end up with a time to attack even with the flaw to be 2^n. This is the original complexity of the simple hash algo A brute force.

      Now, granted this is a deus ex machina choice to pick the strongest hash algo, so it is impossible to replicate in real life except after the fact (just like the perfect scheduling program).

      But the whole idea of hash algos is to make the complexity sufficiently difficult that finding a collision would be computationally infeasible for anyone attempting to alter it. If you're shooting for a long-term goal of keeping the hash good for a long time, then you need to ensure that the computational complexity to solve it is ridiculously large.

      Either way, it's all about staving off people from being able to produce a collision to your hash.

      Personally I'd take SHA-8092 over using 4 128-bit digest hash programs, no matter what their implementation. Unless you can show me an attack that will reduce the complexity to below the others individually.

      --

      I am unamerican, and proud of it!
    18. Re:Solution? by leonardluen · · Score: 1

      you are assuming there exists a collision in hash A that is also a collision in hash B.

      depending on the algorithms it is possible that there is no case where a collision in hash A is at the same time a collission in hash B

    19. Re:Solution? by leonardluen · · Score: 1

      nevermind, i guess it is a finite space, eventually there would have to be a collision.

    20. Re:Solution? by Krach42 · · Score: 1

      No problem, you got me on a couple points also anyways.

      I definitely agree that using the multi-hash method is good to bump up security, and for verification of files. After all, it's not that much more computationally expensive to hash the files through a few different algos.

      It's definitely a decent idea, and will actually increase security unlike using two substitution ciphers on a piece of text.

      I'd just like to say that while I've been bashing the idea, it possibly is the best non-deus ex machina solution available. I'm just playing devil's advocate so that people think about the possible pitfalls, rather than just gloss over them.

      Same reason why people break encryption to make better encryption is the reason why people break security policies to make security policies better.

      --

      I am unamerican, and proud of it!
    21. Re:Solution? by Anonymous Coward · · Score: 0

      Hi. 3rd party here. I'm posting here because it's the end of the thread, but I'm actually referring to one of your posts a few back. Basically I'm going to discuss the possibility of breaks faster than those which you described.

      First, I should point out 2^O(N) "breaks" (*) would be considered very weak breaks, despite being tons faster than brute force (i.e. 2^(N/2) = sqrt(2^N), 2^(N/4) = fourthroot(2^N), etc). Keep in mind that there are NPC problems that have been broken in 2^O(sqrt(N)). For the uninitiated, that means if you need 2^64 brute force, you'd only need ~2^(k*8) operations. That's fast. ;) [* in this section, I'm using "O" when "Theta" is probably more appropriate...]

      It is also widely conjectured that there will eventually be NPC breaks that are subexponential: 2^o(N^epsilon). If that's true, then you'd be looking at something like 2^O(polylog(N)), which could mean that you'd only need 2^(k*6^a), where a is the degree of the polylog and a > 1.0 if P != NP. Just for grins, let's imagine "what if" k = 1 and a = 1.01. That's 2^(~6.11). Not that I think it's all that likely, but it's possible (in fact, nobody's disproven a = 1 yet).

      Getting back to the point about current tech on NP complete breaks: to use the "faster" breaks, you'd need to convert the hash algorithm from say circuit SAT to SAT, and in doing so you would 'probably' have to use at least N^2 gates (though multiplication only requires N*logN if you use FFT, etc). Since the conversion requires gates to become inputs in the new problem, that would essentially negates the sqrt(N) gain unless someone finds a break for the specific circuit. Furthermore, I should point out that using a NP complete solver would require lots of iterations ("essentially" a large constant, despite dependence on N) to narrow down on an exact result.

      So in conclusion, the current tech for NP complete solvers probably wouldn't be any better than the breaks you're describing, but I wouldn't count on having breaks that only come in at 2^O(N). At the very least, consider revising your calculations to use 2^O(N^alpha), where alpha is some value in 0 < alpha < 1 instead of alpha = 1.

      p.s. The methods I'm proposing here yield a theoretical lower bound that (in the absence of a specific circuit break) adds the complexities of each of the digest functions if NP is subexponential (alpha = 0) or multiplies them if NP is in 2^(N^alpha) for some alpha in 0 < alpha < 1.

      p.p.s. In case you're lauging at this, I'll grant you that this discussion is a bit of overkill for small digests... :-)

    22. Re:Solution? by Krach42 · · Score: 1

      Well, in the situation of SHA-1 the digest length is 180 bits, and the brute force attack complexity was said in TFA to be 2^80

      So, I'm running with TFA that the complexity would be 2^(n/2) which would still be 2^O(n). Given this even the decrease of only halving the n, you still end up with a complexity of 2^O(n)

      So, anyways, the complexity of the brute force attack is still 2^O(n) and it's not at this time considered weak. Well, unless you're so steeped in paranoia that you post lengthy comments about the complexity of a simple 160-bit message digest breaking algorithm......................

      So, yeah. Just by nature of the assumption the break strength would have to be 2^O(n^alpha) where 0 alpha 1, but not where alpha = 1. Hopefully, we don't have to worry about people solving hashes in 2^O(1) time. That would essentially negate all abilities.

      Of course, the other thing is that it is theoretically possible to find hash collisions up to a certain length in O(1) complexity. But the problem is that you would require a hash table indexed to the hash value of the string, and insert the string at that hash bucket.

      Once you have enough data there, I'm sure you'd be able to find collisions in O(1) time. Of course, your space requirement would be NP.

      I suppose the point of all of this is to prove that, if you play devil's advocate, you're going to be wrong 99% of the time.

      --

      I am unamerican, and proud of it!
    23. Re:Solution? by Eivind+Eklund · · Score: 1
      But any single good hash should beat out any number of worse hashes.

      Definately. As you note, the problem is predicting what is a "good" hash.

      Personally I'd take SHA-8092 over using 4 128-bit digest hash programs, no matter what their implementation. Unless you can show me an attack that will reduce the complexity to below the others individually.

      The real question is whether one is afraid of a "short circuit" attack, losing close to all security from a hash. I'm afraid of those. I'm also afraid of attacks that just reduce the complexity proportionally, so I'd use more than 128 bits per component - 256 bits at the least.

      Eivind.

      --
      Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.
  16. Alternatives? by blackhedd · · Score: 1

    Anyone know for sure whether the SHA-1 attack also will compromise SHA-256? I've seen conflicting reports.
    How about RIPEMD? Anyone using it seriously?

    1. Re:Alternatives? by pthisis · · Score: 1

      RIPEMD is in the SHA/MD5 family and if this attack is like previous ones it can probably be extended to any algorithm in that family with some significant effort.

      At the moment, Tiger and Whirlpool seem to be the only hash algorithms outside of the family that haven't been successfully attacked. I'd go with Whirlpool, personally.

      --
      rage, rage against the dying of the light
    2. Re:Alternatives? by clap_hands · · Score: 1

      The old RIPEMD was announced broken at the same time as the attacks on MD5 etc. There have been no attacks announced either for the new RIPEMD-160 hash and related variants, or for the longer SHA-2 variants (SHA-224, SHA-256, SHA-384, and SHA-512).

      All these hashes are in the same family, but it's not clear at present how likely it will be that attacks will be found on the longer RIPEMD/SHA variants.

    3. Re:Alternatives? by m50d · · Score: 1

      I'm pretty sure it doesn't compromise SHA-256, but with attacks on both MD5 and SHA-1 the whole family starts to look suspect. The original RIPEMD is rather suspect but RIPEMD-160 seems to be standing up well, I'd recommend it. Also possibly Tiger (which I know little about) or Whirlpool (new, experimental, seems secure)

      --
      I am trolling
  17. Pfft, duh... by Anonymous Coward · · Score: 0

    pffffft, yeah, duh... You guys didn't know that? ;)

  18. I've gone blind! by Dr.+Evil · · Score: 1

    I mean I've lost situational awareness!

  19. Sorry, no proof? by statemachine · · Score: 0, Troll

    Even the greats like Bruce can get hoaxed.

    This Chinese research team has yet to publish their proof for the last SHA attacks. Or maybe I missed it? Please show everyone the proof. I honestly want to be able to read the proof. Links, please.

    If it's real, withholding information on these attack vectors doesn't make it any safer for the rest of us who use SHA or any other algorithm.

    1. Re:Sorry, no proof? by clap_hands · · Score: 1

      You missed it; search the Wikipedia article linked in the story.

    2. Re:Sorry, no proof? by statemachine · · Score: 1

      As I said in replies further down, the information I was seeking was added to Bruce's blog and to the Wiki *after* I posted my request.

      I honestly just wanted to see the papers. Since the links were not there, was my skepticism unfounded? Am I to blindly trust Bruce Schneier? (That may contradict everything I've read from him.)

  20. Anonymous "team of Chinese cryptographers" by clap_hands · · Score: 5, Insightful
    Have you ever noticed how you never hear the names of these Chinese researchers...Professor Xiaoyun Wang and her colleagues (for SHA-1, Yiqun Lisa Yin and Hongbo Yu) have broken the greater share of the popular hash functions: MD4, MD5, SHA-0, SHA-1, RIPEMD...and the only name that gets mentioned is "Bruce Schneier reports that Chinese cryptographers...". Not to belittle Schneier, but what these anonymous "Chinese cryptographers" have achieved is exceedingly significant in the field of cryptography, and the least we can do is mention their names occasionally, right?

    Even if they are unpronouncable ;-)

    1. Re:Anonymous "team of Chinese cryptographers" by bigberk · · Score: 4, Insightful

      NO! They're merely Chinese. Foreigners are scary. USA is home to innovation and research. Dark people should be shot 5 times in the head. etc. The sarcasm is deliberate!

    2. Re:Anonymous "team of Chinese cryptographers" by kasperd · · Score: 1

      Even if they are unpronouncable

      Don't worry, they can't pronounce your name either. (I have actually heard one of these Chinese try to speak English. I didn't understand a word of what she was saying... except from MD5 a few times.)

      --

      Do you care about the security of your wireless mouse?
    3. Re:Anonymous "team of Chinese cryptographers" by mpcooke3 · · Score: 1

      Dark people should be shot 5 times in the head.

      Don't laugh about it.

      Here in the UK we recently shot someone 7 times in the head for having foreign looking eyes.

    4. Re:Anonymous "team of Chinese cryptographers" by Muad'Dave · · Score: 1

      From TFA:
      Actually, Adi Shamir announced the results in their name, since she and her student did not receive U.S. visas in time to attend the conference.
      Your 'anonymous' Chinese cryptographers weren't even in the US. This link describes what happened wrt their visas.
      --
      Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
    5. Re:Anonymous "team of Chinese cryptographers" by Threni · · Score: 1

      No we didn't - he came out of a block of flats the police had under surveillance because someone who was involved in the 7th of July bombings lived there.

    6. Re:Anonymous "team of Chinese cryptographers" by mpcooke3 · · Score: 1

      Sure. Although this guy wasn't involved in the 7th of July bombings he did go into the same building as a terrorist AND he had "mongolian eyes".

      Your right, that is SO much worse, now i can see why he was shot 7 times in the head.

    7. Re:Anonymous "team of Chinese cryptographers" by Threni · · Score: 1

      > Although this guy wasn't involved in the 7th of July bombings he did go into the
      > same building as a terrorist AND he had "mongolian eyes".

      No, he came out of the same block of flats, and someone thought he looked like someone they were watching.

      > Your right, that is SO much worse, now i can see why he was shot 7 times in the
      > head.

      It's "You're", not "Your".

    8. Re:Anonymous "team of Chinese cryptographers" by mpcooke3 · · Score: 1

      someone thought he looked like someone they were watching
      Yes, although according to the leaked internal investigation the identification process was based on his "mongolian eyes" not on a photo check.

      If that was the case I would suggest 7 shots to the head was a little harsh.

      PS
      This is slashdot. I was under the understanding that lacking basic skills in english and grammar was a signup requirement.

  21. I'm lazy and not a mathematician ... by Etyenne · · Score: 1

    So tell me : should I stop using SSHA to store password hash ?

    --
    :wq
    1. Re:I'm lazy and not a mathematician ... by onosendai · · Score: 2, Insightful

      Depends if it's your hotmail password, then no. if it's the passphrase on your private key on a server with millions of dollar's worth of transactions then yes. Going forward, I wouldn't use them (MD5 or SHA-1) for anything resembling security anymore

      --
      <? include ('signature.inc'); ?>
    2. Re:I'm lazy and not a mathematician ... by Etyenne · · Score: 1

      Well, it suck because SSHA is the strongest password hash available in OpenLDAP, according to slapd.conf(5).

      --
      :wq
    3. Re:I'm lazy and not a mathematician ... by m50d · · Score: 1

      Someone made an analogy "The fire alarm is going, there's no smoke or flame as yet, but it's time to calmly leave the building". Don't rush, but look at moving to an alternative hash as soon as you can.

      --
      I am trolling
    4. Re:I'm lazy and not a mathematician ... by Just+Some+Guy · · Score: 1

      We already have your MP3s, and your pr0n isn't that good. I wouldn't bother.

      --
      Dewey, what part of this looks like authorities should be involved?
  22. Dumb question by XorNand · · Score: 2, Funny

    Let's say I take a binary file and I grab both it's MD5 and SHA1 hashes. I then combine the output of those two into one really long string. Them I take the SHA1 hash of that string. How secure is this?

    --
    Entrepreneur : (noun), French for "unemployed"
    1. Re:Dumb question by clap_hands · · Score: 1

      Hard to say, but it'd be harder than either of MD5 or SHA-1 on their own. But there's no point in taking the SHA-1 of the string the second time, if you're trying to avoid the collision attacks. This is because if it's collided before the second SHA-1, it'll collide after, right?

    2. Re:Dumb question by Lord+Crc · · Score: 1

      Let's say I take a binary file and I grab both it's MD5 and SHA1 hashes. I then combine the output of those two into one really long string. Them I take the SHA1 hash of that string. How secure is this?

      Afaik all attacks against MD5 and SHA1 are not "post-image" attacks. That is, the acttacker can generate two hashes with different data but with same hash, but not take existing data and generate new data with same hash.

    3. Re:Dumb question by blackbear · · Score: 1

      hashing the two concatinated strings is pointless unless you're worried that one of the two strings will be substituted. In that case, you have worse problems because both strings could be substituted. The assumption is that you can store and transmit the hashes without molestation.

      If that assumption is true, as it is in the case of a digital certificate, then you don't need the third hash.

      The attack problem then becomes one of finding a collision that occurs in two keyspaces simultaneously. I wouldn't even know how to represent that problem mathematically.

    4. Re:Dumb question by gomoX · · Score: 1

      Not really, in order to have the second SHA1 hash collide you would need to get *both* the MD5 AND the SHA1 to collide. That shouldn't be as easy, although I don't know if it would be significantly harder.

      --
      My english is sow-sow. Sowhat?
    5. Re:Dumb question by g-san · · Score: 1

      I wouldn't even know how to represent that problem mathematically.

      x = 42?

    6. Re:Dumb question by clap_hands · · Score: 1

      I was saying that the second SHA-1 provides no extra protection against collision attacks, so you might as well not have it there.

    7. Re:Dumb question by MikeBabcock · · Score: 1

      He's providing a basic additional step, much like 3DES does to get around single-DES hackability.

      You're still better off, IMHO, just encrypting signed messages to the recipient. ;-)

      --
      - Michael T. Babcock (Yes, I blog)
    8. Re:Dumb question by Anonymous Coward · · Score: 0

      f(x) = (SHA1(x) sizeof(MD5(x)) | MD5(x)) # basically: bitwise concatentation
      f(unknown) = digest = f(x) # e.g. digest = 42

      Solve for x = f'(digest) # f' is the inverse function

      Neglecting the complexity of the transformation into suitable format, one method of solving for x is to solve the NP complete problem of the existence of a collision f(x) = digest! Repeat as you prove the existence of collisions that include partial matches until you have a full collision.

      Unless someone threw us a fake hash, we know at least one collision exists: the original. One could probably make a probabilistic pigeonhole argument here given ratio of the size of the input space to the size of the digest space, but I'll just say that we're at least guaranteed to be able to crack a password given its hash, but it may not always be possible to create a fake document with the matching digest. (One can imagine the degenerate algorithm that only sets the n-th bit of the digest if the message is an exact match to some string. If that bit is set, you wouldn't be able to produce a fake document, but anyone could easily guess your password...)

  23. That's based on the assumption... by msauve · · Score: 0

    that the strength of an algorithm is a constant. As has been shown, new attacks are always possible, so at some point in the future, the situation may be reversed and A be weaker than B. By using multiple means, the chance of a failure due to a new attack is reduced.

    It's like that cardboard used glue which changes to an acid after a couple of years, except you didn't know in advance. You would have been better off using just paper.

    --
    "National Security is the chief cause of national insecurity." - Celine's First Law
  24. links to papers by j1m+5n0w · · Score: 2, Informative

    The article has links to the previous SHA attack papers and Xiaoyun Wang's publication list. (These links were added after the article was posted, so maybe you missed them.)

    1. Re:links to papers by statemachine · · Score: 1

      As I said in another reply, my apologies to you j1m+5n0w. While the article does not have any useful links, you did provide a link to the papers.

      That was the information I was asking for.

  25. Recoding by NcF · · Score: 1

    Time to start searching for some good SHA-512/-1024(?) applications...

  26. Visa problems for the authors by clap_hands · · Score: 4, Informative

    Two of the Chinese researchers (Xiaoyun Wang and Hongbo Yu) were due to present their SHA results at the CRYPTO 2005 conference in the US, but were denied visas in time to attend. Adi Shamir (the A in RSA) ended up announcing this latest result on their behalf.
          http://cipher-text.blogspot.com/2005/08/visas-for- chinese-crypto-researchers.html

    1. Re:Visa problems for the authors by clap_hands · · Score: 4, Informative

      Oh, I must be tired: Shamir is, of course, the *S* in RSA. Crikey.

    2. Re:Visa problems for the authors by Anonymous Coward · · Score: 0


      *claps hands*

      hahaha.

    3. Re:Visa problems for the authors by DNS-and-BIND · · Score: 0, Troll
      Yeah, because their interest in breaking American government ciphers is purely academic, and will never, ever be used by the CCP. Maybe it would have also helped if they had applied for the visa in time.

      Visas are a two-way street, you know. I've had plenty of problems obtaining the proper visa to enter China, only people don't write blog posts about it and imply it's due to some sinister conspiracy. Also, in the typical ignorant, Western-centric viewpoint, you point to a weblog that is blocked by the Great Firewall of China (don't feel special, all of blogspot.com is blocked). So Wang Xiaoyun and Yu Hongbo (their correct names before being Westernized) can't view your post, due to the censorship of the government for which they break ciphers for.

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    4. Re:Visa problems for the authors by clap_hands · · Score: 2, Insightful

      Do you understand the difference between a hash function and a cipher? It doesn't appear so. And why on earth, if these researchers were indeed working nefariously for the Chinese government, would they try to publish their results at an American conference? Hmm, yeah...a good conspiracy theory, that one.

      Xiaoyun Wang and Hongbo Yu write their names that way in their papers and on their website; that's good enough for me.

      Oh, I remember. This is Slashdot and you're trolling. Silly me.

    5. Re:Visa problems for the authors by kelzer · · Score: 1

      Oh, I must be tired: Shamir is, of course, the *S* in RSA. Crikey.

      Hmmmm, the old "double the karma by posting a followup correcting a mistake in the parent" trick. I gotta remember that one!

      --

      ---------------------------------------------
      SERENITY NOW!!!!!!!!!!!!!!!!
    6. Re:Visa problems for the authors by clap_hands · · Score: 1

      ROFL, yeah, what the? I've absolutely no idea why people found the correction post to be so incredibly informative. A candidate for some "overrated" moderation if ever there was one.

  27. No such thing as uncrackable by jimktrains · · Score: 1

    If an alg can be decrypted, doesn't that mean that it can't be unbreakable? Even if there is one and only one way to decrypt it; couldn't brute force always work?

    --
    "You will do foolish things, but do them with enthusiasm." - S. G. Colette
    1. Re:No such thing as uncrackable by Anonymous Coward · · Score: 2, Insightful

      The problem is knowing whether the decrypt you get is what was originally encrypted. It is perfectly possible that you can decrypt one way, and get one perfectly valid plaintext, but decrypt it another way and get a different valid plaintext.

      This is why a one time pad is completely secure: any cipher text can be deciphered to any plaintext.

    2. Re:No such thing as uncrackable by Anonymous Coward · · Score: 1, Informative

      The laws of thermodynamics and the amount of energy our Sun will emit in it's lifetime also come in to play when talking about bruteforcing encryption algorithms.

      SHA-1 is a hashing algorithm - meaning that it was never intended to derive the original message from the hash - just that the hash should uniquely identify the original message (and a few known collisions that _should_ occur in only once in 2^[number of bits in hash length] other messages).

          What is significant about these discoveries (the whole chain of them) is that it is far easier than generating 2^[number of bits in hash length] messages to identify collisions.

  28. Visa application hash collision by Anonymous Coward · · Score: 0

    Her visa application's SHA1 hash matched Osama's.

  29. Recommended hash algorithm by VE3MTM · · Score: 0, Redundant

    So now that SHA-1 has been rendered largely useless for any security application, what is the current "recommended" cryptographic hash algorithm? One of the SHA-2 variants (SHA-256, for example)?

    --
    09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 Whoops, silly middle mouse button...
  30. Cereosly - this infidel has a point by Anonymous Coward · · Score: 0
    Please, Slashdot - DO NOT brainstrom low-tech easy to implement terror strategies.


    Also, do not throw rabbits into the briar patch...


    My name is Achmed, and I endorse this post

  31. SHA-1 is still good for a lot of applications by greenrom · · Score: 4, Interesting

    While this finding definitely shows a weakness in the SHA algorithm, it isn't a weakness that makes most applications that use SHA any more vulnerable. They found a way to generate two texts that produce the same hash using an algorithm with a time complexity of 2^63 instead of 2^80 as would be required for a brute force attack. However, being able to generate two texts that produce the same hash won't help you exploit most systems that rely on SHA. If someone finds a way to generate text that produces a SPECIFIED hash in 2^63 time, then there's reason to be concerned. However, since these findings show that SHA-1 has some weaknesses, it's probably time to start looking for a better hashing algorithm before a more serious vulnerability is found.

    1. Re:SHA-1 is still good for a lot of applications by gonkem · · Score: 1

      As I understand it, there is still an attack where you get Verisign to sign a given CSR - www.foocorp.com, while you have a second CSR for www.megabank.com with the same hash.

      Once Verisign has signed it, you can substitute the contents and have a valid certificate for www.megabank.com - get out your phishing rod and start phishing!

  32. Well that would assume a few things by Sycraft-fu · · Score: 4, Insightful

    #1) That the NSA has better cryptologists than everyone else. Remember AES was widely reviewed before becomming an accepted standard, and not just by US researchers. Top experts from all over the globe looked at it, an decided it was secure. So for the NSA to know a weakness, means that they have experts beyond all others combined.

    #2) They are very ballsy, and very certian that no one will find those exploits. The US government uses AES for secret and top secret data. It would be amazingly arrogant to know how to crack the crypto, and yet to still use it for the most secure documents.

    #3) They are willing to trust that the authors, two foriegners (Dr. Daemen and Dr. Rijmen are Belgian) were unaware of this exploit. Remember that if an exploit was found, it is always possible the authors knew, and intended that they'd be able to use it.

    It thus seems EXTREMELY unlikely that the NSA would know of a crack for AES and simply be sitting on it. It would put a great deal of incerdibly sensistive government data at risk, as well as US economic intrests.

    No, what seems far more likley is that the US government came to the realization that strong crypto is widely available outside the US, and thus is makes no sense to try and restrict it from the public as it would only serve to give other nations an advantage.

    So no, I don't believe AES is strong because the NSA is strong, though I respect their opinon to a great degree, I believe it's strong because the world cryptography community believes it is.

    To date there have been two proposed attacks. One is called the XSL attack. It's not an actual break, simply something that would in theory make it easier to brute force, but still well out of the realm of possibility. More, the math behind it is suspect, it may not even be workable at all. Then there was teh cache timing attack. It does work, but required a special SSL server that gave out as much timing information as possible, and 200 million known plaintext bytes. Nifty, but not practical in the real world.

    1. Re:Well that would assume a few things by bigberk · · Score: 2, Funny

      that what we WANTED you to think!

      - NSA
      PS. pwned

    2. Re:Well that would assume a few things by Synli · · Score: 0, Flamebait

      Grow up. You're just another paranoid moron.

      --
      "Two things inspire me to awe -- the starry heavens above and the moral universe within." - Albert Einstein
    3. Re:Well that would assume a few things by Lifewish · · Score: 2, Insightful

      1) When DES came out, academia were demonstrably at least 20 years behind the NSA in terms of cryptographic skills.

      2) I'm impressed that you know what they use for top secret data - do you have any references for that? I'd note that, if USA top-secret data were encrypted by a different system, the NSA might well decide it was worth the risk of AES being cracked to be able to read their enemies' data.

      3) If the authors, on their own, were capable of finding a break then their work would most likely have been independently duplicated by the academic community by now. If, however, one of the biggest employers of mathematicians worldwide, with more past experience of cryptoanalysis than anyone but GCHQ, were to find a break, they could probably expect that it wouldn't be duplicated any time soon.

      Having said that, I'm not a cryptographer yet so I could be completely wrong.

      --
      For the love of God, please learn to spell "ridiculous"!!!
    4. Re:Well that would assume a few things by icbkr · · Score: 2

      in re 1) impossible to know, because the spooks won't sit down and compare notes. having come from a locked room military environment, i seroiusly doubt they were 20 years ahead. the military operated in a misguided semi-vacuum state back in the 80's; when 3DES was slammed. i'd say some individuals were ahead of the game, but not the establishment, and not 20 years. 2) i know some. here's a short quick list of topics that get TS-X'd (that's top secret with compartmentalization): body counts, nuke monitoring results, time sensitive intel, special mission deployment data, codes, active operations comm. and area 51 video of the aliens, of course. 3) what is the probability? if there is a scientific method to breaking the code, then yes, most likely i would agree. But if it relies on an intuitive leap, i would not put money on probability; and the people making the break are in the best position to know if what they have found is revolutionary or rudimentary.

    5. Re:Well that would assume a few things by m50d · · Score: 1

      The line that attacks only get better is very true. I'm not concerned about these attacks directly, but I'm concerned about the existence of attacks so soon after it's approval. They probably won't come to anything, but why take the risk? I'll stick to cast, the worst I've ever heard said about it is that it's ugly.

      --
      I am trolling
    6. Re:Well that would assume a few things by valdezjuan · · Score: 1

      i seroiusly doubt they were 20 years ahead. the military operated in a misguided semi-vacuum state back in the 80's; when 3DES was slammed. i'd say some individuals were ahead of the game, but not the establishment, and not 20 years.
      Did you read the link that pointed to Schneier's article? Just to quote a bit of it. By the way this took place in the 1970's:

      When IBM submitted DES as a standard, no one outside the National Security Agency had any expertise to analyze it. The NSA made two changes to DES: It tweaked the algorithm, and it cut the key size by more than half.
      ...
      It took the academic community two decades to figure out that the NSA "tweaks" actually improved the security of DES. This means that back in the '70s, the National Security Agency was two decades ahead of the state of the art.

      Granted the end of the article indicates that this is no longer true. Cryptography has become a respected and legitimate study all around the world. So it is doubtful that the rest of the world and researchers in the states, haven't closed that gap significantly. But the fact that it took researchers outside of Ft. Meade two decades to discover that the 'tweaks' made to DES by the NSA, actually made it stronger to an attack that didn't even exist (again, to anyone outside of Ft. Meade) means that the NSA had to be ahead of the curve (about 20 years ahead).

      Again the article is here
    7. Re:Well that would assume a few things by clap_hands · · Score: 2, Interesting

      The problem is we have very little information to go on when it comes to the NSA's abilities. Sure, we know they knew about differential cryptanalysis 20 years before academia, but that's only one data point; it's dangerous to extrapolate too much (although it's great fun to speculate!)

      Consider, it took the IBM cryptographers less than five years to discover differential cryptanalysis (they called it the "T-attack"), so maybe open academia were simply unlucky or unfocused when it came to block cipher cryptanalysis?

    8. Re:Well that would assume a few things by stanmann · · Score: 1

      Assuming that FOIA isn't a hoax, all of that information will be available for public release within 20-50 years, and the "weaknesses" of whichever encryption system assuming that the system is strong enough to resist for the de-classification time period are perfectly adequate.

      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
    9. Re:Well that would assume a few things by OpenGLFan · · Score: 1

      2) I'm impressed that you know what they use for top secret data - do you have any references for that?
      "The design and strength of all key lengths of the AES algorithm (i.e., 128, 192 and 256) are sufficient to protect classified information up to the SECRET level. TOP SECRET information will require use of either the 192 or 256 key lengths. The implementation of AES in products intended to protect national security systems and/or information must be reviewed and certified by NSA prior to their acquisition and use."

      http://www.cnss.gov/Assets/pdf/cnssp_15_fs.pdf

  33. Hahaha. by pseudochaotic · · Score: 1

    I absolutely love how this was modded redundant. Apparently, the mods have a sense of humor today!

    --
    And the l33t shall inherit the 34r7h.
    1. Re:Hahaha. by Phil246 · · Score: 1

      im not too bothered.
      asked a question, got an answer - good enough for me :)

  34. Not insurmountable.... by postbigbang · · Score: 1

    Consider that the effects of preprocessing seem to make the near-collision detection methods fallible, or so they cite. Better preprocessing == fewer 'hits' to then anchor reduction/decriment detection for real collision vectors. This is heartening, but are only a speed bump for a while. I think SHA-X will get attacked in a different way. At DefCon, an interesting tabling method was described that has some possibilities, by reducing both the input methods, linked to a rapidly anded table to see what pooped out the other end of the algo. That's tested for smell (pardon the metaphor) and therefore decriments rather rapidly. It sure beats the sifting method.

    --
    ---- Teach Peace. It's Cheaper Than War.
  35. Hash similarities. by pontifier · · Score: 2, Interesting

    when I was learning how these hash functions work, i was amazed to find that they work through the file to be hashed in a linear manner so that an attacker can target 1 small round and create a colision. does anyone know of any hash function that operates on the entire file in a single expanding round that can expand to take the entire file? it is my understanding that these attacks focus on defeating a single round of a set size hash. an expanding hash would make this many times more difficult to crack.

    A hash that reduces the size of the original by only 50% could be re-iterated to create progressively smaller and smaller results untill a hash in a certain size range was created. any attack would have to break the first round, and that first round could be defined to produce a result no smaller than 10MB or something. that should be enough to keep us safe for a while.

    --
    -John Fenley
  36. "Freeform" collision by Gadzinka · · Score: 4, Interesting

    What no one seems to mention is that their attack finds "freeform" collisions. I mean, they go and find two plaintexts with the same hash. I wouldn't worry about it until they find 2^63 attack against given plaintext/hash.

    You can read about the distinction in Birthday Paradox article on Wikipedia. In short, when the difficulty of finding collision against a given message is 2^n, the difficulty of finding any two colliding plaintexts is 2^(n/2).

    So, while they may have found 2^63 attack against SHA-1, it is still a "birthday attack", and to find collision against my message signed with sha-1 the attack would still be 2^126.

    Or did I miss something?

    Robert

    --
    Bastard Operator From 193.219.28.162
    1. Re:"Freeform" collision by Anonymous Coward · · Score: 0

      Well, for one: the chance of finding a collision with your sha-1 message would be 1:2^160, and not 1:2^126. But that's just nitpicking.

    2. Re:"Freeform" collision by Anonymous Coward · · Score: 0

      The problem is that public-key crypto systems sign supposedly secure hashes of messages, not the whole message. You sign the hash on a message saying "I promise to pay Alice $100" , I find a message that means "I promise to pay Alice $1,000,000" with the same hash.

      Oh look, you've signed it. It must be true.

    3. Re:"Freeform" collision by Anonymous Coward · · Score: 0

      Doofus. You completely ignored his post. If it takes 2^126 to construct a matching message, it's infeasible.

  37. Spiral hash map? by garyebickford · · Score: 2, Interesting

    You might look into steganography, which uses the text as a mapping function on a digital image, which becomes the key. If only the sender and the receiver know what picture was used, with the proper mapping the encryption can be 'completely unbreakable'.

    More interestingly (to me), you just inspired an idea. Caveat: IANACryptographer; I know little about it, so the following may be useless, stupid, or wrong. Or, as a professor once said about someone's paper, "This isn't right. It's not even wrong!"

    One might consider the input text as a multi-dimensional space, using some mapping from the original linear text to the space. Then, the loci in that space could be fed into the hash according to another mapping. The mapping amounts to at least one additional hash function for each dimension.

    For a simple example, consider the text as a rectangular array in row major order. Then, starting in the middle, using some small block size (perhaps variable) the bytes of the text in a rectangular 'spiral' are combined into input chunks for the hash process. If we use the alphabet (A-X) in a 4x6 matrix as an example, the first row would be ABCDEF, the 2nd GHIJKL, 3rd MNOPQR, 4th STUVWX. Using a 2-byte chunking, the chunks input into the hash would be IJ, PO, NH, BC, DE, KQ, WV, UT, SM, GA, BC, DE, FL, RX. Note that BC and DE are presented twice - I don't know if that's a good thing or a bad thing, but I think it can be good. Various strategies can be employed to map non-square or non-regular 'shapes'.

    There are an infinity of ways to perform such mappings, a majority of which apparently destroy any benefit an attacker may receive from observing adjacencies and periodicities in the data. I say apparently because a major area of potential vulnerability will be in the transmission of the mapping rules. If the rules are encoded some way in the cyphertext, an attacker's first objective would be to crack the encrypted information about the mapping, which would allow the attacker to then consider the input to the hash as a linear text. This could be avoided if only a miniumu amount of information is included in the cyphertext that would allow a legitimate receiver to determine the correct mappings from among a large potential set of mappings with low mutual similarity.

    One might view this method as "Through the Looking Glass", because, it performs spatial distortions on the data, though often of types not easily accomplished by a physical lens. Steganography is a one-dimensional mapping in this sense, where the location of a bit in the two dimesional space is not changed but it's position in color, phase, parity or other space (the value dimension) is changed.

    This little flight of fancy may be old news or stupid, I don't know. If it's new and useful, I'll be glad to assert patent rights and other IP rights, so as to avoid proprietary lock-in and make the technology available under a Creative Commons -type license for the general good! :)

    --
    It's easier to be a result of the past, but more fun to be a cause of the future! http://www.spacefinancegroup.com/
    1. Re:Spiral hash map? by pontifier · · Score: 1

      So if i'm reading you right you are suggesting that insted of reading through a file from beginning to end, you would essentialy shuffle the pieces around? this seems more applicable to encryption than for use in a one-way hash.

      in a one-way hash there shouldn't be any ambiguity about the connection between the hash and the message. also nobody should be able to create 2 messages with the same hash. MD5 and SHA-1 use a method in which the message is broken into blocks that are handled one at a time, creating a carry over hash for use in the processing of the next block.

      an efficient attack on MD5 or SHA is going to target the carry over hash, not the entire hash. scrambling the order may or may not have the desired effect of preventing an attack. increasing the complexity and size of the round (all else being equal)would make an attack more dificult.

      With MD5 and SHA the carry over hash is the same size as the final hash. What I was proposing was a carry over hash that was large to start with(hard to crack), but diminishes rapidly. you can have a huge initial round, yet have a small resultant hash(on a scale a human can look at and check easily) if you iterate a percentage reduction hash(ie. hash the resultant hash untill it is the size you want). the only down side of this method is computation. it would take a lot longer to calculate the hash, and take more memory to process, but the resultant security may offset this cost, especially in light of todays fast processors.

      --
      -John Fenley
    2. Re:Spiral hash map? by Dominic_Mazzoni · · Score: 1

      You may want to read, How do I present a new encryption scheme in sci.crypt? from The Cryptography FAQ, page 2.

    3. Re:Spiral hash map? by mattpalmer1086 · · Score: 1

      This has nothing to do with creating more secure hash algorithms. You are actually attempting to devise your own encryption scheme which is applied before hashing.

      This won't make a viable hash algorithm, as hash algorithms by definition do not require a secret key - to be useful they should be reproducable by anyone - this is why they have applications in data integrity or digital signatures, amongst others.

      You rightly identify the fact that to be useful, your scheme must encode how the mappings are to be performed - which is the key. But why invent your own encryption routine? Your encryption seems to be a kind of simple diffusion apparatus, but operating at a character rather than a bit level, and I suspect would be easily crackable.

      In the case where you want to obscure the relationship between the source document and the hash (so only those who need to know can verify the hash - e.g. in authentication mechanisms), just use HMACs (which are keyed hashes).

  38. MOD PARENT INFORMATIVE by Anonymous Coward · · Score: 0

    That change did in fact improve the security of DES.

  39. Brits? Hollywooded! by Anonymous Coward · · Score: 1, Informative
  40. Simple new hash function by s1234d · · Score: 2, Interesting

    Why not just append the MD5 and SHA1 hashes together? What are the chances of getting hash collisions with two difference algorithms from the same input? I don't think I'd lose much sleep over it.

    1. Re:Simple new hash function by m50d · · Score: 0, Troll

      Please for god's sake stop modding this stupid stupid idea up.

      --
      I am trolling
  41. Links go back to Schneier blog with no proof by statemachine · · Score: 1

    I didn't miss anything. The Wiki articles just reference Bruce's blog, which doesn't provide any proof.

    I don't see how you're modded informative, and I'm modded a troll, since I asked a valid question, and you didn't provide the answer.

    Please, *please* provide a link to the proof.

    1. Re:Links go back to Schneier blog with no proof by clap_hands · · Score: 1

      The Wikipedia SHA-1 article and Bruce's blog both link to the papers published at CRYPTO 2005.

    2. Re:Links go back to Schneier blog with no proof by statemachine · · Score: 1

      They don't have direct links. If you consider a link to another Wiki article which links another page which links another page a direct link....

      *You* (clap_hands) have not provided any link. Only j1m+5n0w provided a link.

      And I apologize to j1m+5n0w because I see that he did provide a direct link to the papers. Neither of which was provided in the article, or Bruce's blog.

      But no apologies to you. You're merely trying to stir up trouble (hey! I didn't even reply to you until now, so why did you respond to my response to j1m+5n0w?).

    3. Re:Links go back to Schneier blog with no proof by clap_hands · · Score: 1

      Links to papers were provided in Bruce's blog and the Wikipedia article.

    4. Re:Links go back to Schneier blog with no proof by statemachine · · Score: 1

      quoth Schneier's blog:

      "EDITED TO ADD: Here are Xiaoyun Wang's two papers from Crypto this week: "Efficient Collision Search Attacks on SHA-0" and "Finding Collisions in the Full SHA-1Collision Search Attacks on SHA1." And here are the rest of her papers."

      When I read his blog (when the slashdot article appeared), there was no such reference. Apparently he read my comment. Thanks Bruce.

      By the way, clap_hands, you're still a troll.

    5. Re:Links go back to Schneier blog with no proof by clap_hands · · Score: 1

      Go to the Wikipedia article. Go back to the version when this Slashdot article was posted. Search for "The paper with a the full attack description is now online. [8]". Since then, the article has been updated with references to the CRYPTO 2005 papers. At no point has the Wikipedia article been without a link to Wang's work.

      What I'm annoyed about is that you're evidently too lazy to look at TFA to find these papers, even when people tell you that they're there.

    6. Re:Links go back to Schneier blog with no proof by statemachine · · Score: 1

      I forgot to add, the Wiki was updated with the papers only AFTER I posted my question.

      (cur) (last) 01:48, 19 August 2005 Matt Crypto (links for CRYPTO 2005 papers)

      Possibly Matt Crypto read my comment. Thank you Matt Crypto.

    7. Re:Links go back to Schneier blog with no proof by statemachine · · Score: 1

      You didn't even read my comment. Pot. Kettle. Black.

    8. Re:Links go back to Schneier blog with no proof by clap_hands · · Score: 1

      There was a link to Wang's paper in the Wikipedia article at the time this story was posted.

    9. Re:Links go back to Schneier blog with no proof by statemachine · · Score: 1

      Proof?

    10. Re:Links go back to Schneier blog with no proof by clap_hands · · Score: 1

      On the 18th of August, the Wikipedia SHA-1 version was this:

      http://en.wikipedia.org/w/index.php?title=SHA_hash _functions&oldid=21254038

      It contained the following in the External Links section:

      * "Research paper containing the details of the attack on SHA-1" on Cryptome.

      This stayed in the article until, as you noted, the wonderful Matt Crypto updated it to point to the papers directly on Wang's website.

    11. Re:Links go back to Schneier blog with no proof by statemachine · · Score: 1

      Thank you for the link and the pointer to the text.

      I will concede that there was a link to *one* of the recently published papers, and had I examined every single link, I would have found *one* of those papers, albeit from a non-primary source.

      However, you must concede that "The authors have presented a collision for 58-round SHA-1, claimed to be found with 233 hash operations. The paper with a the full attack description is now online. [8]" is missing the reference in the later versions (the one I originally read):
      http://en.wikipedia.org/w/index.php?title=SHA_hash _functions&oldid=21330286
      Note that this phrase "* "Research paper containing the details of the attack on SHA-1" on Cryptome" that you quote is also missing from that version.

    12. Re:Links go back to Schneier blog with no proof by clap_hands · · Score: 1

      A link to Wang's SHA-1 paper has been in the "References" section of the Wikipedia article in every version since this story came on Slashdot.

      I don't have a problem with you missing the links. I just think you should haved double-checked the article more carefully when it was pointed out to you that the papers were actually there after all, and not started with the "stirring up trouble" and "still a troll" jibes.

    13. Re:Links go back to Schneier blog with no proof by statemachine · · Score: 1

      You're still badgering me. I pointed out the version that I read and you're still acting like a troll.

      I won't apologize to you. You are a troll.

  42. Revise software signature protocol by ejhuff · · Score: 2, Interesting
    Proposed revision of software signing protocols to allow for hash collisions.

    Google for a25f7f0b29ee0b3968c860738533a4b9 OR a25f7f0b, an example of how to exploit a hash collision.

    To avoid this exploit, the signer needs to make an unpredictable modification to the document prior to signing.

    Alice and Bob use hash function H and signature function F to validate documents. Alice signs a message M by finding signature S such that F(S) = H(M). Bob accepts (M,S) as signed by Alice. Eve can calculate H(M) and F(S) but cannot find S given M.

    Eve creates documents M1 and M2 which have the same hash, and asks Alice to sign M1. If Alice uses the expected hash, Eve can substitute M2 and Bob will accept (M2,S) as signed by Alice.

    So Alice and Bob need to agree to a safer method. When Eve presents M1 for signature, Alice generates a new random key K, encrypts M1 with K and hashes, giving H(K(M1)). She then signs this by finding S such that F(S) = (K,H(K(M1))), and gives (S,K) to Eve.

    Eve sends (M2,S,K) to Bob. Bob checks the signature by calculating F(S) and comparing it to (K,H(K(M2))).

    Eve is foiled, because H(K(M1)) != H(K(M2)), even though H(M1) = H(M2).

    Thus, immediately, the protocols for signing software distributions should be adjusted so that the signing authority Alice generates random key K and signs H(K(M)) instead of just H(M). The automatic software update agent Bob checks the signature (S,K) by calculating F(S) and (K,H(K(M))).

    This will prevent substitution of a useful M2 for M1 by Eve, who is allowed to present an arbitrary M1 for testing and signature. Eve cannot predict K, and hence even if she can find M2 after the fact, such that H(K(M1)) = H(K(M2)), she is not allowed to change M1 after K is chosen. Hence M2 will not be useful.

    Bob can safely install M1 automatically, confident that if M1 passes a simple syntax check (which M2 cannot possibly satisfy), it is the same program which Alice accepted for signature, even if hash collisions can be found.

  43. Re:Solution? Stone by Anonymous Coward · · Score: 0

    WTF the Chinese have Cracked my Afghani Hash ?*!@rr
    Man I knew I was feeling pretty damn wired, I knew this was a bad week to give up glue-sniffing.

  44. Thank you for posting that by xeno-cat · · Score: 2, Interesting

    I hear from the tech/geek community all the time that we don't have a problem with racisim or sexism. Everyone is equal, it's a meritocracy, etc. etc. It's easy to ignore these problems when your the dominant culture, or cocoon your self in a bubble and pretend you are.

    Kind Regards

    --
    "A few great minds are enough to endow humanity with monstrous power, but a few great hearts are not enough to make us w
  45. Double Keys? by Midnight+Thunder · · Score: 1

    We are starting to see more and more case of hash algorithms, such as MD5 and SHA-1, suffering from these type of exploits. Would it not be possible to simply have a key which is actually two keys, using two different algorithms? The idea being that it would be more difficult to get round exploit a key which is the result of two different algorithms. As computing power increases the ability to exploit hash-algorithms improves, but at the same time the effort required to generate multiple keys is reduced.

    --
    Jumpstart the tartan drive.
  46. Niels Bohr did by LPetrazickis · · Score: 1

    "Your theory is crazy, but it's not crazy enough to be true."
    - Niels Bohr (1885-1962)

    --
    Is this a sigs-optional kind of place? 'Cause I am totally down with that if you know what I mean.
  47. RSA by Anonymous Coward · · Score: 0

    FYI: RSA stands for Rivest, Shamir, Adelman so Shamir is the "S"

  48. Where, where? by DonJoe · · Score: 1

    W00t? no "I for one welcome our new WHIRLPOOL overlords..." or "In Soviet Russia, hashing algorithms attack YOU!"

  49. Quite explainable... by Anonymous Coward · · Score: 0

    The news reporters had trouble saying that the Wang/Yin/Yu team did it with a straight face, perhaps?