From perry at piermont.com Fri Mar 12 19:36:00 2010 From: perry at piermont.com (Perry E. Metzger) Date: Fri, 12 Mar 2010 19:36:00 -0500 Subject: [ADMIN] No, I'm not dead. Message-ID: <87vdd1ys5r.fsf@snark.cb.piermont.com> I should have the list back to normal again within a few days. Following that, I will be converting the list over to Mailman and selecting a couple of co-moderators to handle things when I'm too busy to handle moderation duties. Perry -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From eugen at leitl.org Fri Mar 5 07:55:11 2010 From: eugen at leitl.org (Eugen Leitl) Date: Fri, 5 Mar 2010 13:55:11 +0100 Subject: Fault-Based Attack of RSA Authentication Message-ID: <20100305125511.GT17686@leitl.org> From: basile Date: Thu, 04 Mar 2010 19:20:36 -0500 To: or-talk at freehaven.net Subject: Fault-Based Attack of RSA Authentication User-Agent: Thunderbird 2.0.0.23 (X11/20090817) Reply-To: or-talk at freehaven.net Hi everyone, I thought this might be of interest to the list. Pellegrini, Bertacco and Austin at U of Michigan have found an interesting way to deduce the secret key by fluctuating a device's power supply. Its a minimal threat against servers, but against hand held devices its more practical. The openssl people say there's an easy fix by salting. Here's some referneces: http://www.theregister.co.uk/2010/03/04/severe_openssl_vulnerability/ http://www.eecs.umich.edu/~valeria/research/publications/DATE10RSA.pdf -- Anthony G. Basile, Ph.D. Chair of Information Technology D'Youville College Buffalo, NY 14201 USA (716) 829-8197 ---------- -- Eugen* Leitl leitl http://leitl.org ______________________________________________________________ ICBM: 48.07100, 11.36820 http://www.ativel.com http://postbiota.org 8B29F6BE: 099D 78BA 2FD3 B014 B08A 7779 75B0 2443 8B29 F6BE --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From rah at shipwright.com Sat Mar 6 18:42:37 2010 From: rah at shipwright.com (R.A. Hettinga) Date: Sat, 6 Mar 2010 19:42:37 -0400 Subject: PayPal freezes Cryptome account Message-ID: <2A530632-1E87-4610-BACA-A5F4F8B3CA49@shipwright.com> Cheers, RAH --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From rah at shipwright.com Tue Mar 9 17:29:33 2010 From: rah at shipwright.com (R.A. Hettinga) Date: Tue, 9 Mar 2010 18:29:33 -0400 Subject: Fwd: Workshop on Elliptic Curves References: <20100309215446.7787.qmail@hyperelliptic.org> Message-ID: <291A5613-BE21-4B85-A749-89F98AA6A8E7@shipwright.com> Begin forwarded message: From: Tanja Lange Date: March 9, 2010 5:54:46 PM AST To: Tanja Lange Subject: Workshop on Elliptic Curves The study of Elliptic Curves has been closely connected with Machine computation almost since the invention of computers -- in 1952 Emil Artin had John von Neumann perform an extensive calculation relating to elliptic curves on the IAS MANIAC computer. The fundamental papers of Birch and Swinnerton-Dyer in 1965, which gave rise to the Birch-Swinnerton-Dyer conjecture were buttressed with extensive machine computation. There has been extensive interplay between theory and computation relating to ranks of elliptic curves, Heegner points, Galois representations, Sato-Tate distributions, and many other areas. The year 2010 marks the beginning of a 25 year period in which a number of influential papers initiated a fundamental connection between elliptic curves, cryptology and the theory of computation. . Rene Schoof about fast algorithms for counting points on elliptic curves over finite fields . Hendrik Lenstra about integer factorization using elliptic curves . Victor Miller and Neal Koblitz about the security of using elliptic Curves over finite fields in a Diffie-Hellman key exchange. . Shafi Goldwasser and Joe Kilian about primality proving using elliptic curves . Len Adleman and Ming-Deh Huang about primality proving using abelian varieties . Oliver Atkin and Francois Morain about primality proving using elliptic curves. Since 1997 there has been an annual workshop on Elliptic Curve Cryptography. To celebrate the 25th anniversary of the above papers we will hold a full week meeting intermixing talks which are concerned with the applications of elliptic curves in cryptography and other fundamental results concerning elliptic curves and computation. The meeting will be held from Oct 18-22, 2010 at Microsoft Research in Redmond, Washington, USA. The organizers are Victor Miller (Center for Communications Research), William Stein and Neal Koblitz (University of Washington), and Kristin Lauter (Microsoft Research) --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From udhay at pobox.com Wed Mar 10 10:57:06 2010 From: udhay at pobox.com (Udhay Shankar N) Date: Wed, 10 Mar 2010 21:27:06 +0530 Subject: 1024 bit RSA cracked? Message-ID: <4B97C152.2050705@pobox.com> Anyone know more? http://news.techworld.com/security/3214360/rsa-1024-bit-private-key-encryption-cracked/ RSA 1024-bit private key encryption cracked Researchers find weakness in security system By Network World Staff | Network World US Published: 13:26 GMT, 05 March 10 Three University of Michigan computer scientists say they have found a way to exploit a weakness in RSA security technology used to protect everything from media players to smartphones and ecommerce servers. RSA authentication is susceptible, they say, to changes in the voltage supply to a private key holder. The researchers ? Andrea Pellegrini, Valeria Bertacco and Todd Austin - outline their findings in a paper titled ?Fault-based attack of RSA authentication? to be presented 10 March at the Design, Automation and Test in Europe conference. "The RSA algorithm gives security under the assumption that as long as the private key is private, you can't break in unless you guess it. We've shown that that's not true," said Valeria Bertacco, an associate professor in the Department of Electrical Engineering and Computer Science, in a statement. The RSA algorithm was introduced in a 1978 paper outlining the public-key cryptosystem. The annual RSA security conference is being held this week in San Francisco. While guessing the 1,000-plus digits of binary code in a private key would take unfathomable hours, the researchers say that by varying electric current to a secured computer using an inexpensive purpose-built device they were able to stress out the computer and figure out the 1,024-bit private key in about 100 hours ? all without leaving a trace. The researchers in their paper outline how they made the attack on a SPARC system running Linux. They also say they have come up with a solution, which involves a cryptographic technique called salting that involves randomly juggling a private key's digits. The research is funded by the National Science Foundation and the Gigascale Systems Research Center. -- ((Udhay Shankar N)) ((udhay @ pobox.com)) ((www.digeratus.com)) --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at sun.com Tue Mar 16 12:45:08 2010 From: Nicolas.Williams at sun.com (Nicolas Williams) Date: Tue, 16 Mar 2010 11:45:08 -0500 Subject: 1024 bit RSA cracked? In-Reply-To: <4B97C152.2050705@pobox.com> References: <4B97C152.2050705@pobox.com> Message-ID: <20100316164508.GL14993@Sun.COM> On Wed, Mar 10, 2010 at 09:27:06PM +0530, Udhay Shankar N wrote: > Anyone know more? > > http://news.techworld.com/security/3214360/rsa-1024-bit-private-key-encryption-cracked/ My initial reaction from reading only the abstract and parts of the introduction is that the authors are talking about attacking hardware that implements RSA (say, a cell phone) by injecting faults into the system via the power supply of the device. This isn't really applicable to server hardware in a data center (where the power, presumably, will be conditioned and physical security will be provided, also presumably) but this attack is definitely applicable to portable devices -- laptops, mobiles, smartcards. > "The RSA algorithm gives security under the assumption that as long as > the private key is private, you can't break in unless you guess it. > We've shown that that's not true," said Valeria Bertacco, an associate > professor in the Department of Electrical Engineering and Computer > Science, in a statement. They're not the first ones to show that! Side-channel attacks have been around for a while now. It's not just the algorithms, but the machine executing them and its physical characteristics that matter. Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From lynn at garlic.com Tue Mar 16 17:42:53 2010 From: lynn at garlic.com (Anne & Lynn Wheeler) Date: Tue, 16 Mar 2010 17:42:53 -0400 Subject: GOST RFCs 5830, 5831, 5832 In-Reply-To: <20100316164508.GL14993@Sun.COM> References: <4B97C152.2050705@pobox.com> <20100316164508.GL14993@Sun.COM> Message-ID: <4B9FFB5D.5060601@garlic.com> welcome back announcement of RFC 5830, 5831, & 5832 in today's RFC distribution abstract for 5830: This document is intended to be a source of information about the Russian Federal standard for electronic encryption, decryption, and message authentication algorithms (GOST 28147-89), which is one of the Russian cryptographic standard algorithms called GOST algorithms). Recently, Russian cryptography is being used in Internet applications, and this document has been created as information for developers and users of GOST 28147-89 for encryption, decryption, and message authentication. This document is not an Internet Standards Track specification; it is published for informational purposes. -- 42yrs virtualization experience (since Jan68), online at home since Mar1970 --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From muir.james.a at gmail.com Wed Mar 17 01:03:22 2010 From: muir.james.a at gmail.com (James Muir) Date: Wed, 17 Mar 2010 01:03:22 -0400 Subject: 1024 bit RSA cracked? In-Reply-To: <20100316164508.GL14993@Sun.COM> References: <4B97C152.2050705@pobox.com> <20100316164508.GL14993@Sun.COM> Message-ID: <4BA0629A.5070401@gmail.com> >> "The RSA algorithm gives security under the assumption that as long as >> the private key is private, you can't break in unless you guess it. >> We've shown that that's not true," said Valeria Bertacco, an associate >> professor in the Department of Electrical Engineering and Computer >> Science, in a statement. > > They're not the first ones to show that! Side-channel attacks have been > around for a while now. It's not just the algorithms, but the machine > executing them and its physical characteristics that matter. I agree. I think the paper overstates its novelty and implications. It seems to be an experimental implementation of a fault attack presented by Boneh, DeMillo and Lipton (i.e. where it is assumed that single bit errors affect the private exponent). They target _some_ crypto application** that uses the openssl library running on an fpga board. Getting the attack to work in real life is no small feat, so they deserve props for that, but they make a few questionable claims -- e.g. they seem to state that the left-to-right fixed-window exponentiation algorithm was thought to be immune to fault attacks. In fact, adapting the BDL attack, which was presented against a right-to-left algorithm, to work against a left-to-right algorithm is straightforward, and so the susceptibility of the left-to-right FWE algorithm has been known for some time. What I find much more strange about the paper is that the authors make no mention of message blinding. I could be wrong, but message blinding would defeat their attack. By default, an openssl server utilizes message blinding in its private key operations, so there attack wouldn't apply... ** I just had the following realization: I had assumed that the authors were attacking an openssl *server* running on the fpga board, but perhaps that is not so. They don't seem to make that specific claim. They claim only to be attacking an "unmodi?ed version of the OpenSSL library". It is possible that they only created a toy RSA application that generates signatures using the openssl library (i.e. by making calls to specific openssl functions). This would explain why they don't discuss message blinding -- because they didn't enable it in their toy application! I suspect that's what they did. In that case, their experimental results say very little about the susceptibility of an openssl server to fault attacks. Wow... if I'm correct, then the authors really need to be more clear about exactly what they did. -James -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From netsecurity at sound-by-design.com Wed Mar 17 01:07:54 2010 From: netsecurity at sound-by-design.com (netsecurity at sound-by-design.com) Date: Tue, 16 Mar 2010 22:07:54 -0700 Subject: 1024 bit RSA =?UTF-8?Q?cracked=3F?= In-Reply-To: <4B97C152.2050705@pobox.com> References: <4B97C152.2050705@pobox.com> Message-ID: On Wed, 10 Mar 2010 21:27:06 +0530, Udhay Shankar N wrote: > Anyone know more? > > http://news.techworld.com/security/3214360/rsa-1024-bit-private-key-encryption-cracked/ > > RSA 1024-bit private key encryption cracked > Researchers find weakness in security system > > By Network World Staff | Network World US > Published: 13:26 GMT, 05 March 10 > > Three University of Michigan computer scientists say they have found a > way to exploit a weakness in RSA security technology used to protect > everything from media players to smartphones and ecommerce servers. > > RSA authentication is susceptible, they say, to changes in the voltage > supply to a private key holder. The researchers Andrea Pellegrini, > Valeria Bertacco and Todd Austin - outline their findings in a paper > titled Fault-based attack of RSA authentication to be presented 10 > March at the Design, Automation and Test in Europe conference. > > "The RSA algorithm gives security under the assumption that as long as > the private key is private, you can't break in unless you guess it. > We've shown that that's not true," said Valeria Bertacco, an associate > professor in the Department of Electrical Engineering and Computer > Science, in a statement. > > The RSA algorithm was introduced in a 1978 paper outlining the > public-key cryptosystem. The annual RSA security conference is being > held this week in San Francisco. > > While guessing the 1,000-plus digits of binary code in a private key > would take unfathomable hours, the researchers say that by varying > electric current to a secured computer using an inexpensive > purpose-built device they were able to stress out the computer and > figure out the 1,024-bit private key in about 100 hours all without > leaving a trace. > > The researchers in their paper outline how they made the attack on a > SPARC system running Linux. They also say they have come up with a > solution, which involves a cryptographic technique called salting that > involves randomly juggling a private key's digits. > > The research is funded by the National Science Foundation and the > Gigascale Systems Research Center. Interesting, especially since I recently did a security assessment at a power company. From what I saw I suspect that one might be able to get to some of their servers in outlying areas that handle smart meters and apply techniques like this. Given that they were able to do 1024 in 100 hours, what might it take them to crack 2048 or 4096? Regards, Allen --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From csgjwang at gmail.com Fri Mar 19 00:01:39 2010 From: csgjwang at gmail.com (Guojun Wang) Date: Fri, 19 Mar 2010 12:01:39 +0800 Subject: CFP --- The 2nd IEEE International Workshop on Security in e-Science and e-Research (ISSR 2010) --- Taipei, Taiwan, September 6-9, 2010 In-Reply-To: <849148471003182101j4de91149h42f82fcc56a86eea@mail.gmail.com> References: <849148471003182046u7cec1f64g3bcdab614e4cbd97@mail.gmail.com> <849148471003182054l34abedadt42cdd9a59d48c528@mail.gmail.com> <849148471003182054r4f625c28o89443c656d132590@mail.gmail.com> <849148471003182055r653a72c5x55135485725b66ae@mail.gmail.com> <849148471003182055w24683f11maa0ad628e7cc772b@mail.gmail.com> <849148471003182058y15479af0m3829cf309a40619@mail.gmail.com> <849148471003182058y27a2bd53t8039faa5430c0e11@mail.gmail.com> <849148471003182059v4783aa57v82816620b277f46d@mail.gmail.com> <849148471003182100u31e08ea1p5673f21969631465@mail.gmail.com> <849148471003182101j4de91149h42f82fcc56a86eea@mail.gmail.com> Message-ID: <849148471003182101y3c27d2e8k436f82a195ee8427@mail.gmail.com> CFP --- The 2nd IEEE International Workshop on Security in e-Science and e-Research (ISSR 2010) Taipei, Taiwan, September 6-9, 2010 Website: http://jiewei.web.officelive.com/ISSR2010.aspx To be held in conjunction with the 2010 IEEE International Symposium on Parallel and Distributed Processing with Applications (IEEE ISPA-10 ) Introduction E-Science and e-Research can, through development of e-Infrastructures such as Grids, be used to support a wide range of research disciplines and inter-disciplinary research. In recent years, the influence of e-Science and e-Research has grown considerably, and their scope of application now covers many research domains, from science and engineering disciplines such as physical, biological, and clinical sciences, to the arts and humanities and social sciences. Supporting e-Science and e-Research often places numerous demands on capabilities associated with e-Infrastructures. One key challenge is with regard to security. Security technologies must support a variety of user and provider requirements such as authentication, authorization, trust, privacy, policy management, information assurance, all in a user and provider friendly framework. Many e-Science and e-Research projects have developed distinctive security analyses, requirements, and technical solutions for a variety of applications. This workshop intends to provide a forum for researchers, developers and users working on security issues associated with e-Science and e-Research to exchange ideas and share experiences. The workshop has emphasis on establishing a state-of-the-art for security in e-Science and e-Research, identifying challenges and discussing solutions for successfully enabling security for e-Science and e-Research. The workshop program will be a blend of invited talks, presentations of research papers, and discussions about the current status, emerging areas, and trends on security-related issues in e-Science and e-Research. We solicit original papers reporting a wide spectrum of topics related to security in e-Science and e-Research. Topics of interest include, but are not limited to: - Eliciting security requirements for e-Science and e-Research applications - Analysis of security challenges, threats, risks and issues in e-Science and e-Research - Security architectures, frameworks, and infrastructures for e-Science and e-Research - Models and techniques for authentication and identity management in e-Science and e-Research - Models and techniques for authorization and access control in e-Science and e-Research - Trust model and management for e-Science and e-Research - Privacy mechanisms and management for e-Science and e-Research - Policy models and policy management in e-Science and e-Research - Information assurance for e-Science and e-Research applications - Security issues and solutions for data providers and data users - Model and frameworks for security-driven workflows - Supporting end-to-end security solutions for e-Science and e-Research - User-driven security models for e-Science and e-Research - Software engineering best practices in the development of security software - Experiences, case studies on the practical application of security models and solutions in e-Science and e-Research The format of submitted papers should follow the guidelines for IEEE conference proceedings format (8.5" x 11", Two-Column). Each accepted paper is limited to 6 pages (or 8 pages with over length charge). Papers in PDF format should be submitted at http://www.easychair.org/conferences/?conf=issr2010 via EasyChair. Submitting a paper to the workshop means that if the paper is accepted, at least one author should attend the workshop to present the paper. For no-show authors, their papers will be removed from the digital library after the conference and their affiliations will receive a notification. The proceedings of this workshop will be published by IEEE Computer Society Press (Indexed by EI). Authors of selected papers will be invited to submit extended versions to the Special Issue on "e-Science: Infrastructure, Service and Applications" - International Journal of Computer Systems Science & Engineering (CSSE) - SCI Indexed. Important Dates Submission deadline: April 5, 2010 Author notification: April 27, 2010 Camera-ready and registration due: May 18, 2010 Organization Steering Co-Chairs - Richard O. Sinnott, University of Glasgow, UK - Wei Jie, University of Manchester, UK Program Committee Co-Chairs - Guojun Wang, Central South University, China - Lizhe Wang, Indiana University, USA Program Committee - Andrew Martin, University of Oxford, UK - Anthony Stell, University of Glasgow, UK - Bin Xiao, Hong Kong Polytechnic University, Hong Kong - Bruce Beckles, University of Cambridge Computing Service, UK - David Chadwick, University of Kent, UK - Hamid Nemati , University of North Carolina at Greensboro, USA - Jeff (Yu) Lei, University of Texas at Arlington, USA - Jipu Jiang, University of Glasgow, UK - John Watt, University of Glasgow, UK - Junaid Arshad, University of Leeds, UK - Justin Zhan, Carnegie Mellon University, USA - Loh Kok Keong (Peter), Nanyang Technological University, Singapore - Mark Baker, University of Reading, UK - Marty Humphrey, University of Virginia, USA - Mike Jones, University of Manchester, UK - Pascal Ekin, University of Manchester, UK - Xiaobo Yang, University of Birmingham, UK - Xuanhua Shi, Huazhong University of Science and Technology, China - Zhou Lei, Shanghai University, China --------------------------------------End of CFP for IEEE ISSR-10--------------------------------- -- ******************************************************************** Professor Guojun Wang, Ph.D Department of Computer Science and Technology, Central South University, Changsha, Hunan Province, P. R. China, 410083 Tel/Fax: +86 731 88877711 Mobile: +86 13508486821 Email: csgjwang at mail.csu.edu.cn; csgjwang at gmail.com Homepage: http://trust.csu.edu.cn/faculty/~csgjwang ******************************************************************** --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From ben at links.org Sat Mar 20 13:29:36 2010 From: ben at links.org (Ben Laurie) Date: Sat, 20 Mar 2010 17:29:36 +0000 Subject: 1024 bit RSA cracked? In-Reply-To: <4BA0629A.5070401@gmail.com> References: <4B97C152.2050705@pobox.com> <20100316164508.GL14993@Sun.COM> <4BA0629A.5070401@gmail.com> Message-ID: <4BA50600.5060305@links.org> On 17/03/2010 05:03, James Muir wrote: > ** I just had the following realization: I had assumed that the authors > were attacking an openssl *server* running on the fpga board, but > perhaps that is not so. They don't seem to make that specific claim. > They claim only to be attacking an "unmodi ed version of the OpenSSL > library". It is possible that they only created a toy RSA application > that generates signatures using the openssl library (i.e. by making > calls to specific openssl functions). This would explain why they don't > discuss message blinding -- because they didn't enable it in their toy > application! I suspect that's what they did. In that case, their > experimental results say very little about the susceptibility of an > openssl server to fault attacks. Wow... if I'm correct, then the > authors really need to be more clear about exactly what they did. What everyone said... Plus ... even with their fix, all they have to do is induce two errors in quick succession and OpenSSL will spit out the key whole. In any case, this all seems entirely pointless: in order to mount the attack, you have to have intimate access to the hardware. In other words, what they have demonstrated is that DRM doesn't work. Groundbreaking. Of course, the annoying fall-out is that there will be (already is) a knee-jerk clamour for us to "fix" OpenSSL. Well, I've got news: securing anything in the face of an unpredictable CPU seems well beyond the scope of the OpenSSL project - or any other crypto library I am aware of. I'm not even sure it's possible. Cheers, Ben. -- http://www.apache-ssl.org/ben.html http://www.links.org/ "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert Woodruff --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Sun Mar 21 09:42:37 2010 From: perry at piermont.com (Perry E. Metzger) Date: Sun, 21 Mar 2010 09:42:37 -0400 Subject: nytimes: academic paper or cyberwarfare? Message-ID: <8739ztaj02.fsf@snark.cb.piermont.com> An article in The New York Times today indirectly highlights the misunderstanding of the way that researchers try to make things more secure, which is generally by trying to figure out and point out the insecurities. First few paragraphs: Academic Paper in China Sets Off Alarms in U.S. By JOHN MARKOFF and DAVID BARBOZA It came as a surprise this month to Wang Jianwei, a graduate engineering student in Liaoning, China, that he had been described as a potential cyberwarrior before the United States Congress. Larry M. Wortzel, a military strategist and China specialist, told the House Foreign Affairs Committee on March 10 that it should be concerned because ?Chinese researchers at the Institute of Systems Engineering of Dalian University of Technology published a paper on how to attack a small U.S. power grid sub-network in a way that would cause a cascading failure of the entire U.S.? When reached by telephone, Mr. Wang said he and his professor had indeed published ?Cascade-Based Attack Vulnerability on the U.S. Power Grid? in an international journal called Safety Science last spring. But Mr. Wang said he had simply been trying to find ways to enhance the stability of power grids by exploring potential vulnerabilities. ?We usually say ?attack? so you can see what would happen,? he said. ?My emphasis is on how you can protect this. My goal is to find a solution to make the network safer and better protected.? And independent American scientists who read his paper said it was true: Mr. Wang?s work was a conventional technical exercise that in no way could be used to take down a power grid. http://www.nytimes.com/2010/03/21/world/asia/21grid.html -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From sergiolerner at pentatek.com Sun Mar 21 17:13:02 2010 From: sergiolerner at pentatek.com (Sergio Lerner) Date: Sun, 21 Mar 2010 18:13:02 -0300 Subject: Question regarding common modulus on elliptic curve cryptosystems Message-ID: <4BA68BDE.3010007@pentatek.com> I looking for a public-key cryptosystem that allows commutation of the operations of encription/decryption for different users keys ( Ek(Es(m)) = Es(Ek(m)) ). I haven't found a simple cryptosystem in Zp or Z/nZ. I think the solution may be something like the RSA analogs in elliptic curves. Maybe a scheme that allows the use of a common modulus for all users (RSA does not). I've read on some factoring-based cryptosystem (like Meyer-Muller or Koyama-Maurer-Okamoto-Vantone) but the cryptosystem authors say nothing about the possibility of using a common modulus, neither for good nor for bad. Anyone has a deeper knowledge on this crypto to help me? Best regards, Sergio Lerner. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jkatz at cs.umd.edu Mon Mar 22 08:56:49 2010 From: jkatz at cs.umd.edu (Jonathan Katz) Date: Mon, 22 Mar 2010 08:56:49 -0400 (EDT) Subject: Question regarding common modulus on elliptic curve cryptosystems In-Reply-To: <4BA68BDE.3010007@pentatek.com> References: <4BA68BDE.3010007@pentatek.com> Message-ID: [Moderator's Note: please don't top post... --Perry] Sounds like a bad idea -- at a minimum, your encryption will be deterministic. What are you actually trying to achieve? Usually once you understand that, you can find a protocol solving your problem already in the crypto literature. On Sun, 21 Mar 2010, Sergio Lerner wrote: > > I looking for a public-key cryptosystem that allows commutation of the > operations of encription/decryption for different users keys > ( Ek(Es(m)) = Es(Ek(m)) ). > I haven't found a simple cryptosystem in Zp or Z/nZ. > > I think the solution may be something like the RSA analogs in elliptic > curves. Maybe a scheme that allows the use of a common modulus for all users > (RSA does not). > I've read on some factoring-based cryptosystem (like Meyer-Muller or > Koyama-Maurer-Okamoto-Vantone) but the cryptosystem authors say nothing about > the possibility of using a common modulus, neither for good nor for bad. > > Anyone has a deeper knowledge on this crypto to help me? > > Best regards, > Sergio Lerner. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From zacheusz.siedlecki at gmail.com Mon Mar 22 08:58:53 2010 From: zacheusz.siedlecki at gmail.com (Zacheusz Siedlecki) Date: Mon, 22 Mar 2010 13:58:53 +0100 Subject: Question regarding common modulus on elliptic curve cryptosystems In-Reply-To: <4BA68BDE.3010007@pentatek.com> References: <4BA68BDE.3010007@pentatek.com> Message-ID: <80b3f7391003220558o55bc47dbifeef19906ae07cc1@mail.gmail.com> Hi, Elliptic Curve Pohlig-Hellman is comutative. It's quite simple. I've implemented it. Regards, Zacheusz Siedlecki 2010/3/21 Sergio Lerner : > > I looking for a public-key cryptosystem that allows commutation of the > operations of encription/decryption for different users keys > ( Ek(Es(m)) = ?Es(Ek(m)) ). > I haven't found a simple cryptosystem in Zp or Z/nZ. > > I think the solution may be something like the RSA analogs in elliptic > curves. Maybe a scheme that allows the use of a common modulus for all users > (RSA does not). > I've read on some factoring-based cryptosystem (like Meyer-Muller or > Koyama-Maurer-Okamoto-Vantone) but the cryptosystem authors say nothing > about the possibility of using a common modulus, neither for good nor for > bad. > > Anyone has a deeper knowledge on this crypto to help me? > > Best regards, > ?Sergio Lerner. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From sergiolerner at pentatek.com Mon Mar 22 09:22:35 2010 From: sergiolerner at pentatek.com (Sergio Lerner) Date: Mon, 22 Mar 2010 10:22:35 -0300 Subject: Question regarding common modulus on elliptic curve cryptosystems In-Reply-To: References: <4BA68BDE.3010007@pentatek.com> Message-ID: <4BA76F1B.4090909@pentatek.com> [Moderator's Note: please don't top post.... --Perry] Commutativity is a beautiful and powerful property. See "On the power of Commutativity in Cryptography" by Adi Shamir. Semantic security is great and has given a new provable sense of security, but commutative building blocks can be combined to build the strangest protocols without going into deep mathematics, are better suited for teaching crypto and for high-level protocol design. They are like the "Lego" blocks of cryptography! Now I'm working on an new untraceable e-cash protocol which has some additional properties. And I'm searching for a secure commutable signing primitive. Best regards, Sergio Lerner. On 22/03/2010 09:56 a.m., Jonathan Katz wrote: > Sounds like a bad idea -- at a minimum, your encryption will be > deterministic. > > What are you actually trying to achieve? Usually once you understand > that, you can find a protocol solving your problem already in the > crypto literature. > > On Sun, 21 Mar 2010, Sergio Lerner wrote: > >> >> I looking for a public-key cryptosystem that allows commutation of >> the operations of encription/decryption for different users keys >> ( Ek(Es(m)) = Es(Ek(m)) ). >> I haven't found a simple cryptosystem in Zp or Z/nZ. >> >> I think the solution may be something like the RSA analogs in >> elliptic curves. Maybe a scheme that allows the use of a common >> modulus for all users (RSA does not). >> I've read on some factoring-based cryptosystem (like Meyer-Muller or >> Koyama-Maurer-Okamoto-Vantone) but the cryptosystem authors say >> nothing about the possibility of using a common modulus, neither for >> good nor for bad. >> >> Anyone has a deeper knowledge on this crypto to help me? >> >> Best regards, >> Sergio Lerner. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From sergiolerner at pentatek.com Mon Mar 22 09:23:38 2010 From: sergiolerner at pentatek.com (Sergio Lerner) Date: Mon, 22 Mar 2010 10:23:38 -0300 Subject: Question regarding common modulus on elliptic curve cryptosystems Message-ID: <4BA76F5A.6030506@pentatek.com> As far as I understand, Elliptic Curve Pohlig-Hellman is not public-key. It's a private key cipher. Regards, Sergio. On 22/03/2010 09:56 a.m., Zacheusz Siedlecki wrote: > Hi, > Elliptic Curve Pohlig-Hellman is comutative. It's quite simple. I've > implemented it. > Regards, > Zacheusz Siedlecki > > On Sun, Mar 21, 2010 at 10:13 PM, Sergio Lerner > wrote: > >> I looking for a public-key cryptosystem that allows commutation of the >> operations of encription/decryption for different users keys >> ( Ek(Es(m)) = Es(Ek(m)) ). >> I haven't found a simple cryptosystem in Zp or Z/nZ. >> >> I think the solution may be something like the RSA analogs in elliptic >> curves. Maybe a scheme that allows the use of a common modulus for all users >> (RSA does not). >> I've read on some factoring-based cryptosystem (like Meyer-Muller or >> Koyama-Maurer-Okamoto-Vantone) but the cryptosystem authors say nothing >> about the possibility of using a common modulus, neither for good nor for >> bad. >> >> Anyone has a deeper knowledge on this crypto to help me? >> >> Best regards, >> Sergio Lerner. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jkatz at cs.umd.edu Mon Mar 22 09:25:03 2010 From: jkatz at cs.umd.edu (Jonathan Katz) Date: Mon, 22 Mar 2010 09:25:03 -0400 (EDT) Subject: Question regarding common modulus on elliptic curve cryptosystems In-Reply-To: <4BA76F1B.4090909@pentatek.com> References: <4BA68BDE.3010007@pentatek.com> <4BA76F1B.4090909@pentatek.com> Message-ID: [Moderator's Note: Please please don't top post. --Perry] That paper was from 1980. A few things have changed since then. =) In any case, my point still stands: what you actually want is some e-cash system with some special properties. Commutative encryption is neither necessary nor (probably) sufficient for what you want. Have you at least looked at the literature (which must be well over 100 papers) on e-cash? On Mon, 22 Mar 2010, Sergio Lerner wrote: > Commutativity is a beautiful and powerful property. See "On the power of > Commutativity in Cryptography" by Adi Shamir. > Semantic security is great and has given a new provable sense of security, > but commutative building blocks can be combined to build the strangest > protocols without going into deep mathematics, are better suited for teaching > crypto and for high-level protocol design. They are like the "Lego" blocks of > cryptography! > > Now I'm working on an new untraceable e-cash protocol which has some > additional properties. And I'm searching for a secure commutable signing > primitive. > > Best regards, > Sergio Lerner. > > > On 22/03/2010 09:56 a.m., Jonathan Katz wrote: >> Sounds like a bad idea -- at a minimum, your encryption will be >> deterministic. >> >> What are you actually trying to achieve? Usually once you understand that, >> you can find a protocol solving your problem already in the crypto >> literature. >> >> On Sun, 21 Mar 2010, Sergio Lerner wrote: >> >>> >>> I looking for a public-key cryptosystem that allows commutation of the >>> operations of encription/decryption for different users keys >>> ( Ek(Es(m)) = Es(Ek(m)) ). >>> I haven't found a simple cryptosystem in Zp or Z/nZ. >>> >>> I think the solution may be something like the RSA analogs in elliptic >>> curves. Maybe a scheme that allows the use of a common modulus for all >>> users (RSA does not). >>> I've read on some factoring-based cryptosystem (like Meyer-Muller or >>> Koyama-Maurer-Okamoto-Vantone) but the cryptosystem authors say nothing >>> about the possibility of using a common modulus, neither for good nor for >>> bad. >>> >>> Anyone has a deeper knowledge on this crypto to help me? >>> >>> Best regards, >>> Sergio Lerner. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From sergiolerner at pentatek.com Mon Mar 22 11:09:16 2010 From: sergiolerner at pentatek.com (Sergio Lerner) Date: Mon, 22 Mar 2010 12:09:16 -0300 Subject: Question regarding common modulus on elliptic curve cryptosystems AND E-CASH In-Reply-To: References: <4BA68BDE.3010007@pentatek.com> <4BA76F1B.4090909@pentatek.com> Message-ID: <4BA7881C.8090704@pentatek.com> I've read some papers, not that much. But I don't mind reinventing the wheel, as long as the new protocol is simpler to explain. Reading the literature, I couldn't find a e-cash protocol which : - Hides the destination / source of payments. - Hides the amount of money transferred. - Hides the account balance of each person from the bank. - Allows off-line payments. - Avoids giving the same "bill" to two different people by design. This means that the protocol does not need to detect the use of cloned "bills". - Gives each person a cryptographic proof of owning the money they have in case of dispute. I someone points me out a protocol that manages to fulfill this requirements, I'd be delighted. I think I can do it with a commutative signing primitive, and a special zero-proof of knowledge. Regards, Sergio Lerner. On 22/03/2010 10:25 a.m., Jonathan Katz wrote: > That paper was from 1980. A few things have changed since then. =) > > In any case, my point still stands: what you actually want is some > e-cash system with some special properties. Commutative encryption is > neither necessary nor (probably) sufficient for what you want. Have > you at least looked at the literature (which must be well over 100 > papers) on e-cash? > > On Mon, 22 Mar 2010, Sergio Lerner wrote: > >> Commutativity is a beautiful and powerful property. See "On the power >> of Commutativity in Cryptography" by Adi Shamir. >> Semantic security is great and has given a new provable sense of >> security, but commutative building blocks can be combined to build >> the strangest protocols without going into deep mathematics, are >> better suited for teaching crypto and for high-level protocol design. >> They are like the "Lego" blocks of cryptography! >> >> Now I'm working on an new untraceable e-cash protocol which has some >> additional properties. And I'm searching for a secure commutable >> signing primitive. >> >> Best regards, >> Sergio Lerner. >> >> >> On 22/03/2010 09:56 a.m., Jonathan Katz wrote: >>> Sounds like a bad idea -- at a minimum, your encryption will be >>> deterministic. >>> >>> What are you actually trying to achieve? Usually once you understand >>> that, you can find a protocol solving your problem already in the >>> crypto literature. >>> >>> On Sun, 21 Mar 2010, Sergio Lerner wrote: >>> >>>> >>>> I looking for a public-key cryptosystem that allows commutation of >>>> the operations of encription/decryption for different users keys >>>> ( Ek(Es(m)) = Es(Ek(m)) ). >>>> I haven't found a simple cryptosystem in Zp or Z/nZ. >>>> >>>> I think the solution may be something like the RSA analogs in >>>> elliptic curves. Maybe a scheme that allows the use of a common >>>> modulus for all users (RSA does not). >>>> I've read on some factoring-based cryptosystem (like Meyer-Muller >>>> or Koyama-Maurer-Okamoto-Vantone) but the cryptosystem authors say >>>> nothing about the possibility of using a common modulus, neither >>>> for good nor for bad. >>>> >>>> Anyone has a deeper knowledge on this crypto to help me? --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From zacheusz.siedlecki at gmail.com Mon Mar 22 14:52:26 2010 From: zacheusz.siedlecki at gmail.com (Zacheusz Siedlecki) Date: Mon, 22 Mar 2010 19:52:26 +0100 Subject: Question regarding common modulus on elliptic curve cryptosystems In-Reply-To: References: <4BA68BDE.3010007@pentatek.com> <4BA76F1B.4090909@pentatek.com> Message-ID: <80b3f7391003221152w5364da68x3ae87b26953aaab6@mail.gmail.com> [Moderator's note. Please please please don't top post. --Perry] I think you should look for multisignature schemes. There are lots of it. And BTW - right EC Pohlih-Hellman is not public key cryptosystem. I missed your requirement. Regards, Zacheusz 2010/3/22, Jonathan Katz : > [Moderator's Note: Please please don't top post. --Perry] > > That paper was from 1980. A few things have changed since then. =) > > In any case, my point still stands: what you actually want is some e-cash > system with some special properties. Commutative encryption is neither > necessary nor (probably) sufficient for what you want. Have you at least > looked at the literature (which must be well over 100 papers) on e-cash? > > On Mon, 22 Mar 2010, Sergio Lerner wrote: > >> Commutativity is a beautiful and powerful property. See "On the power of >> Commutativity in Cryptography" by Adi Shamir. >> Semantic security is great and has given a new provable sense of security, >> >> but commutative building blocks can be combined to build the strangest >> protocols without going into deep mathematics, are better suited for >> teaching >> crypto and for high-level protocol design. They are like the "Lego" blocks >> of >> cryptography! >> >> Now I'm working on an new untraceable e-cash protocol which has some >> additional properties. And I'm searching for a secure commutable signing >> primitive. >> >> Best regards, >> Sergio Lerner. >> >> >> On 22/03/2010 09:56 a.m., Jonathan Katz wrote: >>> Sounds like a bad idea -- at a minimum, your encryption will be >>> deterministic. >>> >>> What are you actually trying to achieve? Usually once you understand >>> that, >>> you can find a protocol solving your problem already in the crypto >>> literature. >>> >>> On Sun, 21 Mar 2010, Sergio Lerner wrote: >>> >>>> >>>> I looking for a public-key cryptosystem that allows commutation of the >>>> operations of encription/decryption for different users keys >>>> ( Ek(Es(m)) = Es(Ek(m)) ). >>>> I haven't found a simple cryptosystem in Zp or Z/nZ. >>>> >>>> I think the solution may be something like the RSA analogs in elliptic >>>> curves. Maybe a scheme that allows the use of a common modulus for all >>>> users (RSA does not). >>>> I've read on some factoring-based cryptosystem (like Meyer-Muller or >>>> Koyama-Maurer-Okamoto-Vantone) but the cryptosystem authors say nothing >>>> about the possibility of using a common modulus, neither for good nor >>>> for >>>> bad. >>>> >>>> Anyone has a deeper knowledge on this crypto to help me? --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Tue Mar 23 11:21:01 2010 From: perry at piermont.com (Perry E. Metzger) Date: Tue, 23 Mar 2010 11:21:01 -0400 Subject: "Against Rekeying" Message-ID: <87sk7rnjxe.fsf@snark.cb.piermont.com> Ekr has an interesting blog post up on the question of whether protocol support for periodic rekeying is a good or a bad thing: http://www.educatedguesswork.org/2010/03/against_rekeying.html I'd be interested in hearing what people think on the topic. I'm a bit skeptical of his position, partially because I think we have too little experience with real world attacks on cryptographic protocols, but I'm fairly open-minded at this point. Perry -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From zenadsl6186 at zen.co.uk Tue Mar 23 11:29:40 2010 From: zenadsl6186 at zen.co.uk (Peter Fairbrother) Date: Tue, 23 Mar 2010 15:29:40 +0000 Subject: Question regarding common modulus on elliptic curve cryptosystems In-Reply-To: <4BA68BDE.3010007@pentatek.com> References: <4BA68BDE.3010007@pentatek.com> Message-ID: <4BA8DE64.6000803@zen.co.uk> Sergio Lerner wrote: > > I looking for a public-key cryptosystem that allows commutation of the > operations of encription/decryption for different users keys > ( Ek(Es(m)) = Es(Ek(m)) ). Diffie-Hellman combined with Pohlig-Hellman can do what you describe. It's a variation on www.zenadsl6186.zen.co.uk/ICUR.pdf using DH (as a public key system rather than as a key agreement system) rather than El Gamal. If it's not obvious how to implement it ask offlist. But I don't think that's what you need. PK is not the same thing as signatures. It's not "a commutative signing primitive". That's not something which I've come across before, but maybe I could work one out ... I gather you need for the verifier to be unable to tell the order in which the signatures were applied? Can't think offhand of any other reason why you'd need one. But I need to know exactly what you need. Need coffee, it's raining .. dilemma, wet or unwoken? -- Peter Fairbrother --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at Sun.COM Tue Mar 23 11:42:38 2010 From: Nicolas.Williams at Sun.COM (Nicolas Williams) Date: Tue, 23 Mar 2010 10:42:38 -0500 Subject: "Against Rekeying" In-Reply-To: <87sk7rnjxe.fsf@snark.cb.piermont.com> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> Message-ID: <20100323154238.GH21244@Sun.COM> On Tue, Mar 23, 2010 at 11:21:01AM -0400, Perry E. Metzger wrote: > Ekr has an interesting blog post up on the question of whether protocol > support for periodic rekeying is a good or a bad thing: > > http://www.educatedguesswork.org/2010/03/against_rekeying.html > > I'd be interested in hearing what people think on the topic. I'm a bit > skeptical of his position, partially because I think we have too little > experience with real world attacks on cryptographic protocols, but I'm > fairly open-minded at this point. I fully agree with EKR on this: if you're using block ciphers with 128-bit block sizes in suitable modes and with suitably strong key exchange, then there's really no need to ever (for a definition of "ever" relative to common "connection" lifetimes for whatever protocols you have in mind, such as months) re-key for cryptographic reasons. There may be reasons for re-keying, but the commonly given one that a given key gets weak over time from use (meaning the attacker can gather ciphertexts) and just the passage of time (during which an attacker might brute force it) does not apply to modern crypto. Ensuring that a protocol that uses modern crypto also supports re-keying only complicates the protocol, which adds to the potential for bugs. Consider SSHv2: popular implementations of the server do privilege separation, but after successful login there's the potential for having to do re-keys that require privilege (e.g., if you're using SSHv2 w/ GSS-API key exchange), which complicates privilege separation. But for that wrinkle the only post-login privsep complications are: logout processing (auditing, ...), and utmpx processing (if you want tty channels to appear in w(1) output; this could always be handled in ways that are not specific to sshd). What a pain! (OTOH, the ability delegate fresh GSS credentials via re-keying is useful.) Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From frantz at pwpconsult.com Tue Mar 23 15:00:40 2010 From: frantz at pwpconsult.com (Bill Frantz) Date: Tue, 23 Mar 2010 12:00:40 -0700 Subject: "Against Rekeying" In-Reply-To: <87sk7rnjxe.fsf@snark.cb.piermont.com> Message-ID: On 3/23/10 at 8:21 AM, perry at piermont.com (Perry E. Metzger) wrote: > Ekr has an interesting blog post up on the question of whether protocol > support for periodic rekeying is a good or a bad thing: > > http://www.educatedguesswork.org/2010/03/against_rekeying.html > > I'd be interested in hearing what people think on the topic. I'm a bit > skeptical of his position, partially because I think we have too little > experience with real world attacks on cryptographic protocols, but I'm > fairly open-minded at this point. Eric didn't mention it in his blog post, but he has been deeply involved in cleaning up the mess left by a protocol error in in SSLv3 and subsequent TLS versions. This error was in the portion of the protocols which supported rekeying and created a vulnerability that affected all users of those protocols, whether they used the rekeying part or not. The risks from additional protocol complexity must be balanced with the benefits of including the additional facility. My own opinion is that in this case, the benefits didn't justify the risk. The few applications which desired rekeying could have been designed to build a completely new TLS connection, avoiding the risk for everyone. Cheers - Bill ----------------------------------------------------------------------- Bill Frantz | I like the farmers' market | Periwinkle (408)356-8506 | because I can get fruits and | 16345 Englewood Ave www.pwpconsult.com | vegetables without stickers. | Los Gatos, CA 95032 --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at Sun.COM Tue Mar 23 15:51:41 2010 From: Nicolas.Williams at Sun.COM (Nicolas Williams) Date: Tue, 23 Mar 2010 14:51:41 -0500 Subject: "Against Rekeying" In-Reply-To: <20100323154238.GH21244@Sun.COM> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <20100323154238.GH21244@Sun.COM> Message-ID: <20100323195141.GX21244@Sun.COM> On Tue, Mar 23, 2010 at 10:42:38AM -0500, Nicolas Williams wrote: > On Tue, Mar 23, 2010 at 11:21:01AM -0400, Perry E. Metzger wrote: > > Ekr has an interesting blog post up on the question of whether protocol > > support for periodic rekeying is a good or a bad thing: > > > > http://www.educatedguesswork.org/2010/03/against_rekeying.html > > > > I'd be interested in hearing what people think on the topic. I'm a bit > > skeptical of his position, partially because I think we have too little > > experience with real world attacks on cryptographic protocols, but I'm > > fairly open-minded at this point. > > I fully agree with EKR on this: if you're using block ciphers with > 128-bit block sizes in suitable modes and with suitably strong key > exchange, then there's really no need to ever (for a definition of > "ever" relative to common "connection" lifetimes for whatever protocols > you have in mind, such as months) re-key for cryptographic reasons. I forgot to mention that I was referring to session keys for on-the-wire protocols. For data storage I think re-keying is easier to justify. Also, there is a strong argument for changing ephemeral session keys for long sessions, made by Charlie Kaufman on EKRs blog post: to limit disclosure of earlier ciphertexts resulting from future compromises. However, I think that argument can be answered by changing session keys without re-keying in the SSHv2 and TLS re-negotiation senses. (Changing session keys in such a way would not be trivial, but it may well be simpler than the alternative. I've only got, in my mind, a sketch of how it'd work.) Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From aviv at cis.upenn.edu Tue Mar 23 17:31:07 2010 From: aviv at cis.upenn.edu (Adam Aviv) Date: Tue, 23 Mar 2010 17:31:07 -0400 Subject: Teaching Cryptography to 5th graders Message-ID: <4BA9331B.3020202@cis.upenn.edu> I saw this post on Avi Rubin's blog today about his preparation for teaching a class of 5th graders cryptographic principles. http://avi-rubin.blogspot.com/2010/03/teaching-cryptography-to-5th-graders.html It is a nice post, and I thought the list would be interested despite the lack of eliptic curve cryptography in the lesson plan. I am at least excited to hear how it went. -- adam --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jon at callas.org Tue Mar 23 17:42:17 2010 From: jon at callas.org (Jon Callas) Date: Tue, 23 Mar 2010 14:42:17 -0700 Subject: "Against Rekeying" In-Reply-To: <87sk7rnjxe.fsf@snark.cb.piermont.com> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> Message-ID: <881FA93B-5C9C-44D3-9869-2D69B2D93BDE@callas.org> > I'd be interested in hearing what people think on the topic. I'm a bit > skeptical of his position, partially because I think we have too little > experience with real world attacks on cryptographic protocols, but I'm > fairly open-minded at this point. I think that if anything, he doesn't go far enough. Rekeying only makes sense when you aren't using the right crypto, and even then might make the situation worse. Rekeying opens up a line of attack. From a purely mathematical point of view, here's a way to look at it: The chance of beating your cipher is P1 (ideally, it's the strength of the cipher, let's just say 2^-128). The chance of beating the rekey protocol is P2. Rekeying makes sense when P2 is smaller than P1. When P2 is larger than P1, you've reduced the security of your system to the chance of a flaw in the rekeying, not the cipher. As others have pointed out, it's front of Ekr's mind that there is (was) a major flaw in the SSL/TLS protocol set that came out because of bugs in rekeying. Worse, it affected people who wanted high security in more evil ways than people who just wanted casual security. Many people (including me) think that the best way to fix this is to remove the rekeying. If you need to rekey, tear down the SSL connection and make a new one. There should be a higher level construct in the application that abstracts the two connections into one session. In most cases where you might want to rekey, the underlying system makes it either so trivial you don't need to think about it, or so hard that you can ignore it because you just won't. Let me give a couple examples. First the trivial one. Consider a directory of files where each file is encrypted separately with a bulk key per-file. The natural way to do this is that every time someone rewrites a file, you make a new bulk key and rewrite the file. You don't have to worry about rekeying because it just falls out. Now the hard one. Consider a disk that is encrypted with some full disk encryption system. If you want to rekey that disk, you have to read and write every block. For a large disk, that is seriously annoying. If your disk does 100MB/s (which very fast for a spindle and still pretty fast for SSDs), then you can do 180G per hour (that's 6G per minute, 360G per hour, and halve it because you have to read and write) max. That's about six hours for a terabyte. If your disk only does 10MB/s, which many spindles do, then it's 60 hours to rekey that terabyte. You can do the math for other sizes and speeds as well as I can. In any event, you're not going to rekey the disk very often. In fact most of the people who really care about rekeying storage are changing their requirements so that you have to do a rekey on the same schedule as retiring media -- which effectively means no rekey. A long-time rant of mine is that security people don't do layering. I think this falls into a layering aspect. If you design your system so that your connection has a single key and you transparently reconnect, then rekeying is just forcing a reconnect. If you make your storage have one key per file, then rekeying the files is just rewriting them. It can easily vanish. And yes, obviously, there are exception cases. Exceptions are always exceptional. Jon --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From adam at cypherspace.org Tue Mar 23 19:23:10 2010 From: adam at cypherspace.org (Adam Back) Date: Wed, 24 Mar 2010 00:23:10 +0100 Subject: "Against Rekeying" In-Reply-To: <20100323195141.GX21244@Sun.COM> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <20100323154238.GH21244@Sun.COM> <20100323195141.GX21244@Sun.COM> Message-ID: <3c7e0a571003231623y6cb2ce3dr986c177396f4dc8c@mail.gmail.com> In anon-ip (a zero-knowledge systems internal project) and cebolla [1] we provided forward-secrecy (aka backward security) using symmetric re-keying (key replaced by hash of previous key). (Backward and forward security as defined by Ross Anderson in [2]). But we did not try to do forward security in the sense of trying to recover security in the event someone temporarily gained keys. If someone has compromised your system badly enough that they can read keys, they can install a backdoor. Another angle on this is timing attacks or iterative adaptive attacks like bleichenbacher's attack on SSL encryption padding. If re-keying happens before the attack can complete, perhaps the risk of a successful so far unnoticed adaptive or side-channel attack can be reduced. So maybe there is some use. Simplicity of design can be good too. Also patching SSL now that fixes are available might be an idea. (In my survey of bank sites most of them still have not patched and are quite possibly practically vulnerable). Adam [1] http://www.cypherspace.org/cebolla/ [2] http://www.cypherspace.org/adam/nifs/refs/forwardsecure.pdf On Tue, Mar 23, 2010 at 8:51 PM, Nicolas Williams wrote: > On Tue, Mar 23, 2010 at 10:42:38AM -0500, Nicolas Williams wrote: >> On Tue, Mar 23, 2010 at 11:21:01AM -0400, Perry E. Metzger wrote: >> > Ekr has an interesting blog post up on the question of whether protocol >> > support for periodic rekeying is a good or a bad thing: >> > >> > http://www.educatedguesswork.org/2010/03/against_rekeying.html >> > >> > I'd be interested in hearing what people think on the topic. I'm a bit >> > skeptical of his position, partially because I think we have too little >> > experience with real world attacks on cryptographic protocols, but I'm >> > fairly open-minded at this point. >> >> I fully agree with EKR on this: if you're using block ciphers with >> 128-bit block sizes in suitable modes and with suitably strong key >> exchange, then there's really no need to ever (for a definition of >> "ever" relative to common "connection" lifetimes for whatever protocols >> you have in mind, such as months) re-key for cryptographic reasons. > > I forgot to mention that I was referring to session keys for on-the-wire > protocols. ?For data storage I think re-keying is easier to justify. > > Also, there is a strong argument for changing ephemeral session keys for > long sessions, made by Charlie Kaufman on EKRs blog post: to limit > disclosure of earlier ciphertexts resulting from future compromises. > > However, I think that argument can be answered by changing session keys > without re-keying in the SSHv2 and TLS re-negotiation senses. ?(Changing > session keys in such a way would not be trivial, but it may well be > simpler than the alternative. ?I've only got, in my mind, a sketch of > how it'd work.) > > Nico > -- > > --------------------------------------------------------------------- > The Cryptography Mailing List > Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com > --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From smb at cs.columbia.edu Tue Mar 23 22:13:20 2010 From: smb at cs.columbia.edu (Steven Bellovin) Date: Tue, 23 Mar 2010 22:13:20 -0400 Subject: "Against Rekeying" In-Reply-To: <87sk7rnjxe.fsf@snark.cb.piermont.com> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> Message-ID: <8AA37C00-61A6-4B1D-8991-26F4F8AEEFBB@cs.columbia.edu> On Mar 23, 2010, at 11:21 AM, Perry E. Metzger wrote: > > Ekr has an interesting blog post up on the question of whether protocol > support for periodic rekeying is a good or a bad thing: > > http://www.educatedguesswork.org/2010/03/against_rekeying.html > > I'd be interested in hearing what people think on the topic. I'm a bit > skeptical of his position, partially because I think we have too little > experience with real world attacks on cryptographic protocols, but I'm > fairly open-minded at this point. I'm a bit skeptical -- I think that ekr is throwing the baby out with the bath water. Nobody expects the Spanish Inquisition, and nobody expects linear cryptanalysis, differential cryptanalysis, hypertesseract cryptanalysis, etc. A certain degree of skepticism about the strength of our ciphers is always a good thing -- no one has ever deployed a cipher they think their adversaries can read, but we know that lots of adversaries have read lots of "unbreakable" ciphers. Now -- it is certainly possible to go overboard on this, and I think the IETF often has. (Some of the advice given during the design of IPsec was quite preposterous; I even thought so then...) But one can calculate rekeying intervals based on some fairly simple assumptions about the amount of {chosen,known,unknown} plaintex/ciphertext pairs needed and the work factor for the attack, multiplied by the probability of someone developing an attack of that complexity, and everything multiplied by Finagle's Constant. The trick, of course, is to make the right assumptions. But as Bruce Schneier is fond of quoting, attacks never get worse; they only get better. Given recent research results, does anyone want to bet on the lifetime of AES? Sure, the NSA has rated it for Top Secret traffic, but I know a fair number of people who no longer agree with that judgment. It's safe today -- but will it be safe in 20 years? Will my plaintext still be sensitive then? All of that is beside the point. The real challenge is often to design a system -- note, a *system*, not just a protocol -- that can be rekeyed *if* the long-term keys are compromised. Once you have that, setting the time interval is a much simpler question, and a question that can be revisited over time as attacks improve. --Steve Bellovin, http://www.cs.columbia.edu/~smb --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From ashwood at msn.com Wed Mar 24 02:24:40 2010 From: ashwood at msn.com (Joseph Ashwood) Date: Tue, 23 Mar 2010 23:24:40 -0700 Subject: "Against Rekeying" In-Reply-To: <87sk7rnjxe.fsf@snark.cb.piermont.com> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> Message-ID: -------------------------------------------------- From: "Perry E. Metzger" Subject: "Against Rekeying" > I'd be interested in hearing what people think on the topic. I'm a bit > skeptical of his position, partially because I think we have too little > experience with real world attacks on cryptographic protocols, but I'm > fairly open-minded at this point. Typically, rekeying is unnecessary, but sooner or later you'll find a situation where it is critical. The claim made that everything hinges on is that 2^68 bytes is not achievable in a useful period of time, this is not always correct. Cisco recently announced the CRS-3 router, a single router that does 322 Tbits/sec, that's 40.25 TBytes/sec. Only 7 million seconds to exhaust the entire 2^68. This is still fairly large, but be around the industry long enough you'll see a big cluster where they communicate as fast as possible, all with the same key. I've seen clusters of up to 100 servers at a time, so in theory it could be just 70,000 seconds, not even a full day, its also worth keeping in mind the bandwidth drain of an organization as cmopute intensive as Google of Facebook will easily exceed even these limits. Certainly an argument can be made that the protocol used is wrong, but this kind of protocol gets all too frequently, and since it is usually used for high availability (one of the primary reasons for clustering) the need to rekey becomes all too real. So there are times where rekeying is a very necessary requirement. I prefer a protocol reboot process instead of an in-protocol rekey, but sometimes you have to do what you have to do. Rekeying probably should never have been implemented in something like SSL/TLS or SSH, even IPsec it is arguable, but extreme environments require extreme solutions. Joe --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From simon at josefsson.org Wed Mar 24 04:28:08 2010 From: simon at josefsson.org (Simon Josefsson) Date: Wed, 24 Mar 2010 09:28:08 +0100 Subject: "Against Rekeying" In-Reply-To: <87sk7rnjxe.fsf@snark.cb.piermont.com> (Perry E. Metzger's message of "Tue, 23 Mar 2010 11:21:01 -0400") References: <87sk7rnjxe.fsf@snark.cb.piermont.com> Message-ID: <874ok6m8dj.fsf@mocca.josefsson.org> "Perry E. Metzger" writes: > Ekr has an interesting blog post up on the question of whether protocol > support for periodic rekeying is a good or a bad thing: > > http://www.educatedguesswork.org/2010/03/against_rekeying.html > > I'd be interested in hearing what people think on the topic. I'm a bit > skeptical of his position, partially because I think we have too little > experience with real world attacks on cryptographic protocols, but I'm > fairly open-minded at this point. One situation where rekeying appears to me not only useful but actually essential is when you re-authenticate in the secure channel. TLS renegotiation is used for re-authentication, for example, when you go from no user authentication to user authenticated, or go from user X authenticated to user Y authenticated. This is easy to do with TLS renegotiation: just renegotiate with a different client certificate. I would feel uncomfortable using the same encryption keys that were negotiated by an anonymous user (or another user X) before me when I'm authentication as user Y, and user Y is planning to send a considerably amount of traffic that user Y wants to be protected. Trusting the encryption keys negotiated by user X doesn't seem prudent to me. Essentially, I want encryption keys to always be bound to authentication. Yes, the re-authentication use-case could be implemented by tearing down the secure channel and opening a new one, and that may be overall simpler to implement and support. However, IF we want to provide a secure channel for application protocols that re-authenticate, I have a feeling that the secure channel must support re-keying to yield good security properties. /Simon --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From adam at cypherspace.org Wed Mar 24 04:35:12 2010 From: adam at cypherspace.org (Adam Back) Date: Wed, 24 Mar 2010 09:35:12 +0100 Subject: "Against Rekeying" In-Reply-To: <20100323195141.GX21244@Sun.COM> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <20100323154238.GH21244@Sun.COM> <20100323195141.GX21244@Sun.COM> Message-ID: <3c7e0a571003240135te5c1c03o94f018654ce30409@mail.gmail.com> Seems people like bottom post around here. On Tue, Mar 23, 2010 at 8:51 PM, Nicolas Williams wrote: > On Tue, Mar 23, 2010 at 10:42:38AM -0500, Nicolas Williams wrote: >> On Tue, Mar 23, 2010 at 11:21:01AM -0400, Perry E. Metzger wrote: >> > Ekr has an interesting blog post up on the question of whether protocol >> > support for periodic rekeying is a good or a bad thing: >> > >> > http://www.educatedguesswork.org/2010/03/against_rekeying.html >> > >> > I'd be interested in hearing what people think on the topic. I'm a bit >> > skeptical of his position, partially because I think we have too little >> > experience with real world attacks on cryptographic protocols, but I'm >> > fairly open-minded at this point. >> >> I fully agree with EKR on this: if you're using block ciphers with >> 128-bit block sizes in suitable modes and with suitably strong key >> exchange, then there's really no need to ever (for a definition of >> "ever" relative to common "connection" lifetimes for whatever protocols >> you have in mind, such as months) re-key for cryptographic reasons. > > I forgot to mention that I was referring to session keys for on-the-wire > protocols. ?For data storage I think re-keying is easier to justify. > > Also, there is a strong argument for changing ephemeral session keys for > long sessions, made by Charlie Kaufman on EKRs blog post: to limit > disclosure of earlier ciphertexts resulting from future compromises. > > However, I think that argument can be answered by changing session keys > without re-keying in the SSHv2 and TLS re-negotiation senses. ?(Changing > session keys in such a way would not be trivial, but it may well be > simpler than the alternative. ?I've only got, in my mind, a sketch of > how it'd work.) > > Nico In anon-ip (a zero-knowledge systems internal project) and cebolla [1] we provided forward-secrecy (aka backward security) using symmetric re-keying (key replaced by hash of previous key). (Backward and forward security as defined by Ross Anderson in [2]). But we did not try to do forward security in the sense of trying to recover security in the event someone temporarily gained keys. If someone has compromised your system badly enough that they can read keys, they can install a backdoor. Another angle on this is timing attacks or iterative adaptive attacks like bleichenbacher's attack on SSL encryption padding. If re-keying happens before the attack can complete, perhaps the risk of a successful so far unnoticed adaptive or side-channel attack can be reduced. So maybe there is some use. Simplicity of design can be good too. Also patching SSL now that fixes are available might be an idea. (In my survey of bank sites most of them still have not patched and are quite possibly practically vulnerable). Adam [1] http://www.cypherspace.org/cebolla/ [2] http://www.cypherspace.org/adam/nifs/refs/forwardsecure.pdf --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From neuhaus at st.cs.uni-sb.de Wed Mar 24 05:07:36 2010 From: neuhaus at st.cs.uni-sb.de (Stephan Neuhaus) Date: Wed, 24 Mar 2010 10:07:36 +0100 Subject: "Against Rekeying" In-Reply-To: <881FA93B-5C9C-44D3-9869-2D69B2D93BDE@callas.org> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <881FA93B-5C9C-44D3-9869-2D69B2D93BDE@callas.org> Message-ID: <7E9DC0BD-6F89-4729-8970-298F18D30C95@st.cs.uni-sb.de> On Mar 23, 2010, at 22:42, Jon Callas wrote: > If you need to rekey, tear down the SSL connection and make a new one. There should be a higher level construct in the application that abstracts the two connections into one session. ... which will have its own subtleties and hence probability of failure. Stephan --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From crawdad at fnal.gov Wed Mar 24 10:09:59 2010 From: crawdad at fnal.gov (Matt Crawford) Date: Wed, 24 Mar 2010 09:09:59 -0500 Subject: Question regarding common modulus on elliptic curve cryptosystems In-Reply-To: <4BA68BDE.3010007@pentatek.com> References: <4BA68BDE.3010007@pentatek.com> Message-ID: On Mar 21, 2010, at 4:13 PM, Sergio Lerner wrote: > I looking for a public-key cryptosystem that allows commutation of the operations of encription/decryption for different users keys > ( Ek(Es(m)) = Es(Ek(m)) ). > I haven't found a simple cryptosystem in Zp or Z/nZ. > > I think the solution may be something like the RSA analogs in elliptic curves. Maybe a scheme that allows the use of a common modulus for all users (RSA does not). If your application can work with a trusted authority generating all the keypairs, and you sacrifice the use of short public exponents *and* sacrifice the possession of the factors of the modulus by the key owners, making them do more work on decryption, I think you can have what you asked for. But that's a lot of ifs. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From rpaulo at gmail.com Wed Mar 24 15:14:55 2010 From: rpaulo at gmail.com (Rui Paulo) Date: Wed, 24 Mar 2010 19:14:55 +0000 Subject: Law Enforcement Appliance Subverts SSL Message-ID: <4B0F790D-5073-46F2-8CF0-70E059246765@gmail.com> http://www.wired.com/threatlevel/2010/03/packet-forensics/ "At a recent wiretapping convention however, security researcher Chris Soghoian discovered that a small company was marketing internet spying boxes to the feds designed to intercept those communications, without breaking the encryption, by using forged security certificates, instead of the real ones that websites use to verify secure connections. To use the appliance, the government would need to acquire a forged certificate from any one of more than 100 trusted Certificate Authorities." -- Rui Paulo --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From muir.james.a at gmail.com Wed Mar 24 15:19:58 2010 From: muir.james.a at gmail.com (James Muir) Date: Wed, 24 Mar 2010 15:19:58 -0400 Subject: copy of "On the generation of DSS one-time keys"? Message-ID: <4BAA65DE.6050808@gmail.com> Daniel Bleichenbacher presented an implementation attack against DSA in 2001 titled "On the generation of DSS one-time keys". I think it made the rounds as a preprint, but I don't know if it was ever officially published. It's cited frequently (e.g. in the SEC1 doc http://www.secg.org/download/aid-780/sec1-v2.pdf), but I cannot seem to locate a copy. Can anyone point me to a copy of this preprint? -James -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From jamesd at echeque.com Wed Mar 24 18:31:36 2010 From: jamesd at echeque.com (James A. Donald) Date: Thu, 25 Mar 2010 08:31:36 +1000 Subject: Question regarding common modulus on elliptic curve cryptosystems In-Reply-To: <4BA76F1B.4090909@pentatek.com> References: <4BA68BDE.3010007@pentatek.com> <4BA76F1B.4090909@pentatek.com> Message-ID: <4BAA92C8.4070709@echeque.com> On 2010-03-22 11:22 PM, Sergio Lerner wrote: > Commutativity is a beautiful and powerful property. See "On the power > of Commutativity in Cryptography" by Adi Shamir. > Semantic security is great and has given a new provable sense of > security, but commutative building blocks can be combined to build the > strangest protocols without going into deep mathematics, are better > suited for teaching crypto and for high-level protocol design. They > are like the "Lego" blocks of cryptography! > > Now I'm working on an new untraceable e-cash protocol which has some > additional properties. And I'm searching for a secure commutable > signing primitive. The most powerful primitive, from which all manner of weird and wonderful protocols can be concocted, are gap diffie helman groups. Read Alexandra Boldyreva "Threshold Signatures, Multisignatures, and Blind Signatures based on Gap-Diffie-Helman Group Signatures. I am not sure what you want to do with commutativity, but suppose that you want a coin that needs to be signed by two parties in either order to be valid. Suppose we consider call the operation that combines two points on an elliptic curve to be generate a third point multiplication and division, so that we use the familiar notation of exponentiation, thereby describing elliptic point crypto systems in the same notation as prime number crypto systems (a notation I think confusing, but everyone else uses it) Suppose everyone uses the same Gap Diffie Helman group, and the same generator g. A valid unblinded coin is the pair {u, (u^(b*c)}, yielding a valid DDH tuple {g, g^(b*c), u, u^(b*c)}, where u is some special format (not a random number) Repeating in slightly different words. A valid unblinded coin is a coin that with the joint public key of Bob and Carol yields a valid DDH tuple, in which the third element of the tuple has some special form. Edward wants Bob and Carol to give him a blinded coin. He already knows some other valid coin, {w, w^(b*c)). He generates a point u that satifies the special properties for a valid coin, and a random number x. He asks Bob and Carol to sign u*(w^(-x)), giving him a blinded coin, which he unblinds. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jon at callas.org Wed Mar 24 18:36:48 2010 From: jon at callas.org (Jon Callas) Date: Wed, 24 Mar 2010 15:36:48 -0700 Subject: "Against Rekeying" In-Reply-To: <7E9DC0BD-6F89-4729-8970-298F18D30C95@st.cs.uni-sb.de> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <881FA93B-5C9C-44D3-9869-2D69B2D93BDE@callas.org> <7E9DC0BD-6F89-4729-8970-298F18D30C95@st.cs.uni-sb.de> Message-ID: <9C5BEE62-A02D-44C5-B25B-6AA8C7AD1648@callas.org> On Mar 24, 2010, at 2:07 AM, Stephan Neuhaus wrote: > > On Mar 23, 2010, at 22:42, Jon Callas wrote: > >> If you need to rekey, tear down the SSL connection and make a new one. There should be a higher level construct in the application that abstracts the two connections into one session. > > ... which will have its own subtleties and hence probability of failure. Exactly, but they're at the proper place in the system. That's what layering is all about. I'm not suggesting that there's a perfect solution, or even a good one. There are times when a designer has a responsibility to make a decision and times when a designer has a responsibility *not* to make a decision. In this particular case, rekeying introduced the most serious problem we've ever seen in a protocol like that. Rekeying itself has always been a bit dodgy. If you're rekeying because you are worried about the strength of the key (e.g. you're using DES), picking a better key is a better answer (use AES instead). The most compelling reason to rekey is not because of the key, but because of the data size. For ciphers that have a 64-bit block size, rekeying because you've sent 2^32 blocks is a much better reason to rekey. But -- an even better solution is to use a cipher with a bigger block size. Like AES. Or Camillia. Or Twofish. Or Threefish (which has a 512-bit block size in its main version). It's far more reasonable to rekey because you encrypted 32G of data than because you are worried about the key. However, once you've graduated up to ciphers that have at least 128-bits of key and at least 128-bits of block size, the security considerations shift dramatically. I will ask explicitly the question I handwaved before: What makes you think that the chance there is a bug in your protocol is less than 2^-128? Or if you don't like that question -- I am the one who brought up birthday attacks -- What makes you think the chance of a bug is less than 2^-64? I believe that it's best to stop worrying about the core cryptographic components and worry about the protocol and its use within a stack of related things. I've done encrypted file managers like what I alluded to, and it's so easy to get rekeying active files right, you don't have to worry. Just pull a new bulk key from the PRNG every time you write a file. Poof, you're done. For inactive files, rekeying them is isomorphic to writing a garbage collector. Garbage collectors are hard to get right. We designed, but never built an automatic rekeying system. The added security wasn't worth the trouble. Getting back to your point, yes, you're right, but if rekeying is just opening a new network connection, or rewriting a file, it's easy to understand and get right. Rekeying makes sense when you (1) don't want to create a new context (because that automatically rekeys) and (2) don't like your crypto parameters (key, data length, etc). I hesitate to say that it never happens, but I think that coming up with a compelling use case where rekeying makes more sense than tearing down and recreating the context is a great exercise. Inconvenient use cases, sure. Compelling, that's hard. Jon --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From jamesd at echeque.com Wed Mar 24 18:37:05 2010 From: jamesd at echeque.com (James A. Donald) Date: Thu, 25 Mar 2010 08:37:05 +1000 Subject: Question regarding common modulus on elliptic curve cryptosystems AND E-CASH In-Reply-To: <4BA7881C.8090704@pentatek.com> References: <4BA68BDE.3010007@pentatek.com> <4BA76F1B.4090909@pentatek.com> <4BA7881C.8090704@pentatek.com> Message-ID: <4BAA9411.5070303@echeque.com> On 2010-03-23 1:09 AM, Sergio Lerner wrote: > I've read some papers, not that much. But I don't mind reinventing the > wheel, as long as the new protocol is simpler to explain. > Reading the literature, I couldn't find a e-cash protocol which : > > - Hides the destination / source of payments. > - Hides the amount of money transferred. > - Hides the account balance of each person from the bank. > - Allows off-line payments. > - Avoids giving the same "bill" to two different people by design. > This means that the protocol does not need to detect the use of cloned > "bills". > - Gives each person a cryptographic proof of owning the money they > have in case of dispute. > > I someone points me out a protocol that manages to fulfill this > requirements, I'd be delighted. > I think I can do it with a commutative signing primitive, and a > special zero-proof of knowledge. Gap Diffie Helman gives you a commutative signing primitive, and a zero-proof of knowledge. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From ji at tla.org Wed Mar 24 19:58:16 2010 From: ji at tla.org (John Ioannidis) Date: Wed, 24 Mar 2010 19:58:16 -0400 Subject: "Against Rekeying" In-Reply-To: <881FA93B-5C9C-44D3-9869-2D69B2D93BDE@callas.org> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <881FA93B-5C9C-44D3-9869-2D69B2D93BDE@callas.org> Message-ID: <4BAAA718.6000105@tla.org> I think the problem is more marketing and less technology. Some marketoid somewhere decided to say that their product supports rekeying (they usually call it "key agility"). Probably because they read somewhere that you should change your password frequently (another misconception, but that's for another show). Also, there's a big difference between rekeying communications protocols and rekeying for stored data. Again, the marketoids don't understand this. When I was working for a startup that was making a system which included an encrypted file system, people kept asking us about rekeying, because "everybody has it". /ji --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From eugen at leitl.org Thu Mar 25 08:27:36 2010 From: eugen at leitl.org (Eugen Leitl) Date: Thu, 25 Mar 2010 13:27:36 +0100 Subject: [vserver] Bought an entropykey - very happy Message-ID: <20100325122736.GA1964@leitl.org> From: coderman Date: Wed, 24 Mar 2010 10:50:33 -0700 To: Morlock Elloi Cc: cypherpunks at al-qaeda.net Subject: Re: [vserver] Bought an entropykey - very happy On Wed, Mar 24, 2010 at 8:43 AM, Morlock Elloi wrote: > While avalanche noise (hoping it doesn't start to tunnel - that current must be actively controlled as each junction is different) is a good source of randomness (up to megabits / sec / junction), "encrypting" it just means masking possible low entropy. I'd prefer to see raw conditoned stream than "encrypted" one (even web content looks high-entropy to Diehard when encrypted). >... i have loved the padlock engines on via cores since they hit the market in C5XL form with a single hw generator available via XSTORE. unlike many designs this free wheeling resource can provide a torrent of entropy sufficient to sate even the most gregarious consumption. as mentioned above, you need a fast user space entropy daemon sanity checking the raw, (probably) biased stream coming from hardware but it is still good practice to digest this entropy to obscure any potential generator state/bias heading into the host entropy pool. that is to say, of the two common modes for utilizing hw entropy: a. conservatively sample from a whitened, string filtered entropy source for a low rate of high quality output (see xstore config words) b. ramp un-whitened, un-filtered source(s) to maximum rate and AES/SHA mix for high throughput, high quality output while irreversibly masking generator bias/state present in the raw source stream. the latter is more effective in practice and capable of generation rates > 20Mbps with full FIPS sanity checks. the former tops out around 1Mbps or less with more transient latency spikes on read (when successive attempts to read fail to pass whiten+strfilter). note that padlock engine supports SHA and AES on die as well making these easy and fast to apply to generator output. if you are still concerned a more conservative configuration would estimate entropy density while feeding from raw input stream and add encrypted/digested product to the host entropy pool with the specified entropy density estimate adjusted downward to your requirements. (most OS'es support this) ---------- -- Eugen* Leitl leitl http://leitl.org ______________________________________________________________ ICBM: 48.07100, 11.36820 http://www.ativel.com http://postbiota.org 8B29F6BE: 099D 78BA 2FD3 B014 B08A 7779 75B0 2443 8B29 F6BE --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From dave at davekleiman.com Thu Mar 25 08:05:26 2010 From: dave at davekleiman.com (Dave Kleiman) Date: Thu, 25 Mar 2010 07:05:26 -0500 Subject: New Research Suggests That Governments May Fake SSL Certificates Message-ID: <41A9E8A6808A4D498A4757A540FFF51F030B9E8595@MBX02.exg5.exghost.com> March 24th, 2010 New Research Suggests That Governments May Fake SSL Certificates Technical Analysis by Seth Schoen http://www.eff.org/deeplinks/2010/03/researchers-reveal-likelihood-governments-fake-ssl ""Today two computer security researchers, Christopher Soghoian and Sid Stamm, released a draft of a forthcoming research paper in which theypresent evidence that certificate authorities (CAs) may be cooperating with government agencies to help them spy undetected on "secure" encrypted communications. (EFF sometimes advises Soghoian on responsible disclosure issues, including for this paper.) More details and reporting are available at Wired today. The draft paper includes marketing materials from Packet Forensics, an Arizona company, which suggests that government "users have the ability to import a copy of any legitimate keys they obtain (potentially by court order)" into Packet Forensics products in order to impersonate sites and trick users into "a false sense of security afforded by web, e-mail, or VoIP encryption". This would allow those governments to routinely bypass encryption without breaking it."". ""Soghoian and Stamm also observe that browsers trust huge numbers of CAs ? and all of those organizations are trusted completely, so that the validity of any entity they approve is accepted without question. Every organization on a browser's trusted list has the power to certify sites all around the world. Existing browsers do not consider whether a certificate was signed by a different CA than before; a laptop that has seen Gmail's site certified by a subsidiary of U.S.-based VeriSign thousands of times would raise no alarm if Gmail suddenly appeared to present a different key apparently certified by an authority in Poland, the United Arab Emirates, Turkey, or Brazil. Yet such a change would be an indication that the user's encrypted HTTP traffic was being intercepted."" Paper: http://files.cloudprivacy.net/ssl-mitm.pdf Respectfully, Dave Kleiman - http://www.ComputerForensicExaminer.com - http://www.DigitalForensicExpert.com 4371 Northlake Blvd #314 Palm Beach Gardens, FL 33410 561.310.8801 From dan at geer.org Thu Mar 25 08:58:33 2010 From: dan at geer.org (dan at geer.org) Date: Thu, 25 Mar 2010 08:58:33 -0400 Subject: Law Enforcement Appliance Subverts SSL In-Reply-To: Your message of "Wed, 24 Mar 2010 19:14:55 -0000." <4B0F790D-5073-46F2-8CF0-70E059246765@gmail.com> Message-ID: <20100325125833.E459533D3B@absinthe.tinho.net> Rui Paulo writes: -+--------------- | http://www.wired.com/threatlevel/2010/03/packet-forensics/ | | "At a recent wiretapping convention however, security researcher Chris = | Soghoian discovered that a small company was marketing internet spying = | boxes to the feds designed to intercept those communications, without = | breaking the encryption, by using forged security certificates, instead = | of the real ones that websites use to verify secure connections. To use = | the appliance, the government would need to acquire a forged certificate = | from any one of more than 100 trusted Certificate Authorities." | I rather like Cormac Herley's paper: http://preview.tinyurl.com/yko7lhg So Long, And No Thanks for the Externalities: The Rational Rejection of Security Advice by Users which I cite here for this line: It is hard to blame users for not being interested in SSL and certificates when (as far as we can determine) 100% of all certificate errors seen by users are false positives. --dan --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pmetzger at cis.upenn.edu Thu Mar 25 09:00:11 2010 From: pmetzger at cis.upenn.edu (Perry E. Metzger) Date: Thu, 25 Mar 2010 09:00:11 -0400 Subject: Blog post from Matt Blaze about Soghoian & Stamm paper Message-ID: <87zl1wlfok.fsf@snark.cb.piermont.com> Matt has an interesting blog post up about the Soghoian & Stamm SSL interception paper: http://www.crypto.com/blog/spycerts -- Perry E. Metzger pmetzger at cis.upenn.edu Department of Computer and Information Science, University of Pennsylvania --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From ben at links.org Thu Mar 25 09:24:16 2010 From: ben at links.org (Ben Laurie) Date: Thu, 25 Mar 2010 13:24:16 +0000 Subject: "Against Rekeying" In-Reply-To: <874ok6m8dj.fsf@mocca.josefsson.org> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <874ok6m8dj.fsf@mocca.josefsson.org> Message-ID: <4BAB6400.3060706@links.org> On 24/03/2010 08:28, Simon Josefsson wrote: > "Perry E. Metzger" writes: > >> Ekr has an interesting blog post up on the question of whether protocol >> support for periodic rekeying is a good or a bad thing: >> >> http://www.educatedguesswork.org/2010/03/against_rekeying.html >> >> I'd be interested in hearing what people think on the topic. I'm a bit >> skeptical of his position, partially because I think we have too little >> experience with real world attacks on cryptographic protocols, but I'm >> fairly open-minded at this point. > > One situation where rekeying appears to me not only useful but actually > essential is when you re-authenticate in the secure channel. > > TLS renegotiation is used for re-authentication, for example, when you > go from no user authentication to user authenticated, or go from user X > authenticated to user Y authenticated. This is easy to do with TLS > renegotiation: just renegotiate with a different client certificate. > > I would feel uncomfortable using the same encryption keys that were > negotiated by an anonymous user (or another user X) before me when I'm > authentication as user Y, and user Y is planning to send a considerably > amount of traffic that user Y wants to be protected. Trusting the > encryption keys negotiated by user X doesn't seem prudent to me. > Essentially, I want encryption keys to always be bound to > authentication. Note, however, that one of the reasons the TLS renegotiation attack was so bad in combination with HTTP was that reauthentication did not result in use of the new channel to re-send the command that had resulted in a need for reauthentication. This command could have come from the attacker, but the reauthentication would still be used to "authenticate" it. In other words, designing composable secure protocols is hard. And TLS isn't one. Or maybe it is, now that the channels before and after rekeying are bound together (which would seem to invalidate your argument above). Cheers, Ben. -- http://www.apache-ssl.org/ben.html http://www.links.org/ "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert Woodruff --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at sun.com Thu Mar 25 12:07:55 2010 From: Nicolas.Williams at sun.com (Nicolas Williams) Date: Thu, 25 Mar 2010 11:07:55 -0500 Subject: "Against Rekeying" In-Reply-To: <4BAB6400.3060706@links.org> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <874ok6m8dj.fsf@mocca.josefsson.org> <4BAB6400.3060706@links.org> Message-ID: <20100325160755.GF21244@Sun.COM> On Thu, Mar 25, 2010 at 01:24:16PM +0000, Ben Laurie wrote: > Note, however, that one of the reasons the TLS renegotiation attack was > so bad in combination with HTTP was that reauthentication did not result > in use of the new channel to re-send the command that had resulted in a > need for reauthentication. This command could have come from the > attacker, but the reauthentication would still be used to "authenticate" it. It would have sufficed to bind the new and old channels. In fact, that is pretty much the actual solution. > In other words, designing composable secure protocols is hard. And TLS > isn't one. Or maybe it is, now that the channels before and after > rekeying are bound together (which would seem to invalidate your > argument above). Channel binding is one tool that simplifies the design and analysis of composable secure protocols. Had channel binding been used to analyze TLS re-negotiation earlier the bug would have been obvious earlier as well. Proof of that last statement is in the pudding: Martin Rex independently found the bug when reasoning about channel binding to TLS channels in the face of re-negotiation; once he started down that path he found the vulnerability promptly. (There are several champions of the channel binding technique who could and should have noticed the TLS bug earlier. I myself simply took the security of TLS for granted; I should have been more skeptical. I suspect that what happened, ultimately, is that TLS re-negotiation was an afterthought, barely mentioned in the TLS 1.2 RFC and barely used, therefore many experts were simply not conscious enough of its existence to care. Martin was quite conscious of it while also analyzing a tangential channel binding proposal.) Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From hughejp at mac.com Thu Mar 25 13:23:00 2010 From: hughejp at mac.com (james hughes) Date: Thu, 25 Mar 2010 10:23:00 -0700 Subject: "[Not] Against Rekeying" In-Reply-To: <3c7e0a571003231623y6cb2ce3dr986c177396f4dc8c@mail.gmail.com> References: <87sk7rnjxe.fsf@snark.cb.piermont.com> <20100323154238.GH21244@Sun.COM> <20100323195141.GX21244@Sun.COM> <3c7e0a571003231623y6cb2ce3dr986c177396f4dc8c@mail.gmail.com> Message-ID: On Tue, Mar 23, 2010 at 11:21:01AM -0400, Perry E. Metzger wrote: > Ekr has an interesting blog post up on the question of whether protocol > support for periodic rekeying is a good or a bad thing: > > http://www.educatedguesswork.org/2010/03/against_rekeying.html On Mar 23, 2010, at 4:23 PM, Adam Back wrote: > In anon-ip (a zero-knowledge systems internal project) and cebolla [1] > we provided forward-secrecy (aka backward security) using symmetric > re-keying (key replaced by hash of previous key). (Backward and > forward security as defined by Ross Anderson in [2]). The paper on Cebolla[4] states that "Trust in symmetric keys diminishes the longer they are used in the wild. Key rotation, or re-keying, must be done at regular interfals to lessen the success attackers can have at crypt-anayzing the keys". This is exactly the kind of justification that the Dkr post and most of the comments agree is flawed. It goes on to state what was said about new keys being derived from old keys. [4] http://www.cypherspace.org/cebolla/cebolla.pdf Hmm. Interesting. Learn one key, have them all for the future. Wow. Yes, that is Ross' definition of backward security, and clearly does not meet Ross' definition of forward security. In reading the paper, it seems like this system is: Crack one key, you're in forever. A government's dream for an anonymity service. Ross' definitions for, backwards, forwards makes sense from a terminology point of view, but IMHO without both, it is not secure. Sure one can talk about attack scenarios, and that just proves the tautology that we don't know what we don't know (or don't know what has not been invented yet). There is no excuse to bad crypto hygiene. I don't know why someone would build a system with K_i+1 = h(K_i) when there are so many good algorithms out there. > But we did not try to do forward security in the sense of trying to > recover security in the event someone temporarily gained keys. If > someone has compromised your system badly enough that they can read > keys, they can install a backdoor. I agree with the Ekr posting, but not the characterization above. The Ekr posting says "[rekey for] Damage limitation If a key is disclosed" and "This isn't totally crazy". The statement of fact is that if a key is compromised, a rekey limits the scope of the compromise. The Ekr posting said nothing about how the key was disclosed. Yes, if you have root on the machine an have mounted an active attack, all bets are off, but there are other ways for key disclosure to happen (as was discussed in the Ekr posting). For example a cold boot attack [3] can be used to recover a communications session key (instead of a disk key). If that key has been used for a particularly long time, and if one assumed that the attacker had the opportunity to record all the ciphertext, then one must expect that all of that information can now be read. [3] http://en.wikipedia.org/wiki/Cold_boot_attack [The comments about breaking keys is deleted. I agree with the original posting and everyone else that changing a key OF A MODERN CIPHER to eliminate algorithm weaknesses is not a valuable reason to rekey.] On Mar 23, 2010, at 2:42 PM, Jon Callas wrote: > If you need to rekey, tear down the SSL connection and make a new one. There should be a higher level construct in the application that abstracts the two connections into one session. I agree (but as a nit, we can reverse the order. Create a completely new session and just move the traffic to the new connection.) Limiting the scope of a key compromise is the only justification I can see for rekey. That said, limiting the scope of the information available because of a key compromise is still a very important consideration. Jim --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From leichter at lrw.com Thu Mar 25 21:42:36 2010 From: leichter at lrw.com (Jerry Leichter) Date: Thu, 25 Mar 2010 21:42:36 -0400 Subject: New Research Suggests That Governments May Fake SSL Certificates In-Reply-To: <41A9E8A6808A4D498A4757A540FFF51F030B9E8595@MBX02.exg5.exghost.com> References: <41A9E8A6808A4D498A4757A540FFF51F030B9E8595@MBX02.exg5.exghost.com> Message-ID: <9AC184DB-E7A0-4DB8-A837-FB53C702635F@lrw.com> On Mar 25, 2010, at 8:05 AM, Dave Kleiman wrote: > March 24th, 2010 New Research Suggests That Governments May Fake SSL > Certificates > Technical Analysis by Seth Schoen http://www.eff.org/deeplinks/2010/03/researchers-reveal-likelihood-governments-fake-ssl > > ""Today two computer security researchers, Christopher Soghoian and > Sid Stamm, released a draft of a forthcoming research paper in which > theypresent evidence that certificate authorities (CAs) may be > cooperating with government agencies to help them spy undetected on > "secure" encrypted communications.... While the paper provides a nice analysis and description of the situation, what surprises me most about it is ... that anyone was surprised. Hardware to support man-in-the-middle splicing of HTTPS sessions has been available in the marketplace for several years. They are sold by companies like Bluecoat who build appliances to monitor incoming and outgoing traffic at the interconnection points between corporate networks and the greater Internet. They're sold as means to monitor and control what sites can be accessed (they block things like gambling sites, pornography - whatever the corporation doesn't want its employees browsing from work) and also inspect the data for auditing/information leakage control purposes. In the corporate environment, where desktops/laptops are managed, the way such a device is given the ability to do MitM attacks is straightforward: The corporation simply pushes a new root CA - for a CA that actually lives inside the intercept device - into the browser's pool. The device can then generate and sign any certs it needs to to wedge into any HTTPS session invisibly. Even when the corporation allows personal machines onto the network, it will often require users to accept a corporate CA for access to internal sites. Of course, since browsers only have one pool of CA's, once you've accepted that CA, you've accepted invisible MitM attacks by the monitoring device. Since the techniques and hardware for doing this has been around for a while, it should come as no surprise that someone would notice that governments are another good market - in fact, one that tends to be fairly price-insensitive. It's distressing how much government intrusion technology is basically relabeled corporate security/ compliance technology. Governments may or may not be in a position to force CA's onto a machine, so it would be natural for them to compel existing CA's, as the paper rightly points out. -- Jerry --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Fri Mar 26 10:22:06 2010 From: perry at piermont.com (Perry E. Metzger) Date: Fri, 26 Mar 2010 10:22:06 -0400 Subject: "Against Rekeying" Message-ID: <87d3yr9n8x.fsf@snark.cb.piermont.com> Peter Gutmann has been having some trouble with his email and asked me to manually forward this to the list. If you reply, don't credit me with the text, it is his. >From pgut001 Thu Mar 25 17:29:06 2010 To: frantz at pwpconsult.com, perry at piermont.com Subject: Re: "Against Rekeying" Cc: cryptography at metzdowd.com Bill Frantz writes: >Eric didn't mention it in his blog post, but he has been deeply involved in >cleaning up the mess left by a protocol error in in SSLv3 and subsequent TLS >versions. This error was in the portion of the protocols which supported >rekeying and created a vulnerability that affected all users of those >protocols, whether they used the rekeying part or not. I missed that in his blog post as well. An equally big one is the SSHv2 rekeying fiasco, where for a long time an attempt to rekey across two different implementations typically meant "drop the connection", and it still does for the dozens(?) of SSH implementations outside the mainstream of OpenSSH, Putty, ssh.com and a few others, because the procedure is so complex and ambiguous that only a few implementations get it right (at one point the ssh.com and OpenSSH implementations would detect each other and turn off rekeying because of this, for example). Unfortunately in SSH you're not even allowed to ignore rekey requests like you can in TLS, so you're damned if you do and damned if you don't [0]. A more general concern though is that the large amount of extra complexity caused by the rekeying (you're juggling a renegotiate of a new set of security parameters while simultaneously applying the current set of security parameters) provides a very large amount of attack surface - and in SSH's case failure modes - that just isn't justified by the hypothetical threats that rekeying is meant to address. Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Fri Mar 26 10:23:57 2010 From: perry at piermont.com (Perry E. Metzger) Date: Fri, 26 Mar 2010 10:23:57 -0400 Subject: "Against Rekeying" Message-ID: <878w9f9n5u.fsf@snark.cb.piermont.com> Also manually forwarded on behalf of Peter Gutmann. As before, if you reply, don't credit me with the text, it is his. >From pgut001 Fri Mar 26 14:44:54 2010 To: ben at links.org, Nicolas.Williams at sun.com Subject: Re: "Against Rekeying" Cc: cryptography at metzdowd.com, perry at piermont.com, simon at josefsson.org In-Reply-To: <20100325160755.GF21244 at Sun.COM> Nicolas Williams writes: >I suspect that what happened, ultimately, is that TLS re-negotiation was an >afterthought, barely mentioned in the TLS 1.2 RFC and barely used, therefore >many experts were simply not conscious enough of its existence to care. I think that was a significant problem with noticing this, that many implementors may have looked at it, decided it was a nightmare to implement, served no really obvious purpose once 40-bit keys had gone the way of the dodo, and was a significant source of future problems (see my previous message), and so never bothered with it. As a result it never got much attention, as do significant chunks of other security protocols. I think the real skill in security protocol implementation isn't knowing what to implement, but knowing what not to implement (I've had an attack-surface- reduced SSH draft in preparation for awhile now, I really must get back to the some time). One nice thing about being the author of a crypto toolkit is that you can experiment with this, either skipping features or turning existing features off in new releases, to see if anyone notices. If no-one does, you leave them turned off. You can turn off an awful lot of security-protocol "features" before people start to notice, leading me to believe that a scary portion of many protocols actually consist of attack surface and not features. Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Fri Mar 26 12:06:23 2010 From: perry at piermont.com (Perry E. Metzger) Date: Fri, 26 Mar 2010 12:06:23 -0400 Subject: high speed password cracking on GPUs Message-ID: <874ok39if4.fsf@snark.cb.piermont.com> This is from ten days ago but I just ran across it. Nothing very deep -- just higher speed brute force attacks via GPUs. http://www.net-security.org/secworld.php?id=9021 -- Perry E. Metzger perry at piermont.com --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at Sun.COM Fri Mar 26 13:02:35 2010 From: Nicolas.Williams at Sun.COM (Nicolas Williams) Date: Fri, 26 Mar 2010 12:02:35 -0500 Subject: "Against Rekeying" In-Reply-To: <87d3yr9n8x.fsf@snark.cb.piermont.com> References: <87d3yr9n8x.fsf@snark.cb.piermont.com> Message-ID: <20100326170235.GC21244@Sun.COM> On Fri, Mar 26, 2010 at 10:22:06AM -0400, Peter Gutmann wrote: > I missed that in his blog post as well. An equally big one is the SSHv2 > rekeying fiasco, where for a long time an attempt to rekey across two > different implementations typically meant "drop the connection", and it still > does for the dozens(?) of SSH implementations outside the mainstream of > OpenSSH, Putty, ssh.com and a few others, because the procedure is so complex > and ambiguous that only a few implementations get it right (at one point the > ssh.com and OpenSSH implementations would detect each other and turn off > rekeying because of this, for example). Unfortunately in SSH you're not even > allowed to ignore rekey requests like you can in TLS, so you're damned if you > do and damned if you don't [0]. I made much the same point, but just so we're clear, SSHv2 re-keying has been interoperating widely since 2005. (I was at Connectathon, and while the details of Cthon testing are proprietary, I can generalize and tell you that interop in this area was very good.) Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From pgut001.reflector at gmail.com Fri Mar 26 19:31:45 2010 From: pgut001.reflector at gmail.com (Peter Gutmann (alt)) Date: Sat, 27 Mar 2010 12:31:45 +1300 Subject: "Against Rekeying" Message-ID: <44da907e1003261631g69677f05tbadca9729d6db3ad@mail.gmail.com> Nicolas Williams writes: >I made much the same point, but just so we're clear, SSHv2 re-keying has been >interoperating widely since 2005. (I was at Connectathon, and while the >details of Cthon testing are proprietary, I can generalize and tell you that >interop in this area was very good.) Whose SSH rekeying though? I follow the support forums for a range of non- mainstream (i.e. not the usual suspects of OpenSSH, ssh.com, or Putty) SSH implementations and "why does my connection die after an hour with [decryption error/invalid packet/unrecognised message type/whatever]" (all signs of rekeying issues) is still pretty much an FAQ across them at the current time. (There's also the mass of ancient copies of the usual suspects, principally the ssh.com implementation dating back up to ten years, baked into networking devices and whatnot that will never be updated, or at least if significant security holes present in the older versions haven't convinced the vendors using them to update them then I don't think the fact that they drop the connection after an hour will). Peter. --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From Nicolas.Williams at sun.com Fri Mar 26 19:44:59 2010 From: Nicolas.Williams at sun.com (Nicolas Williams) Date: Fri, 26 Mar 2010 18:44:59 -0500 Subject: "Against Rekeying" In-Reply-To: <44da907e1003261631g69677f05tbadca9729d6db3ad@mail.gmail.com> References: <44da907e1003261631g69677f05tbadca9729d6db3ad@mail.gmail.com> Message-ID: <20100326234459.GJ21244@Sun.COM> On Sat, Mar 27, 2010 at 12:31:45PM +1300, Peter Gutmann (alt) wrote: > Nicolas Williams writes: > > >I made much the same point, but just so we're clear, SSHv2 re-keying has been > >interoperating widely since 2005. (I was at Connectathon, and while the > >details of Cthon testing are proprietary, I can generalize and tell you that > >interop in this area was very good.) > > Whose SSH rekeying though? I follow the support forums for a range of non- > mainstream (i.e. not the usual suspects of OpenSSH, ssh.com, or Putty) SSH > implementations and "why does my connection die after an hour with [decryption > error/invalid packet/unrecognised message type/whatever]" (all signs of > rekeying issues) is still pretty much an FAQ across them at the current time. Several key ones, including SunSSH. I'd have to go ask permission in order to disclose, since Connectathon results are private, IIRC. Also, it's been five years, so some of the information has fallen off my cache. Nico -- --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com From perry at piermont.com Mon Mar 29 23:31:39 2010 From: perry at piermont.com (Perry E. Metzger) Date: Mon, 29 Mar 2010 23:31:39 -0400 Subject: [OpenSSL] OpenSSL 1.0.0 released Message-ID: <87d3ymcwo4.fsf@snark.cb.piermont.com> Forwarded: Date: Mon, 29 Mar 2010 16:52:21 +0200 From: OpenSSL Subject: OpenSSL 1.0.0 released Message-ID: <20100329145221.GA93806 at openssl.org> OpenSSL version 1.0.0 released ============================== OpenSSL - The Open Source toolkit for SSL/TLS http://www.openssl.org/ The OpenSSL project team is pleased to announce the release of version 1.0.0 of our open source toolkit for SSL/TLS. This new OpenSSL version is a major release and incorporates many new features as well as major fixes compared to 0.9.8n. For a complete list of changes, please see http://www.openssl.org/source/exp/CHANGES . The most significant changes are: o RFC3280 path validation: sufficient to process PKITS tests. o Integrated support for PVK files and keyblobs. o Change default private key format to PKCS#8. o CMS support: able to process all examples in RFC4134 o Streaming ASN1 encode support for PKCS#7 and CMS. o Multiple signer and signer add support for PKCS#7 and CMS. o ASN1 printing support. o Whirlpool hash algorithm added. o RFC3161 time stamp support. o New generalised public key API supporting ENGINE based algorithms. o New generalised public key API utilities. o New ENGINE supporting GOST algorithms. o SSL/TLS GOST ciphersuite support. o PKCS#7 and CMS GOST support. o RFC4279 PSK ciphersuite support. o Supported points format extension for ECC ciphersuites. o ecdsa-with-SHA224/256/384/512 signature types. o dsa-with-SHA224 and dsa-with-SHA256 signature types. o Opaque PRF Input TLS extension support. o Updated time routines to avoid OS limitations. We consider OpenSSL 1.0.0 to be the best version of OpenSSL available and we strongly recommend that users of older versions upgrade as soon as possible. OpenSSL 1.0.0 is available for download via HTTP and FTP from the following master locations (you can find the various FTP mirrors under http://www.openssl.org/source/mirror.html): * http://www.openssl.org/source/ * ftp://ftp.openssl.org/source/ The distribution file name is: o openssl-1.0.0.tar.gz Size: 4010166 MD5 checksum: 89eaa86e25b2845f920ec00ae4c864ed SHA1 checksum: 3f800ea9fa3da1c0f576d689be7dca3d55a4cb62 The checksums were calculated using the following commands: openssl md5 openssl-1.0.0.tar.gz openssl sha1 openssl-1.0.0.tar.gz Yours, The OpenSSL Project Team... Mark J. Cox Nils Larsch Ulf M?ller Ralf S. Engelschall Ben Laurie Andy Polyakov Dr. Stephen Henson Richard Levitte Geoff Thorpe Lutz J?nicke Bodo M?ller --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com