Slashdot Mirror


Bernstein's NFS analyzed by Lenstra and Shamir

kousik writes "The analysis of Bernstein's NFS by Arjen Lenstra, Adi Shamir, Jim Tomlinson, Eran Tromer has been put up on cryptosavvy. Seems interesting it comes from Lenstra and Shamir. Lenstra lead the 1994 factorisation of RSA 129. From the abstract: ... We also propose an improved circuit design based on a new mesh routing algorithm, and show that for factorization of 1024-bit integers the matrix step can, under an optimistic assumption about the matrix size, be completed within a day by a device that costs a few thousand dollars..."

168 comments

  1. errrrr NFS? by karrde · · Score: 5, Informative

    Let's just ignore the fact that we're all a bunch of geeks, and the acronymn NFS usually equal 'Network File System'. Not 'Number Field Sieve' as it does in this case. Would it have been so dificult to say that in the post?? The first link doesn't even give you that information.

    1. Re:errrrr NFS? by (void*) · · Score: 2

      Sorry - you are a bunch of computer geeks. These guys are Mathematical Nerds. There's a difference.

    2. Re:errrrr NFS? by bafu · · Score: 1

      Right. The people who would be interested by this article will know what NFS means in this context. Just because *YOU* aren't interested in this field, it doesn't mean that they have to make it more obvious to you.

      Well, I ended up following the link since I couldn't be 100% sure than Dan Bernstein hadn't written an NFS implementation... ;-)

      As you say, though, no biggie. certainly not worth complaining about...

    3. Re:errrrr NFS? by bluGill · · Score: 1, Offtopic

      Because it is of interest to me, even though I'm not an expert on the topic. I read the entire summery, trying to figgure out what fire sharing had to do with the topic. Only after I read the summery did I realize that NFS must mean something different, but I wasn't sure what. Once it is explained it makes perfect sense, and I know essentially what is ment.

      I have enough of a cryptography background that I can deal with nfs as mentioned, but I'm rusty there, but normally when someone says NFS I think network file system, because it is common to say nfs to me with that meaning. (I work on unix systems, nfs failures are my first clue that something is wrong in many cases)

    4. Re:errrrr NFS? by Our+Man+In+Redmond · · Score: 2

      Yeah, not to mention the fact that when they said this was Bernstein's NFS, the first thing I thought was, "Okay, what has the author of qmail gotten his fingers into this time?"

      --
      Someone you trust is one of us.
    5. Re:errrrr NFS? by danboo · · Score: 1

      umm, your first thought was correct. they are the same.

    6. Re:errrrr NFS? by diryn · · Score: 1

      Mmmm. Then again, I read too much. I thought it woulda been obvious from the article, but I forget that other people don't know the same things as me. Nor I them. To me, it was obvious because one, it spoke of RSA, factorization, and cryptosavvy. My apologies for thinking I'm better than the lot of you. David

      --
      Reductio Ad Adsurdium David
    7. Re:errrrr NFS? by Enry · · Score: 3, Insightful

      Given that DJB already has implementations of DNS and SMTP around that are heavily focused on security, it wouldn't suprise me if he went into looking at securing NFS (the file system).

    8. Re:errrrr NFS? by Anonymous Coward · · Score: 0

      Class act.

    9. Re:errrrr NFS? by Anonymous Coward · · Score: 0

      HA HA! You forgot about the Bernstein condition!

    10. Re:errrrr NFS? by cperciva · · Score: 2

      Given that DJB already has implementations of DNS and SMTP around that are heavily focused on security, it wouldn't suprise me if he went into looking at securing NFS (the file system).

      I think that would be rather a change in direction for him, since he regularly refers to that NFS as the "Network Failure System".

    11. Re:errrrr NFS? by Anonymous Coward · · Score: 0
      don't EVEN think of stealing my quake name...


      (pimp slap)...

    12. Re:errrrr NFS? by dew · · Score: 2

      Actually, it *is* the same Bernstein. Look at the endnote [1].

      --

      David E. Weekly
      Code / Think / Teach / Learn
      h4x0r for

    13. Re:errrrr NFS? by Carlos+Laviola · · Score: 2

      Heh. People get surprised when they hear that great coders also happen to be great mathematicians or physicists ;-)

    14. Re:errrrr NFS? by Ignominious+Cow+Herd · · Score: 0

      I thought it was Leonard Bernstein

      --
      Lump lingered last in line for brains, and the ones she got were sorta rotten and insane.
    15. Re:errrrr NFS? by Mastoid · · Score: 1
      Given that DJB already has implementations of DNS and SMTP around that are heavily focused on security, it wouldn't suprise me if he went into looking at securing NFS (the file system).

      That would be rather like DJB looking into optimizing BIND.

      (Read: not bloody likely.)

      --
      I had an argument...with the person here at the university that teaches OS design. I wonder when I'll learn --Linus
    16. Re:errrrr NFS? by Anonymous Coward · · Score: 0

      ye gads geek doesn't neccesarily mean IT support

      now if you were a true geek as soon as you saw the start of the word 'crypt' you would have switch your mindset to crypto geekdom and correctly placed the TLA.

      Proper geeks are multi-acronyminal ;->

    17. Re:errrrr NFS? by Our+Man+In+Redmond · · Score: 2

      Figures. In my lame attempt to be funny I picked the wrong Bernstein. I guess I should have said "OK, what has the composer of West Side Story gotten his fingers into this time?" Never mind that he's been dead for several years.

      --
      Someone you trust is one of us.
  2. hackers... by coronaride · · Score: 5, Funny

    still waiting for that level of encryption shown in everyones favorite hacking movie that displays the giant skull and crossbones in a cheezy GUI to let you know that you don't have access..

    --
    Those who can, do. Those who can't, go into business for themselves.
    1. Re:hackers... by KingKire64 · · Score: 1

      You could also get around that by shift clicking on the Pi symbol on the bottom right hand corner of the page. BTW when i know she wasnt a hacker but when was the last time you met a computer geek that looked like sandra bullok?

      --
      "All I can tell the "lesser of two evils" folks is that if they keep voting for evil, they'll keep getting evil."-Lp.org
    2. Re:hackers... by Budgreen · · Score: 0

      Would this be before or after they have on Powergloves and are flying around inside the computer representation VR type thing?

      --
      The greatest right given is the right to be wrong...
    3. Re:hackers... by ImaLamer · · Score: 0, Offtopic

      Why not use the PowerGlove?

      I've got a book somewhere that talks about using it in your programs, although I can't find it to give you the title.

    4. Re:hackers... by Anonymous Coward · · Score: 0

      > sandra bullok ?

      err? Did you mean Angelina Jolie?

    5. Re:hackers... by i_am_nitrogen · · Score: 1

      Sandra played the girl in The Net. The shift-click Pi symbol linked you to the praetorius(sp) terrorist organization magic spy page that was on all Gatekeeper protected systems.

    6. Re:hackers... by EverDense · · Score: 1

      Yeah, I'm saving all my best virii for that day.

      --
      http://jesus.everdense.com/
    7. Re:hackers... by smnolde · · Score: 2

      Excellent reference to "Weird Science"

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

      uh gary. this is HIGHLY illegal.

  3. Still behind the times by Anonymous Coward · · Score: 1

    There are more efficient, deterministic ways of factorization than NFS. Additionally, in the not too distant future, off-the-shelf quantum computers will be able to make short work of 1024+.

    1. Re:Still behind the times by wirelessbuzzers · · Score: 2, Insightful

      There are more efficient, deterministic ways of factorization than NFS.

      True, but not by much, and if the jump was as big as claimed, not for long. But these guys revised it down considerably.

      Additionally, in the not too distant future, off-the-shelf quantum computers will be able to make short work of 1024+.

      Physicists aren't even sure if quantum computers are practical... sure Shor's algo made short work of factoring 15, but what if it turns out that engineering the rather arbitrary entanglements required for Shor's is NP-complete? Then what? That possibility hasn't been ruled out yet, and making those entanglements is already pretty hard...

      --
      I hereby place the above post in the public domain.
    2. Re:Still behind the times by anonymous_wombat · · Score: 1
      Additionally, in the not too distant future, off-the-shelf quantum computers will be able to make short work of 1024+.
      I don't believe this. When you put a quantum computer on a shelf, you never know what part of the shelf it is liable to move to, or even a different shelf entirely.
    3. Re:Still behind the times by Anonymous Coward · · Score: 0

      > Additionally, in the not too distant future,
      > off-the-shelf quantum computers will be able to
      > make short work of 1024+

      That's a very bold extrapolation. It is yet to be seen if quantum computers will become anything beyond a curiosity.

    4. Re:Still behind the times by jrwyant · · Score: 1

      That's funny. Or, to put this another way, "Either you may tell where it is with certainty, and not its velocity, or its velocity but not where it actually is with certainty." :)

  4. Quotes from the paper by Beryllium+Sphere(tm) · · Score: 5, Interesting

    "In particular, we show that 1024-bit RSA keys are as secure as many
    believed them to be."

    "We thus
    conclude that the practical security of RSA for commonly used modulus
    sizes is not significantly affected"

    Sounds like it only speeds up one step of the factoring process, which is important to keep an eye on but not grounds for alarm.

    1. Re:Quotes from the paper by Telastyn · · Score: 3, Informative

      Furthermore the paper goes on to say that the major improvements were done to the matrix half of the procedure rather than the collection side. "Half" probably isn't the most accurate term, as the collection side takes far longer (months) than the matrix side (days).

      Even if you remove the matrix side, it takes a VERY long time to find all of the relations needed to make the matrix in order to solve it.

  5. Is factoring hard by sigxcpu · · Score: 1

    All the mathematical theorems used in public key cryptography have a fine print clause saying:
    "Assuming factoring/[other oroblem] is hard"
    this makes you think maybe it isn't

    --
    As of Postgres v6.2, time travel is no longer supported.
    1. Re:Is factoring hard by GigsVT · · Score: 2, Funny

      Nah, factoring's easy, I can factor any prime number up you tell me, in my head, in less than a second.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
    2. Re:Is factoring hard by Jeremiah+Blatz · · Score: 5, Insightful
      I don't know. If somebody knows it isn't, they aren't saying.

      The problem is this, there are certain mathematical problems that are known to be Hard. Traveling Salesman, Knapsack, etc. There are no shortcuts to solving these problems. Many mathematical problems can be proven to be in this class of problems. Nobody has, to date, publicly, shown that factoring numbers is Hard, and nobody has shown that it isn't.

      Of course, nobody has proven the security any of the symmetric cryptosystems (with the exception of one-time pads), so any practical system is already victim to this uncertainty.

    3. Re:Is factoring hard by bleckywelcky · · Score: 1


      Come on people +1 Funny, that was hilarious.

      Ah, forget it...

    4. Re:Is factoring hard by Anonymous Coward · · Score: 1, Informative

      Nobody has shown that traveling salesman and knapsack are hard unless you've got a proof that P != NP.

    5. Re:Is factoring hard by oldmacdonald · · Score: 1

      First, to reiterate the AC's point for those who are browsing at +1, no one has shown traveling salesman and knapsack are hard, only that they are NP-complete. If P=NP then it's all easy.

      Secondly, no one has shown a good cryptosystem based on these.

    6. Re:Is factoring hard by Anonymous Coward · · Score: 0

      Almost all cryptography problems boil down to solving the discrete log problem. That is figuring out what is the equivalent of the log function for finite fields. Factoring is hard because we don't know the answer to this question. In the 1940's we made huge progress on this problem by figuring out the equivalent of the log for a thing that is sort of halfway between a finite field and the real numbers. No one has had any great insight since then.

      In practice then what people are working on is making hard factoring faster not making factoring easy. And slowly but surely we are improving here, good idea after good idea. But we are always one great idea away from making factoring easy.

    7. Re:Is factoring hard by SavingPrivateNawak · · Score: 1

      Oh! you're Bill Gates?

    8. Re:Is factoring hard by photon317 · · Score: 2


      (I might be wrong, this is just my understanding of things at the moment)...

      Isn't factoring NP-Complete, and Traveling Salesman NP-Complete, and thus any cryptosystem that relies on factoring is in a certain sense a cryptosystem based on traveling salesman, since a solution to one can be translated to a solution of the other.

      --
      11*43+456^2
    9. Re:Is factoring hard by foxcub · · Score: 1

      But can you prove (not show with arbitrary probability) in your head that a given number is prime? For that matter, can you prove using a computer that a given large number (if you go for any) is prime? For some reason, I don't think so...

      Otherwise - funny.

    10. Re:Is factoring hard by Jeremiah+Blatz · · Score: 2, Insightful

      Factoring, AFAIK, is not NP-Complete. Traveling salesman is. Here's a list of known NP-Complete problems, if you're interested.

    11. Re:Is factoring hard by oldmacdonald · · Score: 1

      Factoring is not NP complete. So a solution to
      factoring doesn't get you a solution to traveling
      salesman, but a solution to traveling salesman
      does get you a solution to factoring.

    12. Re:Is factoring hard by kma · · Score: 2, Insightful

      The problem is this, there are certain mathematical problems that are known to be Hard. Traveling Salesman, Knapsack, etc. There are no shortcuts to solving these problems. Many mathematical problems can be proven to be in this class of problems. Nobody has, to date, publicly, shown that factoring numbers is Hard, and nobody has shown that it isn't.

      We stand on even sketchier ground than this. Travelling Salesman, Knapsack, and the "etc." referred to above are "NP-complete" problems-- they are the hardest problems in NP, the class of problems whose solutions only expand their inputs polynomially. (For an example of a problem outside of NP: given a number in base 2, represent it in base 1 (e.g., in tick marks. The output of this problem is O(2^n) for input of length n.)

      Factoring is in NP; however, we don't know whether it is NP-complete.

      How "hard" are these NP-complete problems? Nobody knows. Most "serious" folks hypothesize that polynomial-time solutions to these problems aren't possible on conventional computers (essentially, because lots of smart people have worked on it and haven't found one). However, nobody has proven this yet; and because of the equivalency of NP-complete problems, a solution to one can be transformed mechanically into solutions for all NP-complete problems.

      So, to summarize: we don't know how hard the NP-complete problems are; and factoring can only be as hard as the NP-complete problems (and just might be easier). Treating NP-complete problems as "hard" is a reasonable working assumption, but it is just that.

    13. Re:Is factoring hard by jbf · · Score: 2

      More accurately, factoring is not known to be NP-Complete. And if I remember correctly, if it is found _not_ to be NP-Complete, that would show its in P, AND show that P != NP.

    14. Re:Is factoring hard by SiMac · · Score: 1

      I know you said prime number, but according to Roger Penrose in The Emperor's New Mind, the mind is a quantum computer, meaning that you could indeed factor any number (even if its not prime) in your head...Of course it might take quite a bit of practice.

    15. Re:Is factoring hard by SiMac · · Score: 1

      IIRC, it has also been conjectured that breaking RSA may not actually be equal to factoring...this is discussed (but not in great detail) in RSA Laboratories' Frequently Asked Questions About Today's Cryptography which is available on their website. It's a good read for anyone interested in the mathematics of cryptography.

    16. Re:Is factoring hard by sylvester · · Score: 1

      Negative. Factoring reduces to RSAP (The RSA Problem). And RSAP reduces to factoring. They are computationally equivalent.

    17. Re:Is factoring hard by akruppa · · Score: 2, Informative
      >But can you prove (not show with arbitrary probability)
      >in your head that a given number is prime? For that matter,
      >can you prove using a computer that a given large number
      >(if you go for any) is prime? For some reason, I don't think so...

      It depends on how much time you are willing to afford. A trivial algorithm is to try every (prime) number sqrt(N) to see if it divides N, if there is none, N is prime. But in practice this is too slow to let you get much beyond N ~20 digits.

      Elliptic Curve Primality Proving is state of the art for general primality proofs today, try Primo which has been used to prove a 5020 digit number prime.

      Integer factoring is much harder than proving primality, the current record for a GNFS factorization is a 158 digit composite, see here.

      Alex

      --
      Heisenberg may have been here
    18. Re:Is factoring hard by akruppa · · Score: 1
      >Negative. Factoring reduces to RSAP (The RSA Problem).
      >And RSAP reduces to factoring. They are computationally equivalent.

      Are you sure about that? Decrypting an RSA message is taking a cubic root or 65537-th root (or whatevery your encryption exponent is) in a finite group modulo N, your public modulus.
      Taking roots is easy if you know the cardinality of the group and you get the cardinality of the multiplicative group (mod N) easily if you know the factorization of N by Euler's totient function \phi(N).
      If you know \phi(N) and N, getting the factorization of N is also easy, so these two are equivalent.
      But, afaik, it has not been proven that you need \phi(N) to do discrete roots (mod N). If you have different information, please post it. That'd be interesting news (to me, anyways).

      Alex

      --
      Heisenberg may have been here
    19. Re:Is factoring hard by foxcub · · Score: 1

      Nice links - thanks for them, though, I'm aware of these methods. What I was trying to say is that for you to factor a prime number, you basically have to show that it's prime, which still is a hard problem (5020 digits is still a limit), not as hard as factoring, but still not-so-easy. Though, all this is just picky details - your post was a joke after all. ;-)

    20. Re:Is factoring hard by Anonymous Coward · · Score: 0

      Hah, but travelling salesman isn't provably hard.
      It's provably in a class of problems where nobody
      knows any deterministic polynomial algorithms.

      And it's been, hum, twenty years, that an impressive
      array of people have tried to prove more about these
      problems, one way or another.

      And we still don't know more about them, mostly.

      It could be that there is a devious O(n^2) algorithm
      that solves the travelling salesman. It's unlikely,
      but there is *NO PROOF* to the contrary.

      How different is this from factorization ? there are some
      upper bounds for factorization, and some lower bounds.
      All known algorithms are hard... there might be a simpler
      algorithm. Or a proof that the problem is hard.

    21. Re:Is factoring hard by Anonymous Coward · · Score: 0

      Of course, to a theoretical computer scientist an
      algorithm is "efficient" if it's polymonial, meaning even if it's O(N^100). For example, good algorithms for comparing general binary trees are something like O(N^4)(log N)^2, which doesn't meet my definition of "efficient" in the real world.

      To quote Bernstein from the 1990 comp.lang.misc sort argument: "I thank God for not making me a computer scientist."

    22. Re:Is factoring hard by Fex303 · · Score: 1

      Well, if it's just a matter of using maths that's Hard we can use my tax return as the basis of a new method of cypto.

      Forget about all this nth degree polynomial stuff, the REALLY Hard maths is made up by the government!

    23. Re:Is factoring hard by SiMac · · Score: 1

      "RSA was announced in 1978 [RSA78]. The security of the RSA system is based upon the RSA Problem (RSAP). This problem is conjectured (but not proven) to be equivalent to the Integer Factorisation Problem (IFP) [MOV96], [Sti95], [Len96]."

      "Breaking RSA may not be equivalent to factoring" [BV98]
      Implications: Provides evidence that certain instances of RSA cannot be equivalent to the IFP. This is contrary to the belief by some that RSA and IFP are equivalent.

      Both from:
      http://www.scramdisk.clara.net/pgpfaq.html

      You're wrong on both counts.

  6. The /. story quotes the wrong part of the paper by mridley · · Score: 5, Interesting

    Well the /. story exerpt is kind of alarmist but I think the more relevant quote from the paper is "However, the theoretical analysis shows that the cost of the relation collection step cannot be significantly reduced, regardless of the cost of the matrix step. We thus conclude that the practical security of RSA for commonly used modulus sizes is not significantly affected..." (typos probably mine)

    1. Re:The /. story quotes the wrong part of the paper by Anonymous Coward · · Score: 2, Interesting

      funny, i think the /. excerpt should be a bit more alarmist, and the paper should be less conservative in its claims. why? because the relation collection step, while the most expensive in terms of cpu time, is also the easiest to parallelize and distribute. any moron in charge of network administration for a relatively large company can put sieving clients on all the desktops and get all the relations he needs in a few weeks without spending any money. the thing that kept this from being a threat was the inability of our hypothetical net amdin to perform the matrix step. if the method presented in this paper works for the matrix step, then i consider RSA 1024 to be broken.

    2. Re:The /. story quotes the wrong part of the paper by Sircus · · Score: 3, Insightful

      So now that the matrix step has been made a whole 1.17 times faster (or even 3.01 times faster, if you want to believe Bernstein's numbers), you suddenly believe that factoring is within the reach of the common sysadmin?

      The Slashdot quote also fails to mention that the device would cost $5000 only for "large quantities". The initial cost to get to the stage of being able to produce that circuit is over $1 million. Granted, they also say that the previous initial cost using off-the-shelf hardware was $62 million, but neither are exactly in your average sysadmin's price range. Bearing in mind that these prices *only* cover the matrix step, the authors are right to conclude that 1024-bit keys are just as safe as everyone thought they were.

      If your enemies have a sufficiently large budget to build this kind of thing, they'd almost certainly find it easier just to bribe someone with access to the information to reveal it, to physically attack some unencrypted version of the information, or to retrieve the keys (by, for example, bugging your keyboard).

      --
      PenguiNet: the (shareware) Windows SSH client
    3. Re:The /. story quotes the wrong part of the paper by oyenstikker · · Score: 2

      "If your enemies have a sufficiently large budget"

      They do.

      --
      The masses are the crack whores of religion.
  7. It's 1.17, not 3.01... your keys less compromised by russotto · · Score: 4, Interesting

    The most important part of the abstract is the finding that "for a given cost, the new method can factor integers that are 1.17 times larger (rather than 3.01)." This means that even if the new factoring method scales to "small" numbers of bits like 1024, a 1024 bit key is only reduced to the security of an 875 bit key, not a 342 bit key. This is a big difference! It goes from "uh oh, better revoke all my keys right now" to "Hmm, might want to think about increasing them in the future".

  8. uh oh by TweeKinDaBahx · · Score: 1

    it's guys like these that drive the security bigwigs at Los Alamos and Sandia crazy. I guess it's keeps them employed though, because once they break it, they'll have to build a stonger algorithm and try to break that one.

    Or they could just stop letting people work from home and stop letting their kids play MUDs on their secure terminal :P.

  9. Whee! Slashdot FUD by Jeremiah+Blatz · · Score: 2, Insightful
    Also from the abstract:
    In particular, we show that 1024-bit RSA keys are as secure as many belived them to be.
    And:
    However, the theoretical analysis shows that the cost of the relation collection step cannot be significantly reduced, regardless of the cost of the matrix step. We thi=us conclude that the practical security of RSA for commonly used modulus sizes is not significantly affected by [1].
    If i recall correctly, the original device was impractical, as the speed increases gained by the parallelism were negated by the cost of collection/sifting through the results. Apparently, this weakness still holds.
    1. Re:Whee! Slashdot FUD by Anonymous Coward · · Score: 0

      you recall incorrectly, and you obviously don't understand how the nfs works. please go read about it before posting on the topic again, ok?

  10. Mesh routing is really the way to go by Sheetrock · · Score: 2, Funny
    I don't know how many of you are cryptobuffs, but you might remember the craze surrounding elliptic curves as a efficient-yet-complex method of obfuscating plaintext. There was a bit of controversy as to whether or not it would lead to predictability because of its nature (ellipses are round, keep in mind, and therefore there was some concern that what goes around comes around and an attacker could just walk full circle to arrive at a key).

    Well, I believe that mesh routing might just give us all the pluses without most or all of the minuses. First of all, it involves routing, which if you've paid attention to the formation of the Internet you'll quickly realize is a design that will lead to redundancy and reliability. More importantly, it is a mesh, which means that one end of the key is not necessarily tied to the other end. This should cut off many of the attacks that would have a chance of success on elliptic curves by way of its nature. Meshing also implies redundancy... there may be some size and speed tradeoffs here, but you can be certain you'll get your data back out of the cryptopot.

    Bruce Schneier, a luminary in the field of cryptography and author of the book Applied Cryptography, has a web site here.

    --

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




    1. Re:Mesh routing is really the way to go by Anonymous Coward · · Score: 0

      Luckily, anyone with even a minimal understanding of elliptic curves knows that their connection with ellipses doesn't really go beyond the name and would have recognized by the second sentence that you were just making stuff up.

    2. Re:Mesh routing is really the way to go by Anonymous Coward · · Score: 0

      I'd like some cryptopot.

    3. Re:Mesh routing is really the way to go by Anonymous Coward · · Score: 1, Informative

      Here is a handy rule for moderators: never Never NEVER mod a post "Insightful" unless you personally understand exactly what it says. Similarly, never use "Informative" unless you can verify that the post is accurate.

      Trust me, I will be watching for you in metamod.

    4. Re:Mesh routing is really the way to go by Anonymous Coward · · Score: 0

      Here's another rule: use -1 Overrated instead of +1 Funny because while it's perfectly ok for you to metamod others you're a sour bitter person who doesn't want anyone else to laugh and never, ever wants to expose his own decisions to community judgement

    5. Re:Mesh routing is really the way to go by Anonymous Coward · · Score: 0

      I want some taquitopot.

  11. Result doesn't imply weak keys by Anonymous Coward · · Score: 2, Informative

    They clearly state in the paper that "1024-bit RSA keys are as secure as many believed them to be."

    As they clearly state in the paper, "the security of RSA relies exclusively on the hardness of the relation collection step of the number field sieve." - The speedup that Bernstein proposed just makes the stuff surrounding that step a bit more efficient.

  12. Cliff notes version by Ashurbanipal · · Score: 5, Interesting

    Basically, Dan Bernstein (who has written useable but controversial alternatives to BIND and SENDMAIL) figured out a new method for breaking RSA encryption based on custom hardware. The fellows mentioned in the headline, who are also legit crypto guys, have analysed Dr. Bernstein's work and make the following observations:

    1) it's not quite as fast as Bernstein estimated (about half as fast for cliff notes purposes)
    2) the hardware could be affordable (others have claimed costs that are only feasible for governments)
    3) you don't have to revoke all your RSA keys because there are steps that precede the application of the Berstein method that still take absurd amounts of time and horsepower.

    Oh, yeah, and it has nothing to do with Sun's NFS (Network File System, a lame and usually insecure way to share files).

    Bernstein will no doubt reply. He isn't a shy guy from my experience.

    1. Re:Cliff notes version by _jthm · · Score: 1

      this is a bit off-topic, but i'm genuinely curious -

      is qmail controversial ?

      perhaps i'm coming into the game a bit late and don't know the entire history. i've used qmail, and thought it was simple and cool. didn't know what the feelings of the community were.

    2. Re:Cliff notes version by MAXOMENOS · · Score: 5, Funny
      Bernstein will no doubt reply. He isn't a shy guy from my experience.

      This post should be modded +4 Understated.

    3. Re:Cliff notes version by swb · · Score: 2

      is qmail controversial ?

      Associatively. I think Dan Bernstein has a reputation for being outspoken about himself, his software and so on.

      Qmail just inherited it.

    4. Re:Cliff notes version by Quazion · · Score: 1, Offtopic

      Sun's NFS (Network File System, a lame and usually insecure way to share files).

      I never used Sun's NFS, but i was planning in the near future, so what way to share file's nice and secure in a unix network ? like if you want to mount homedirs and such.

      Quazion

    5. Re:Cliff notes version by btellier · · Score: 5, Insightful

      >is qmail controversial ?

      Well I can only speak from a security standpoint, not for functionality, though I've heard that it has nearly all the same features as sendmail and is faster. However, I did a free-time security audit of Qmail to get an idea of how secure DJB's work was. I can say that, bar none, this guy is the best secure coder I've seen to date. Probably the best way to see this is in the fact that he uses all of his own routines to do memory management. In these routines his bounds checking is complete and he is extremely careful about signed/unsigned conversion bugs. Quite impressive.

      Granted the guy is known for being a prick when people question his work (this is known as De Raadt Syndrome), such as this response to someone who supposedly found a hole in his mailing list software:

      ----
      Here we go again: This advisory is fraudulent. My ezmlm 0.53 package
      does not include anything called ezmlm-cgi.

      Perhaps someone else's ezmlm-cgi program has a problem. But ezmlm-cgi
      isn't part of ezmlm. I didn't write it. I haven't reviewed it. I don't
      distribute it. I don't use it. I am not responsible for its bugs.

      vort-fu was aware of these facts before he sent his advisory to bugtraq.
      Why did he continue? Can this be adequately explained by stupidity?
      ---

      The problem is that while he may be abrasive, he's always right. Bottom line: if you want secure software, stick with DJB.

    6. Re:Cliff notes version by Anonymous Coward · · Score: 0

      Samba

    7. Re:Cliff notes version by 0x0d0a · · Score: 2

      I haven't used qmail, but I have used postfix, which is supposed to be even simpler and more straightforward than qmail. I've been very happy with it.

    8. Re:Cliff notes version by Anonymous Coward · · Score: 0

      Way back in the dark ages, Dan Bernstein fought a flamewar on comp.lang.misc about whether sorting was O(n) in the real world. (see it here)

      What I find kind of funny about this article is that they basically said that Bernstein's sorting-based algorithm isn't as fast as he thinks it is. Sounds like the same argument in a new context...

    9. Re:Cliff notes version by V.+Mole · · Score: 2

      is qmail controversial?

      Qmail is probably secure. The controversial issues that I can think of are these:

      1. The license doesn't allow one to distribute binaries of modified source. This pretty much keeps it out of Linux distributions, because they need to modify the default layout, etc. There's other annoying bits about his licenses. See http://cr.yp.to/distributors.html for info.
      2. It has (or perhaps used to, maybe this has been fixed) some pretty abusive behaviors when delivering mail to lots of users on the same host.
    10. Re:Cliff notes version by Leor · · Score: 1

      The fellows mentioned in the headline, who are also legit crypto guys...

      Adi Shamir is the 'S' in RSA.

    11. Re:Cliff notes version by Anonymous Coward · · Score: 0
      I never used Sun's NFS, but i was planning in the near future, so what way to share file's nice and secure in a unix network ? like if you want to mount homedirs and such.

      Enable connection authentication and content encryption (two separate options) in whatever implementation of NFS you're using.

      Solaris supports Diffie-Hellman or Kerberos authentication and DES encryption.

    12. Re:Cliff notes version by Anonymous Coward · · Score: 0

      > Well I can only speak from a security standpoint, not for functionality, though I've heard that it
      > has nearly all the same features as sendmail and is faster.

      That certainly seems to be the qmail team cheer. I'm truly sorry I don't have the time to expand on the details of a proof right now, but you are now able to say with quite some assurance that you have now also heard that "sendmail has many valuable functions that qmail doesn't have, and sendmail 8.12 tests significantly faster than qmail for most types of email delivery."

      -twolf

    13. Re:Cliff notes version by Syberghost · · Score: 2

      If he'd have written a network file system, their analysis would read:

      "We have determined that it is incompatible with Sun's NFS, and that the license allows Bernstein to remove your ability to use the program merely by changing his web page."

    14. Re:Cliff notes version by D.+J.+Bernstein · · Score: 2, Informative
      You misunderstand what this paper is saying.

      Background. To review the undisputed facts:

      • Conventional NFS implementations (and TWINKLE), as described in (for example) Silverman's cost-analysis paper or the Lenstra-Shamir TWINKLE paper, take time L^(1.901...+o(1)) on a machine of size L^(0.950...+o(1)), exactly as stated in my paper.
      • One can, of course, trade time for hardware cost. For example, one can carry out the same computation in time L^(1.711..+o(1)) on a machine of size L^(1.140...+o(1)).
      • My NFS circuits take time L^(1.185...+o(1)) on a machine of size L^(0.790...+o(1)), exactly as stated in my paper.
      • The exponent ratio 1.443...+o(1) corresponds to multiplying the number of input digits by 3.009...+o(1).

      Carl Pomerance has pointed out that a slightly different conventional NFS implementation takes time L^(1.754...+o(1)) on a machine of size L^(1.006...+o(1)), or time L^(1.656...+o(1)) on a machine of size L^(1.104...+o(1)), but this is still vastly less cost-effective than a circuit for large numbers. The NFS cost ratio between conventional computers and circuits grows as a quite noticeable power of the cost itself.

      There are two basic reasons for this improvement. First, for large numbers, using conventional computers (or TWINKLE) for NFS sieving is a bad idea, because the low-memory smoothness-testing circuits described in my paper are much more cost-effective. Second, for large numbers, using conventional computers for NFS linear algebra is a bad idea, because the linear-algebra circuits described in my paper are much more cost-effective.

      3 versus 1.17: why there is a dispute. This Lenstra-Shamir-Tomlinson-Tromer paper observes, correctly, that reasonably fast low-memory smoothness-testing techniques have been known for decades. (Of course, my paper says the same thing.)

      The Lenstra-Shamir-Tomlinson-Tromer paper then leaps to the incorrect conclusion that the cost-effectiveness of those techniques for large numbers was widely known before my paper.

      If this fact was known before, why didn't it appear in the aforementioned Silverman and Lenstra-Shamir papers two years ago? Both of those papers were discussing the cost of state-of-the-art integer factorization.

      As for the Coppersmith paper cited by Lenstra et al.: As mentioned in my paper, Coppersmith suggested ECM in a context where RAM sieving would have meant looking at many more numbers. He didn't observe that ECM was better than RAM sieving in other contexts. In fact, for the first step of his algorithm, he specifically suggested RAM sieving!

      The simple fact is that papers before mine optimized their machines purely for operation count. The resulting machines are far less cost-effective than the circuits described in my paper.

      The Lenstra-Shamir-Tomlinson-Tromer paper does not claim that circuits are less cost-effective (slower or larger) than stated in my paper. It also does not claim that conventional implementations are competitive. It does not claim that circuits are actually not so scary. What it claims is that we already had fairly scary circuits. This is revisionist history, not a technical dispute.

      Simple versus optimized. My paper is a grant proposal. It explains a very simple circuit, enough to prove the L^(1.185...+o(1)),L^(0.790...+o(1)) result. It then briefly points out several ways that the circuit can be changed and improved. The objective of the grant is to find the most cost-effective circuit. The simplest circuit is certainly not the best one; finding the best one is a huge project.

      Treating the simplest algorithm as if it were my final result, with every trivial improvement worth pointing out, is a serious misrepresentation of my work.

      In particular, the use of mesh routing in this context is one of many obvious possibilities, and is already mentioned in my paper as an alternative to mesh sorting. Lenstra et al. claim that this is an ``improvement'' over my paper; that claim is false.

      I described a counterclockwise mesh routing algorithm in an email message to one of those authors in mid-April, as part of explaining why conventional implementations aren't cost-effective. (On a 20x20 mesh: ``Take a batch of, say, 1000 hits generated by each processor; route the hits 19 steps down, then 19 steps right, then 19 steps up, then 19 steps left, to reach the proper memory locations. ... The point is that the time ratio grows linearly with the 20, while the cost ratio is simply 1 plus overhead. The overhead can be dramatically reduced with special-purpose circuitry, allowing the 20 to be raised by half as many orders of magnitude.'')

      I am astonished that anyone would publish this obvious use of mesh routing as if it were an interesting new result.

      The balance between sieving and linear algebra. There are many parameters in NFS: dials that can be adjusted to affect the speed of the algorithm in complicated ways. The most important parameter is the ``prime bound,'' usually called y.

      As y increases from ``tiny'' to ``standard,'' the cost of sieving drops down to a smallest possible value, while the cost of linear algebra rises. As y increases past standard, the cost of sieving starts rising again, and keeps rising, while the cost of linear algebra also rises.

      In the context of TWINKLE, Lenstra and Shamir claimed that sieving speedups had limited value, because linear algebra by itself was a bottleneck. That claim is obviously false: one can always decrease y to reduce the cost of linear algebra until sieving and linear algebra are in balance.

      The Lenstra-Shamir-Tomlinson-Tromer paper now makes the opposite claim, that linear-algebra speedups have limited value, because sieving by itself is a bottleneck. That claim is also false, at least for large numbers: the optimal value of y is substantially smaller than standard, as stated in my paper, so one can increase y to reduce the cost of sieving until sieving and linear algebra are in balance.

      Perhaps someday we'll discover better linear-algebra methods. Perhaps the cost of linear algebra will become unnoticeable for standard values of y; then sieving by itself will be a bottleneck. However, as stated in my paper, the current situation for large numbers is that linear algebra is relatively difficult; as a consequence, when parameters are chosen properly, sieving and linear algebra are in balance.

      Large numbers versus small numbers, and the cost of sieving. Figuring out that one NFS approach is much better than another for large numbers is much easier than figuring out the situation for small numbers, such as 1024 bits or 1536 bits.

      Analogy: It's easy to prove that merge sorting is much faster than insertion sorting for large arrays. You don't have to worry about all the different variations of the sorting algorithms; these changes can make big differences in speed, but those differences are unnoticeable next to the gigantic speed gap between merge sorting and insertion sorting for large arrays. It's much more difficult to figure out the fastest method for small arrays, such as arrays of size 16.

      The Lenstra-Shamir-Tomlinson-Tromer paper has one paragraph (Section 5.2) on the cost of sieving for a specific input size, namely 1024 bits. That paragraph estimates that RAM sieving would take about a year on 30 million large-memory PCs. It implicitly assumes that conventional RAM sieving is the most cost-effective approach to sieving for 1024-bit numbers. In particular, it implicitly assumes that circuits (mesh sorting, mesh routing, early-abort Pollard+ECM, etc.; see my paper) wouldn't be much less expensive. It concludes that sieving by itself is a bottleneck for 1024-bit numbers.

      There is no justification for these assumptions and conclusions. The authors claim to understand, and to have understood for a decade, that conventional RAM sieving is much less cost-effective than circuits for large numbers; however, when faced with 1024-bit numbers, they don't even consider the possibility of 1024 being large and of conventional RAM sieving being the wrong approach. This is a gaping hole in the Lenstra-Shamir-Tomlinson-Tromer analysis.

      Maybe special-purpose circuits will have a dramatic impact on the difficulty of 1024-bit and 1536-bit and 2048-bit factorizations. Maybe they'll have no impact at all. I don't know yet. I do know that ignoring the question doesn't help us find the answer.

    15. Re:Cliff notes version by Ashurbanipal · · Score: 1

      Thanks for your correction to my post, Dr. B.

      I suspect most readers of this forum are primarily concerned with appropriate key lengths for use with their SSH and PGP software. Some people think your sieve makes their 768 and 1024-bit keys obsolete.

      I certainly hope some circuits based on your ideas get physically built, rather than merely modeled mathematically, so we can get some empirical data. Best of luck with the grant!

  13. Holy Cult of Mathematics? by Anonymous Coward · · Score: 0

    So you only want to educate the people that are already educated?

    Even if I had been aware of a Number Field Seive, I probably still would wonder, at first, about the file system.

    Not to mention that there are obviously a lot of young, impressionable, children on this site that might like to learn something new, and skip right over an article about a stupid old file system.

    No, you are the unreasonable one. The parent makes a good point.

  14. Yes it does! by John+Harrison · · Score: 3, Insightful
    The first link doesn't even give you that information.

    From the pdf:

    Introduction

    In [1], a new circuit-based approach is proposed for one of the steps of the number field sieve (NFS) integer factorization method, namely finding a linear relation in a large but sparse matrix.

    This is on the first page of the linked pdf.

    However, I agreed that it should have been spelled out in the post.

  15. I was worried that DJB was one step closer... by Anonymous Coward · · Score: 0

    to total internet domination.

  16. Re:It's 1.17, not 3.01... your keys less compromis by Phs2501 · · Score: 2, Informative

    Umm, no. We're talking powers of two here. 1024 bits is a number 2 times bigger than 1023 bits. Not 512 bits.

    Even if it is 3.01 times larger, that's still an effective strength of at least 1022 bits.

    (For what it's worth, I've only read the abstract.)

  17. Excellent troll by Shimmer · · Score: 1

    Who the heck modded this up? "One end of the key is not necessarily tied to the other end?" Hilarious.

    -- Brian

    --
    The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
  18. Re:I respect your work by Anonymous Coward · · Score: 0

    PLUS ONE FUNNY!

  19. Dot and a Database by The+Infamous+TommyD · · Score: 1, Funny

    Wow, what karma whore. You're making more shit up than a battalion of marines with dysentary.

    1. Re:Dot and a Database by Anonymous Coward · · Score: 0

      .....eww...jeeze.

  20. +1 Hilarious by Anonymous Coward · · Score: 0

    You've obviously cracked the cover of Applied Cryptography, but did you get past the first chapter? :)

  21. that was funny by Anonymous Coward · · Score: 0

    ROFL

  22. NFS!!!!! by Anonymous Coward · · Score: 0


    Need For Speed !!

  23. Off the shelf hardware?? by TJ6581 · · Score: 1, Interesting
    At the very end when they are doing their calculations they use DRAM and a FPGA components. They then go on to state:


    The bandwidth of the fastest PC memory is 3.2GB/sec


    The GX specs specifically state that they support 4.2 GB per second. They also state that memory latency is about 40ns. I checked pricewatch and found at least 6ns for pretty cheap. There are to many areas where it says "at least", "probably" or "about" for calculations regarding how much time it takes. They might be right but their "proof" consists of restating mathmatics rules and estimations. They probably should have spent more time on actual calculations and proofs

    --
    "Freedom of speech has always been the abstract red-headed stepchild of the Constitution"
    -Suck
    1. Re:Off the shelf hardware?? by cyr · · Score: 1

      Well, 6ns is the cycle time (1/clock frequency) not the latency (which I assume means the time it takes to get any random bit of data from the memory).

      Modern DRAM isn't exactly Random Access at all, you can get data out much faster if you read it sequentially than if you read it in random order.

    2. Re:Off the shelf hardware?? by Eran+Tromer · · Score: 4, Interesting
      I am a coauthor of the paper. Indeed, there are many rough estimates in the paper: the theoretical analysis (and indeed, the NFS method itself) relies on some unproven conjectures and asymptotical analysis. Also, the practical cost estimates rely on technological and ecnomical considerations which are rapidly changing. None the less, we believe the assumptions and their conclusions are quite sound when used as order-of-magnitude estimates.

      As for the two technical points you mentioned:

      > > The bandwidth of the fastest PC memory is 3.2GB/sec
      > The GX specs specifically state that they support 4.2 GB per second.


      Indeed, but both PC3200 (DDR400) and dual PC800 (RDRAM) have a bandwidth of 3.2GB/sec.

      > I checked pricewatch and found at least 6ns for pretty cheap

      These "6ns" parts do not have a 6ns random-access latency. For instance, check these figures.

    3. Re:Off the shelf hardware?? by 0x0d0a · · Score: 3

      Oh, come on. This is crypto work. No one is going to care about being off by a factor of .3 when they're talking about factoring time. A factor of 10 probably wouldn't bother them that much.

  24. Re:It's 1.17, not 3.01... your keys less compromis by russotto · · Score: 1

    Already taken into account -- it's 1.17 times (or 3.01 times) the LENGTH of the integer, not its value. If it had been 3.01, it would have been a big deal.

  25. aargh. by Anonymous Coward · · Score: 0

    you know that is a typical reply to anyone accidentally mentioning "factoring primes" but seems now even that isn't required.

    ie. more like +1 Limbo.

  26. Huh? by Grip3n · · Score: 2, Funny

    "...under an optimistic assumption about the matrix size, be completed within a day by a device that costs a few thousand dollars."

    Wow, we can make The Matrix in under a day for a couple grand? Better start looking in the paper for real estate in Zion...

    --
    To make a pun demonstrates the highest understanding of a language
    1. Re:Huh? by Anonymous Coward · · Score: 0

      yes but they never said zion was good or bad. its just where the party will be :)

  27. +3, Hilarious by Anonymous Coward · · Score: 0

    HA hah ahah hahaa

    aaaaaaaaaa aaaaaaaaaaaaaaaab bo bo bo!

  28. Re:It's 1.17, not 3.01... your keys less compromis by Permission+Denied · · Score: 2
    When these crypto freaks talk about size, they mean the number of bits. It's when they use the word value that they mean the actual value of the number. Same thing when they talk about the running time of an algorithm: for them, it's measured relative to the number of bits in the input, not the value of the input.

    So, while for us an algorithm which takes 1024 steps when fed with the number 1024 and 4096 steps when fed with the number 4096 would probably be considered O(n), they would consider that algorithm O(2^n) because it takes 1024 steps when run with an input of bit-length 10 and 4096 steps when run on input of bit-length 12.

    You can usually tell from context which definition of time and space someone is using, but sometimes it gets confusing.

  29. Re:It's 1.17, not 3.01... your keys less compromis by Phs2501 · · Score: 1

    Good to know - thanks...

    Though the statement, "You can usually tell from context which definition of time and space someone is using" just has to make me chuckle. :)

  30. Re:yeah... by Eran+Tromer · · Score: 2, Informative

    > but does it look pretty?
    I'd say it does:
    a color-coded simulation of the mesh routing algorithm (16MB)

  31. More Karma by Ted+V · · Score: 2

    And you're getting Karma for your one-line post being labelled +1 Funny. Who's the Karma Whore now, huh? :)

  32. Hackers? Ummm. by DarkHelmet · · Score: 2
    You mean Independence Day, where they use an Apple laptop in order to insert a macro virus into Alien hardware and makes everything go boom?

    No... wait... That's Steve Jobs' favorite hacking movie... my bad.

    --
    /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
  33. And who has a sufficiently large budget? by DarkHelmet · · Score: 2
    If your enemies have a sufficiently large budget to build this kind of thing, they'd almost certainly find it easier just to bribe someone with access to the information to reveal it, to physically attack some unencrypted version of the information, or to retrieve the keys (by, for example, bugging your keyboard).

    Hi, I'm Uncle Sam. Won't you be my neighbor?

    --
    /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
  34. Somewhat On-topic: 1024+ bit C math library,where? by Rares+Marian · · Score: 2

    I haven't been able to find anything anywhere.
    I have some factorization ideas I'd like to test without reinventing the wheel.

    --
    The message on the other side of this sig is false.
  35. AFS is quite nice (was: Re:errrrr NFS?) by fsmunoz · · Score: 2

    Given that DJB already has implementations of DNS and SMTP around that are heavily focused on security, it wouldn't suprise me if he went into looking at securing NFS (the file system)

    Not specifically about DJB, but since you refer NFS and security... I had to responsability in desigining a (small) Unix network, including authentification and shared filesystems. NFS main strenght is that it's bloody simple to use (in Solaris the 'share' command is all that it takes, and the other Unices have more or less similar mechanisms), but security-wise it's a no-no.

    I then discovered AFS; it was exactly what I needed. Kerberos authentication builtin, support for every OS, very solid and comes with several interesting concepts of it's own. All in all AFS has proven to be a secure alternative to NFS (AFS can also scale incredibly well).

    Just my 2 euro cents,

    fsmunoz

  36. P != easy by Anonymous Coward · · Score: 0

    Someone may prove the NP-complete problems are O(n^100), making them P, but not very easy.

  37. Still distant vaporware by billstewart · · Score: 4, Insightful
    Quantum computers aren't deterministic - the techniques that have been discussed have non-trivial chances of getting incorrect answers. With problems like factorization, it's fast and trivial to determine whether an answer was correct or incorrect, but not obvious what to do about an incorrect one. There may be deterministic algorithms a bit faster than NFS (it's got lots of relatives), but they're mostly in the same general range.


    The interesting thing about quantum computing is that it's the one technology that, if it's actually possible to develop usable machines with it, might offer the possibility of getting beyond the exponential-difficulty traps in factoring and other current techniques of public-key math. It's not clear that it will work, but it's the only thing so far that doesn't hit the "well, if you build a keycracking computer the size of the planet and run it for the remaining age of the solar system, I can add three more key bits and make you take over some more planets" wall.

    They're not off the shelf, and won't be any time soon. The biggest quantum computer made so far was able to factor 15 into 5 x 3. The number of bits of answer you can get out of a quantum computer depends on the precision to which you can measure its output - does this hit Heisenberg limits? 10**47 is only ~140 bits. Or do you hit practical limits first? Or are there ways to break up the answer into many parts each of which gets you a few bits of precision? (The latter case is the only way to get it to work...)

    What if quantum crypto does work? Maybe it'll crack conventional RSA and Diffie-Hellman, but that doesn't mean it transfers to Elliptic-Curve cracking, so we may luck out. Alternatively, it's back to conventional techniques like Kerberos and other symmetric-based Key Distribution Center systems.


    But basically, you're trolling :-)

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  38. And remember ... by bruthasj · · Score: 1

    the NSA is usually 5 ~ 8 years ahead in technology with regards to this stuff. Hmm...

  39. Strong Family by Anonymous Coward · · Score: 0
    The Lenstras come in pairs. See e.g. Scientific American:
    A newer strategy, the Number Field Sieve (NFS), toppled a 155-digit number, the ninth Fermat number, F/9 (Named for the great French theorist Pierre de Fermat, the nth Fermat number is F/n = 2^(2^n) + 1.) In 1990 F/9 fell to Arjen Lenstra, Hendrik W. Lenstra, Jr., of the University of California at Berkeley, Mark Manasse of Digital Equipment Corporation and British mathematician John Pollard, again aided by a substantial machine network. This spectacular factorization depended on F/9's special form. But Joseph Buhler of Reed College, Hendrik Lenstra and Pomerance have since developed a variation of the NFS for factoring arbitrary numbers. This general NFS can, today, comfortably factor numbers of 130 digits. In retrospect, RSA-129 could have been factored in less time this way.
  40. GNU MP, BigInteger.isProbablePrime(int) bug by karlm · · Score: 2
    Somewhat On-topic: 1024+ bit C math library,where?

    Gnu MP for mult-precission numbers. They use the fastest known algorithms and hand-optimized asm on most platforms. I prefer to do crypto in Java and use the BigInteger class 'cause I'm lazy.

    FYI, Sun's BigInteger.isProbablePrime(int) function is broken... don't use it. I was rather embarassed when a collegue and I emailed some people about a possible bug in the Secure Remote Password protocol, only to discover the problem was a known bug in the JVM... which Sun refuses to fix. I don't know why they won't fix it. My personal implementation of the Miller-Rabin primality test runs faster and correctly identifies the SRP modulus as probably prime. (Look in Applied Cryptography by Schneier for how to code it up.)

    --
    Copyright Violation:"theft, piracy"::Anti-Trust Violation:"thermonuclear price terrorism"<-Overly dramatic language.
  41. GNU MP is good by Goonie · · Score: 2
    I used it in my final year project. The only problem I had with it at the time was a documentation issue - they don't actually specify the runtimes of their algorithms.

    However, it was certainly pretty damn fast, and I didn't come across any bugs.

    --

    Any sufficiently advanced technology is indistinguishable from a rigged demo
    --Andy Finkel (J. Klass?)
  42. Expense of attack by Anonymous Coward · · Score: 0

    Based on this, if I need 20 SSL certificates, would it be cheaper for me to register each of them with VeriSign for a year or to build a device to factor the VeriSign public key and sign them myself?

  43. Re:Hackers? Ummm. by Anonymous Coward · · Score: 0

    Hum.. isn't an Apple itself alien hardware ?

  44. NFS file sharing (and alternatives) by Ashurbanipal · · Score: 2
    I never used Sun's NFS, but i was planning in the near future, so what way to share file's nice and secure in a unix network ? like if you want to mount homedirs and such.
    Unfortunately, I do not think (Warning! Controversial Opinion!) there is a "nice and secure" way to share files in a heterogenous *nix network. You can have one or the other, basically. Granted, if you have a monoculture of Sun systems with up-to-date security patches, you can probably do it, but I don't know anybody running a network like that.

    Another post replying to yours said "samba". I'm sure Tridge will forgive me for pointing out that Samba mimics Microsoft's unbelievably kludgy implementation of IBM's NetBIOS protocol - the kludges being there to compensate for the fact that IBM designed NetBIOS for networks of 25 machines or less. Samba is a wonderful way to interconnect VMS and *nix machines with Microsoft clients, but other than that it's an abortion. Do not use it if you don't have to!

    Another poster pointed out the reason for the "Usually" in my description of "usually insecure". If all your *nix boxes run the same version of the same vendor's latest implementation of NFS, it can be secured. In a true heterogenous environment, though, I have never seen anything but pain and suffering result from trying to implement secure NFS. And incidentally, NFS is inherently subject to denial of service attacks (so is NIS/YP) so you certainly can't depend on it if there are any unsecured hosts elsewhere on the network.

    Once you decide to sacrifice "nice" and go for "secure", or vice-versa, your options get broader. Look into Coda, Andrew, u9fs, or Styx, for example.