<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[[SecurityRatty] tag: crypto]]></title>
    <link>http://securityratty.com/tag/crypto</link>
    <description></description>
    <pubDate>Tue, 21 Oct 2008 02:48:49 +0000</pubDate>
    <generator>iRatty Engine</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[Cryptzone polishes encryption gem]]></title>
      <link>http://securityratty.com/article/8b2ba77c7f7cec626efce5981c0c3bc1</link>
      <guid>http://securityratty.com/article/8b2ba77c7f7cec626efce5981c0c3bc1</guid>
      <description><![CDATA[Encryption startup Cryptzone has announced an overhaul for its enterprise-friendly crypto suite, Secured...]]></description>
      <content:encoded><![CDATA[Encryption startup Cryptzone has announced an overhaul for its enterprise-friendly crypto suite, Secured eFile.<br style="clear: both;"/>
  <a style='font-size: 10px; color: maroon;' href='http://www.pheedo.com/hostedMorselClick.php?hfmm=v3:a99e11eecf34f15a6abf34c07c5370ca:tEJeVIoYod51W7DDbHMKgeptGwYwX1AAVzQw7huKt7O4Pxmfsu%2FvvEGtvssErDlWSMgDJdE%2Fai1S'><img border='0' title='Add to digg' alt='Add to digg' src='http://www.pheedo.com/images/mm/digg.gif'/></a>
  <a style='font-size: 10px; color: maroon;' href='http://www.pheedo.com/hostedMorselClick.php?hfmm=v3:ce33083c02c64a68a7b7fbdd9964db90:OcYDqP88UQKQLvrnRzXFAvhp9%2BF3eWQfd2KAncuNGxtTF%2FFZ7EWCnlOSxizyVY6yTIFmvqalVe%2FguQ%3D%3D'><img border='0' title='Add to StumbleUpon' alt='Add to StumbleUpon' src='http://www.pheedo.com/images/mm/stumbleit.gif'/></a>
  <a style='font-size: 10px; color: maroon;' href='http://www.pheedo.com/hostedMorselClick.php?hfmm=v3:df1be9fa9317e3fdc89ce18efc9b0044:sNSalGazys2s0PCl1lgUeWnMWDrfeT2%2BNL4QwMmnuDpP2EaN8ruuj1Jqw0PW6Uh%2BFqR9fBZtX8%2Bzgw%3D%3D'><img border='0' title='Add to Twitter' alt='Add to Twitter' src='http://www.pheedo.com/images/mm/twitter.png'/></a>
  <a style='font-size: 10px; color: maroon;' href='http://www.pheedo.com/hostedMorselClick.php?hfmm=v3:6e4bc8a3f5f3fd83a5b9d5c19b7d9e97:YUoXM83kyqX%2BmghXYF%2FSh0Z%2FK62pvAMlhF3PhVOV%2FoJVf6qLkcGp71w8oYX5%2BSgV7Y8DNj3LIlgl4w%3D%3D'><img border='0' title='Add to Slashdot' alt='Add to Slashdot' src='http://www.pheedo.com/images/mm/slashdot.png'/></a>
<br style="clear: both;"/>
<a href="http://www.pheedo.com/click.phdo?s=a525c6ce262a856c0a4c365c20adbc1a&p=1"><img alt="" style="border: 0;" border="0" src="http://www.pheedo.com/img.phdo?s=a525c6ce262a856c0a4c365c20adbc1a&p=1"/></a>
<img src="http://www.pheedo.com/feeds/tracker.php?i=a525c6ce262a856c0a4c365c20adbc1a" style="display: none;" border="0" height="1" width="1" alt=""/>
]]></content:encoded>
      <pubDate>Mon, 01 Dec 2008 02:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/encryption startup cryptzone">encryption startup cryptzone</category>
      <category domain="http://securityratty.com/tag/crypto suite">crypto suite</category>
      <category domain="http://securityratty.com/tag/efile">efile</category>
      <category domain="http://securityratty.com/tag/overhaul">overhaul</category>
      <source url="http://feeds.computerworld.com/click.phdo?i=a525c6ce262a856c0a4c365c20adbc1a">Cryptzone polishes encryption gem</source>
    </item>
    <item>
      <title><![CDATA[Skein and SHA-3 News]]></title>
      <link>http://securityratty.com/article/cc81d2d4853466933826ebdeeef07d52</link>
      <guid>http://securityratty.com/article/cc81d2d4853466933826ebdeeef07d52</guid>
      <description><![CDATA[There are two bugs in the Skein code. They are subtle and esoteric, but they're there. We have revised both the reference and optimized code -- and provided new test vectors -- on the Skein website ....]]></description>
      <content:encoded><![CDATA[<p>There are two bugs in the Skein code.  They are subtle and esoteric, but they're there.  We have revised both the reference and optimized code -- and provided new test vectors -- on the <a href="http://www.schneier.com/skein.html">Skein website</a>.  A <a href="http://www.schneier.com/skein.pdf">revision of the paper</a> -- Version 1.1 -- has new IVs, new test vectors, and also fixes a few typos in the paper.</p>

<blockquote>Errata: Version 1.1 of the paper, reference, and optimized code corrects an error in which the length of the configuration string was passed in as the size of the internal block (256 bits for Skein-256, 512 for Skein-512, and 1024 for Skein-1024), instead of a constant 256 bits for all three sizes.  This error has no cryptographic significance, but affected the test vectors and the initialization values.  The revised code also fixes a bug in the MAC mode key processing.  This bug does not affect the NIST submission in any way.</blockquote>

<p><a href="http://csrc.nist.gov/groups/ST/hash/sha-3/index.html">NIST has received</a> 64 submissions.  (<a href="http://www.cio.com/article/461164/Amateurs_and_Pros_Vie_to_Build_New_Crypto_Standard">This article</a> interviews one of the submitters, who is fifteen.)  Of those, <a href="http://ehash.iaik.tugraz.at/wiki/The_SHA-3_Zoo">28 are public</a> and six have been broken.  NIST is going through the submissions right now, making sure they are complete and proper.  Their goal is to publish the accepted submissions by the end of the month, in advance of the <a href="http://csrc.nist.gov/groups/ST/hash/timeline.html">Third Cryptographic Hash Workshop</a> to be held in Belgium right after <a href="https://www.cosic.esat.kuleuven.be/fse2009/index.shtml">FSE</a> in February.  They expect to quickly make a first cut of algorithms -- hopefully to about a dozen -- and then give the community about a year of cryptanalysis before making a second cut in 2010.</p>

<p>Lastly, <a href="http://www.darkreading.com/blog/archives/2008/11/bending_skein_c.html">this</a> is a really nice article on Skein.</p>

<blockquote>These submissions make some accommodation to the Core 2 processor. They operate in "<a href="http://en.wikipedia.org/wiki/Little_endian" target="new">little-endian</a>" mode (a quirk of the <a href="http://en.wikipedia.org/wiki/X86" target="new">Intel-like processors</a> that reads some bytes in reverse order). They also allow a large file to be broken into chunks to split the work across multiple processors.

<p>However, virtually all of the contest submissions share the performance problem mentioned above. The logic they use won't optimally fit within the constraints of a Intel Core 2 processor. Most will perform as bad or worse than the existing SHA-1 algorithm.</p>

<p>One exception to this is <a href="http://www.schneier.com/skein.html" target="new">Skein</a>, created by several well-known cryptographers and noted pundit <a href="http://www.schneier.com/" target="new">Bruce Schneier</a>. It was designed specifically to exploit all three of the Core 2 execution units and to run at a full 64-bits. This gives it roughly four to 10 times the logic density of competing submissions.</p>

<p>This is what I meant by the <i><a href="http://www.imdb.com/title/tt0133093/" target="new">Matrix</a></i> quote above. They didn't bend the spoon; they bent the crypto algorithm. They moved the logic operations around in a way that wouldn't weaken the crypto, but would strengthen its speed on the Intel Core 2.</p>

<p>In their <a href="http://www.schneier.com/skein.pdf" target="new">paper</a> (PDF), the authors of Skein express surprise that a custom silicon <a href="http://en.wikipedia.org/wiki/Application-specific_integrated_circuit" target="new">ASIC</a> implementation is not any faster than the software implementation. They shouldn't be surprised. Every time you can redefine a problem to run optimally in software, you will reach the same speeds you get with optimized ASIC hardware. The reason software has a reputation of being slow is because people don't redefine the original problem.</blockquote></p>

<p>That's exactly what we were trying to do.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=98JTN"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=98JTN" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=diffN"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=diffN" border="0"></img></a>
</div>]]></content:encoded>
      <pubDate>Wed, 19 Nov 2008 03:14:48 +0000</pubDate>
      <category domain="http://securityratty.com/tag/skein">skein</category>
      <category domain="http://securityratty.com/tag/skein-1024">skein-1024</category>
      <category domain="http://securityratty.com/tag/skein-512">skein-512</category>
      <category domain="http://securityratty.com/tag/skein express surprise">skein express surprise</category>
      <category domain="http://securityratty.com/tag/skein website">skein website</category>
      <category domain="http://securityratty.com/tag/skein code">skein code</category>
      <category domain="http://securityratty.com/tag/submissions share">submissions share</category>
      <category domain="http://securityratty.com/tag/submissions">submissions</category>
      <category domain="http://securityratty.com/tag/code">code</category>
      <source url="http://www.schneier.com/blog/archives/2008/11/skein_and_sha-3.html">Skein and SHA-3 News</source>
    </item>
    <item>
      <title><![CDATA[Credit for Researchers]]></title>
      <link>http://securityratty.com/article/408b969da73a95cd64bb6d0b550aa038</link>
      <guid>http://securityratty.com/article/408b969da73a95cd64bb6d0b550aa038</guid>
      <description><![CDATA[Computer security researchers are much like scientific researchers in several ways. We build on the research of those who come before us, we sometimes rediscover the same things independently, and...]]></description>
      <content:encoded><![CDATA[<p>Computer security researchers are much like scientific researchers in several ways.  We build on the research of those who come before us, we sometimes rediscover the same things independently, and other times we forget where we learned things and sometimes claim them as our own.  We also occasionally take an engineer&#8217;s approach and implement research discovered by others and not credit them as it&#8217;s the implementation into a tool that matters to us.</p>
<p>The latest Microsoft patch <a href="http://www.microsoft.com/technet/security/bulletin/ms08-068.mspx">MS08-68</a> is a great example. It is a problem with NTLM authentication where the attacker can force a client to authenticate to him and the credentials, while not exposed in cleartext, can be relayed to another server or brute forced to obtain the cleartext.  This is a very classic crypto protocol vulnerability.  It&#8217;s not the crypto algorithms that are the problem, but the protocol implementation.</p>
<p>Microsoft recently fixed the problem, perhaps due to the availability of exploit code, the availability of an easy to use Metasploit implementation, or perhaps Microsoft&#8217;s changed tolerance for vulnerabilities. We can sum it up as a change in the threat space that made it worth fixing.  But make no mistake, this is a very old problem.</p>
<p>News reports have been citing Sir Dystic&#8217;s SMBrelay tool, which was published in March, 2001, as the first knowledge of this vulnerability. Eric Shultze who worked at MSRC in 2001 just yesterday is quoted as saying, &#8220;I have been holding my breath since 2001 for this patch.&#8221; Obviously it is a long time coming.  But this wasn&#8217;t the first publication of the problem.  In 2000, one of my collegues on the research team at @stake, Christian Rioux (aka Dildog) published the <a href="http://packetstormsecurity.org/advisories/atstake/A091400-1">telnet NTLM authentication vulnerability</a>.</p>
<p>Rioux&#8217;s advisory has a great description of the credential relay and cracking weaknesses. I have talked to him and he says he discovered these problems independently, but he didn&#8217;t find them first.  Dominique Brezinski published exactly these NTLM vulnerabilities in the SMB protocol in 1996 in a paper titled, &#8220;A Weakness in CIFS Authentication&#8221;.  The earliest reference I can find on the paper on the net is <a href="http://mvb.saic.com/freeware/vmslt97b/security/cifs-mim.txt">here</a>  where it is included in another paper published in 1997.  Such is the ad-hoc world of independent security research of 12 years ago which still continues today.</p>
<p>It seems ridiculous that a field like security research, which is so important to the running of modern society is so ad-hoc.  Shouldn&#8217;t we know who discovered a vulnerability?  Shouldn&#8217;t all researchers and engineers know about it? More importantly if someone implements a tool that takes advantage of a vulnerability shouldn&#8217;t they credit the discoverer?  Don&#8217;t get me wrong.  Implementation takes a lot of work and sometimes makes all the difference in makeing people aware of a security problem.  After all when I was at the L0pht our slogan was, &#8220;Making the theoretical, practical&#8221;. I still think researchers should get credit when credit is due.</p>
<p>The security community has gotten better at documentating our research but I still see instances of independent discovery, misplaced credit, and tools giving no credit to researchers.  I hate to say it but getting a bit more academic is in order.  Credit is the currency of a researcher and placing it well will reward the right people and we will all benefit.</p>
]]></content:encoded>
      <pubDate>Thu, 13 Nov 2008 16:40:18 +0000</pubDate>
      <category domain="http://securityratty.com/tag/security research">security research</category>
      <category domain="http://securityratty.com/tag/research">research</category>
      <category domain="http://securityratty.com/tag/independent security research">independent security research</category>
      <category domain="http://securityratty.com/tag/researchers">researchers</category>
      <category domain="http://securityratty.com/tag/security">security</category>
      <category domain="http://securityratty.com/tag/credit">credit</category>
      <category domain="http://securityratty.com/tag/security community">security community</category>
      <category domain="http://securityratty.com/tag/scientific researchers">scientific researchers</category>
      <category domain="http://securityratty.com/tag/computer security researchers">computer security researchers</category>
      <source url="http://www.veracode.com/blog/2008/11/credit-for-researchers/">Credit for Researchers</source>
    </item>
    <item>
      <title><![CDATA[Amateurs, pros vie to build new crypto standard]]></title>
      <link>http://securityratty.com/article/70517017785b13495a7586c3f913e503</link>
      <guid>http://securityratty.com/article/70517017785b13495a7586c3f913e503</guid>
      <description><![CDATA[Peter Schmidt-Nielsen, 15, spent only a month working on his submission, but he thinks it's &quot;unusual and new.&quot; But he's up against some of the world's most famous...]]></description>
      <content:encoded><![CDATA[Peter Schmidt-Nielsen, 15, spent only a month working on his submission, but he thinks it's "unusual and new." But he's up against some of the world's most famous cryptographers.<br style="clear: both;"/>
    <a style='font-size: 10px; color: maroon;' href='http://www.pheedo.com/hostedMorselClick.php?hfmm=v3:449328c40a01e4c1926952b76a20c96d:TjwMrWYf4S%2BuqJZyapAFNmQO50qVgAs8f%2FlAYun8qcvPC9U92BmRJabt5%2B1TY%2BJGdMoUw6B9Z956'><img border='0' title='Add to digg' alt='Add to digg' src='http://www.pheedo.com/images/mm/digg.gif'/></a>
    <a style='font-size: 10px; color: maroon;' href='http://www.pheedo.com/hostedMorselClick.php?hfmm=v3:324d5852cd54ccfd372eb8063111910a:aYeAQCywe%2Ff2y%2B1HikxQx%2BBuVW0IDEaclT%2FEAvq0fmk9BBR2Gp6CZVa4TsbfhpcxVsrs0%2FCCN38z2A%3D%3D'><img border='0' title='Add to StumbleUpon' alt='Add to StumbleUpon' src='http://www.pheedo.com/images/mm/stumbleit.gif'/></a>
    <a style='font-size: 10px; color: maroon;' href='http://www.pheedo.com/hostedMorselClick.php?hfmm=v3:f6e5bda3c2f327b512164b666de2445f:foQZIHMTvys6CPTKho9vxlRmaL0qqL6tHLAzvxvmnXVIJv2ZlE9DUS66wymJQBV5cK%2FgwOmBl21dpA%3D%3D'><img border='0' title='Add to Twitter' alt='Add to Twitter' src='http://www.pheedo.com/images/mm/twitter.png'/></a>
    <a style='font-size: 10px; color: maroon;' href='http://www.pheedo.com/hostedMorselClick.php?hfmm=v3:50c0602cd32a30b4483a1788333b29a7:wDcT0B5m0VxnZYDAkiGmFpCptS1ARxkB0Wciy0l2UjB0%2FOUpA%2Ben%2Fdi86DwAV5xttUHxCpAKpVySLA%3D%3D'><img border='0' title='Add to Slashdot' alt='Add to Slashdot' src='http://www.pheedo.com/images/mm/slashdot.png'/></a>
<br style="clear: both;"/>      <a href="http://www.pheedo.com/click.phdo?s=b32e285369790c6f7da94fa79c96384a"><img alt="" style="border: 0;" border="0" src="http://www.pheedo.com/img.phdo?s=b32e285369790c6f7da94fa79c96384a"/></a>
  <img src="http://www.pheedo.com/feeds/tracker.php?i=b32e285369790c6f7da94fa79c96384a" style="display: none;" border="0" height="1" width="1" alt=""/>]]></content:encoded>
      <pubDate>Fri, 07 Nov 2008 02:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/famous cryptographers">famous cryptographers</category>
      <category domain="http://securityratty.com/tag/unusual">unusual</category>
      <category domain="http://securityratty.com/tag/month">month</category>
      <category domain="http://securityratty.com/tag/world">world</category>
      <category domain="http://securityratty.com/tag/submission">submission</category>
      <category domain="http://securityratty.com/tag/peter">peter</category>
      <source url="http://feeds.computerworld.com/click.phdo?i=b32e285369790c6f7da94fa79c96384a">Amateurs, pros vie to build new crypto standard</source>
    </item>
    <item>
      <title><![CDATA[Amateurs and pros vie to build new crypto standard]]></title>
      <link>http://securityratty.com/article/e75f1cfa59beab28f563db9fb2cb97f2</link>
      <guid>http://securityratty.com/article/e75f1cfa59beab28f563db9fb2cb97f2</guid>
      <description><![CDATA[Fifteen-year-old Peter Schmidt-Nielsen spent only a month working on his submission, but he thinks he's come up with something &quot;unusual and new.&quot; Never mind that he's up against some of the most...]]></description>
      <content:encoded><![CDATA[Fifteen-year-old Peter Schmidt-Nielsen spent only a month working on his submission, but he thinks he's come up with something "unusual and new." Never mind that he's up against some of the most famous cryptographers in the world.]]></content:encoded>
      <pubDate>Thu, 06 Nov 2008 21:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/famous cryptographers">famous cryptographers</category>
      <category domain="http://securityratty.com/tag/unusual">unusual</category>
      <category domain="http://securityratty.com/tag/month">month</category>
      <category domain="http://securityratty.com/tag/world">world</category>
      <category domain="http://securityratty.com/tag/submission">submission</category>
      <category domain="http://securityratty.com/tag/peter">peter</category>
      <category domain="http://securityratty.com/tag/mind">mind</category>
      <source url="http://www.networkworld.com/news/2008/110708-amateurs-and-pros-vie-to.html?fsrc=rss-security">Amateurs and pros vie to build new crypto standard</source>
    </item>
    <item>
      <title><![CDATA[15 Minutes To Crack Your WPA+TKIP]]></title>
      <link>http://securityratty.com/article/9cf9087dadb06dbed2c7eaaf52bce796</link>
      <guid>http://securityratty.com/article/9cf9087dadb06dbed2c7eaaf52bce796</guid>
      <description><![CDATA[Gone in 900 Seconds, Some Crypto Issues with WPA is the tile of the presentation by Erik Tews scheduled for the sixth annual PacSec conference , November 12 and 13, 2008 at Aoyama Diamond Hall in...]]></description>
      <content:encoded><![CDATA[<B>Gone in 900 Seconds, Some Crypto Issues with WPA</B> is the tile of the presentation by Erik Tews scheduled for <a href="https://pacsec.jp/">the sixth annual PacSec conference</a>, November 12 and 13, 2008 at Aoyama Diamond Hall in Tokyo, Japan.

I'm told that Tews is doing work on WPA+TKIP, a very common and trusted wireless security configuration. Sounds like he's found a way to crack it. This is, it seems, the same Erik Tews described in <a href="http://www.theregister.co.uk/2007/05/15/wep_crack_interview/">this Register article from May, 2007</a>, about his new and speedier WEP crack, entitled "Gone in 120 seconds: cracking Wi-Fi security"... Hmmm. sounds familiar...
<p><a href="http://feedads.googleadservices.com/~a/yW6FNggbv27ZUlPOjIIbnUF30NA/a"><img src="http://feedads.googleadservices.com/~a/yW6FNggbv27ZUlPOjIIbnUF30NA/i" border="0" ismap="true"></img></a></p><img src="http://feedproxy.google.com/~r/RSS/cheap_hack/~4/IG6Loj8hZjc" height="1" width="1"/>]]></content:encoded>
      <pubDate>Wed, 05 Nov 2008 07:56:53 +0000</pubDate>
      <category domain="http://securityratty.com/tag/crack">crack</category>
      <category domain="http://securityratty.com/tag/erik tews">erik tews</category>
      <category domain="http://securityratty.com/tag/tews">tews</category>
      <category domain="http://securityratty.com/tag/speedier wep crack">speedier wep crack</category>
      <category domain="http://securityratty.com/tag/wireless security configuration">wireless security configuration</category>
      <category domain="http://securityratty.com/tag/sounds familiar">sounds familiar</category>
      <category domain="http://securityratty.com/tag/sounds">sounds</category>
      <category domain="http://securityratty.com/tag/aoyama diamond hall">aoyama diamond hall</category>
      <category domain="http://securityratty.com/tag/crypto issues">crypto issues</category>
      <source url="http://feeds.ziffdavisenterprise.com/~r/RSS/cheap_hack/~3/IG6Loj8hZjc/15_minutes_to_crack_your_wpatkip.html">15 Minutes To Crack Your WPA+TKIP</source>
    </item>
    <item>
      <title><![CDATA[The Skein Hash Function]]></title>
      <link>http://securityratty.com/article/c65ce3834e7790e113fa9e1fd1504568</link>
      <guid>http://securityratty.com/article/c65ce3834e7790e113fa9e1fd1504568</guid>
      <description><![CDATA[NIST is holding a competition to replace the SHA family of hash functions, which have been increasingly under attack . (I wrote about an early NIST hash workshop here
Skein is our submission (myself...]]></description>
      <content:encoded><![CDATA[<p>NIST is <a href="http://csrc.nist.gov/groups/ST/hash/sha-3/index.html">holding a competition</a> to replace the SHA family of hash functions, which have been <a href="http://www.schneier.com/blog/archives/2005/02/cryptanalysis_o.html">increasingly under attack</a>.  (I wrote about an early NIST hash workshop <a href="http://www.schneier.com/blog/archives/2005/10/nist_hash_works_1.html">here</a>.)</p>

<p>Skein is our submission (myself and seven others: <a href="http://en.wikipedia.org/wiki/Niels_Ferguson">Niels Ferguson</a>, <a href="http://th.informatik.uni-mannheim.de/People/Lucks/">Stefan Lucks</a>, <a href="http://www.hifn.com/executiveTeam.aspx?id=182">Doug Whiting</a>, <a href="http://www-cse.ucsd.edu/~mihir/">Mihir Bellare</a>, <a href="http://www.cs.washington.edu/homes/yoshi/">Tadayoshi Kohno</a>, <a href="http://www.pgp.com/about_pgp_corporation/management.html">Jon Callas</a>, and Jesse Walker).  <a href="http://www.schneier.com/skein.pdf">Here's</a> the paper:</p>

<blockquote><strong>Executive Summary</strong>

<p>Skein is a new family of cryptographic hash functions.  Its design combines speed, security, simplicity, and a great deal of flexibility in a modular package that is easy to analyze.</p>

<p>Skein is fast.  Skein-512 -- our primary proposal -- hashes data at 6.1 clock cycles per byte on a 64-bit CPU.  This means that on a 3.1 GHz x64 Core 2 Duo CPU, Skein hashes data at 500 MBytes/second per core -- almost twice as fast as SHA-512 and three times faster than SHA-256.  An optional hash-tree mode speeds up parallelizable implementations even more.  Skein is fast for short messages, too; Skein-512 hashes short messages in about 1000 clock cycles.</p>

<p>Skein is secure.  Its conservative design is based on the Threefish block cipher.  Our current best attack on Threefish-512 is on 25 of 72 rounds, for a safety factor of 2.9. For comparison, at a similar stage in the standardization process, the AES encryption algorithm had an attack on 6 of 10 rounds, for a safety factor of only 1.7.  Additionally, Skein has a number of provably secure properties, greatly increasing confidence in the algorithm.</p>

<p>Skein is simple.  Using only three primitive operations, the Skein compression function can be easily understood and remembered.  The rest of the algorithm is a straightforward iteration of this function.</p>

<p>Skein is flexible.  Skein is defined for three different internal state sizes -- 256 bits, 512 bits, and 1024 bits -- and any output size.  This allows Skein to be a drop-in replacement for the entire SHA family of hash functions.  A completely optional and extendable argument system makes Skein an efficient tool to use for a very large number of functions: a PRNG, a stream cipher, a key derivation function, authentication without the overhead of HMAC, and a personalization capability.  All these features can be implemented with very low overhead.  Together with the Threefish large-block cipher at Skein core, this design provides a full set of symmetric cryptographic primitives suitable for most modern applications.</p>

<p>Skein is efficient on a variety of platforms, both hardware and software.  Skein-512 can be implemented in about 200 bytes of state.  Small devices, such as 8-bit smart cards, can implement Skein-256 using about 100 bytes of memory.  Larger devices can implement the larger versions of Skein to achieve faster speeds.</p>

<p>Skein was designed by a team of highly experienced cryptographic experts from academia and industry, with expertise in cryptography, security analysis, software, chip design, and implementation of real-world cryptographic systems.  This breadth of knowledge allowed them to create a balanced design that works well in all environments.</blockquote></p>

<p><a href="http://www.schneier.com/code/skein_NIST_CD_101308.zip">Here's</a> source code, text vectors, and the like for Skein.  Watch the <a href="http://www.schneier.com/skein.html">Skein website</a> for any updates -- new code, new results, new implementations, the proofs.</p>

<p>NIST's deadline is Friday.  It seems as if everyone -- including many amateurs -- is working on a hash function, and I predict that NIST will receive at least 80 submissions.  (Compare this to the 21 submissions NIST received -- five were rejected as not being complete --  for the AES competition in 1998.)  I expect people to start posting their submissions over the weekend.  (Ron Rivest already <a href="http://people.csail.mit.edu/rivest/Rivest-TheMD6HashFunction.ppt">presented</a> MD6 at Crypto in August.)  Probably the best place to watch for new hash functions is <a href="http://planeta.terra.com.br/informatica/paulobarreto/hflounge.html">here</a>; I'll try to keep a listing of the submissions myself.</p>

<p>The selection process will take around four years.  I've previously called this sort of thing a cryptographic demolition derby -- last one left standing wins -- but that's only half true.  Certainly all the groups will spend the next couple of years trying to cryptanalyze each other, but in the end there will be a bunch of unbroken algorithms; NIST will select one based on performance and features.</p>

<p>NIST has stated that the goal of this process is not to choose the best standard but to choose a good standard.  I think that's smart of them; in this process, "best" is the enemy of "good."  My advice is this: immediately sort them based on performance and features.  Ask the cryptographic community to focus its attention on the top dozen, rather than spread its attention across all 80 -- although I also expect that most of the amateur submissions will be rejected by NIST for not being "complete and proper."  Otherwise, people will break the easy ones and the better ones will go unanalyzed.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=RsFiM"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=RsFiM" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=VuObM"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=VuObM" border="0"></img></a>
</div>]]></content:encoded>
      <pubDate>Wed, 29 Oct 2008 01:35:29 +0000</pubDate>
      <category domain="http://securityratty.com/tag/skein">skein</category>
      <category domain="http://securityratty.com/tag/hash function">hash function</category>
      <category domain="http://securityratty.com/tag/function">function</category>
      <category domain="http://securityratty.com/tag/implement skein-256">implement skein-256</category>
      <category domain="http://securityratty.com/tag/implement">implement</category>
      <category domain="http://securityratty.com/tag/skein hashes data">skein hashes data</category>
      <category domain="http://securityratty.com/tag/skein website">skein website</category>
      <category domain="http://securityratty.com/tag/hashes data">hashes data</category>
      <category domain="http://securityratty.com/tag/key derivation function">key derivation function</category>
      <source url="http://www.schneier.com/blog/archives/2008/10/the_skein_hash.html">The Skein Hash Function</source>
    </item>
    <item>
      <title><![CDATA[Crypto hash algorithm competition set to begin ]]></title>
      <link>http://securityratty.com/article/9cd25a377774a702aa3de91aecf8a5f8</link>
      <guid>http://securityratty.com/article/9cd25a377774a702aa3de91aecf8a5f8</guid>
      <description><![CDATA[Security experts vying to have their technology selected as the next cryptographic-hash algorithm standard for the U.S. government need to submit their entries this week. Then they will have a long...]]></description>
      <content:encoded><![CDATA[Security experts vying to have their technology selected as the next cryptographic-hash algorithm standard for the U.S. government need to submit their entries this week. Then they will have a long wait ahead: The new Secure Hash Algorithm standard isn't expected to be chosen until 2012.]]></content:encoded>
      <pubDate>Tue, 28 Oct 2008 21:00:00 +0000</pubDate>
      <category domain="http://securityratty.com/tag/wait ahead">wait ahead</category>
      <category domain="http://securityratty.com/tag/security experts">security experts</category>
      <category domain="http://securityratty.com/tag/algorithm standard">algorithm standard</category>
      <category domain="http://securityratty.com/tag/government">government</category>
      <category domain="http://securityratty.com/tag/week">week</category>
      <category domain="http://securityratty.com/tag/entries">entries</category>
      <category domain="http://securityratty.com/tag/submit">submit</category>
      <category domain="http://securityratty.com/tag/technology">technology</category>
      <source url="http://www.networkworld.com/news/2008/102708-crypto-hash-algorithm-competition.html?fsrc=rss-security">Crypto hash algorithm competition set to begin </source>
    </item>
    <item>
      <title><![CDATA[Enigma - Crypto for Kids]]></title>
      <link>http://securityratty.com/article/e98cfd5dec1ad3c71c2b9ba476220c89</link>
      <guid>http://securityratty.com/article/e98cfd5dec1ad3c71c2b9ba476220c89</guid>
      <description><![CDATA[Brilliant!...]]></description>
      <content:encoded><![CDATA[
&#160;
Brilliant!
http://blog.wired.com/geekdad/2008/10/enigma-crypto-c.html
&#160;&#160;&#160;&#160;&#160;&#160;     ]]></content:encoded>
      <pubDate>Tue, 21 Oct 2008 14:01:54 +0000</pubDate>
      <category domain="http://securityratty.com/tag/html">html</category>
      <category domain="http://securityratty.com/tag/brilliant">brilliant</category>
      <category domain="http://securityratty.com/tag/blog">blog</category>
      <category domain="http://securityratty.com/tag/wired">wired</category>
      <source url="http://securitybuddha.com/2008/10/21/enigma-crypto-for-kids/">Enigma - Crypto for Kids</source>
    </item>
    <item>
      <title><![CDATA[Quantum Cryptography]]></title>
      <link>http://securityratty.com/article/665acbc2a4e65a38fe46108c2e80bb3b</link>
      <guid>http://securityratty.com/article/665acbc2a4e65a38fe46108c2e80bb3b</guid>
      <description><![CDATA[Quantum cryptography is back in the news, and the basic idea is still unbelievably cool, in theory, and nearly useless in real life
The idea behind quantum crypto is that two people communicating...]]></description>
      <content:encoded><![CDATA[<p>Quantum cryptography is back in the news, and the basic idea is still unbelievably cool, in theory, and nearly useless in real life.</p>

<p>The idea behind quantum crypto is that two people communicating using a quantum channel can be absolutely sure no one is eavesdropping.  Heisenberg's uncertainty principle requires anyone measuring a quantum system to disturb it, and that disturbance alerts legitimate users as to the eavesdropper's presence.  No disturbance, no eavesdropper -- period.</p>

<p>This month we've seen reports on a new <a href="http://news.bbc.co.uk/2/hi/science/nature/7661311.stm">working</a> quantum-key distribution <a href="http://news.cnet.com/8301-1009_3-10064219-83.html?part=rss&subj=news&tag=2547-1_3-0-5">network</a> in Vienna, and a new quantum-key distribution <a href="http://www.theregister.co.uk/2008/10/09/quantum_crypto_turbo_charged/">technique</a> out of Britain. Great stuff, but headlines like the BBC's "'Unbreakable' encryption unveiled" are a bit much.</p>

<p>The basic science behind quantum crypto was developed, and prototypes built, in the early 1980s by Charles Bennett and Giles Brassard, and there have been <a href="http://www.cs.mcgill.ca/~crepeau/CRYPTO/Biblio-QC.html">steady advances</a> in engineering since then. I describe basically how it all works in <cite>Applied Cryptography, 2nd Edition</cite> (pages 554-557). At least one company already <a href="http://www.magiqtech.com/">sells</a> quantum-key distribution products.</p>

<p>Note that this is totally separate from <a href="http://en.wikipedia.org/wiki/Quantum_computer">quantum computing</a>, which also has implications for cryptography. Several groups are working on designing and building a quantum computer, which is fundamentally different from a classical computer. If one were built -- and we're talking science fiction here -- then it could factor numbers and solve discrete-logarithm problems very quickly. In other words, it could break all of our commonly used public-key algorithms. For symmetric cryptography it's not that dire: A quantum computer would effectively halve the key length, so that a 256-bit key would be only as secure as a 128-bit key today. Pretty serious stuff, but years away from being practical. I think the best quantum computer today can factor the number 15.</p>

<p>While I like the science of quantum cryptography -- my undergraduate degree was in physics -- I don't see any commercial value in it. I don't believe it solves any security problem that needs solving. I don't believe that it's worth paying for, and I can't imagine anyone but a few technophiles buying and deploying it. Systems that use it don't magically become unbreakable, because the quantum part doesn't address the weak points of the system.</p>

<p>Security is a chain; it's as strong as the weakest link. Mathematical cryptography, as bad as it sometimes is, is the strongest link in most security chains. Our symmetric and public-key algorithms are pretty good, even though they're not based on much rigorous mathematical theory. The real problems are elsewhere: computer security, network security, user interface and so on.</p>

<p>Cryptography is the one area of security that we can get right. We already have good encryption algorithms, good authentication algorithms and good key-agreement protocols.  Maybe quantum cryptography can make that link stronger, but why would anyone bother? There are far more serious security problems to worry about, and it makes much more sense to spend effort securing those.</p>

<p>As I've often said, it's like defending yourself against an approaching attacker by putting a huge stake in the ground. It's useless to argue about whether the stake should be 50 feet tall or 100 feet tall, because either way, the attacker is going to go around it. Even quantum cryptography doesn't "solve" all of cryptography: The keys are exchanged with photons, but a conventional mathematical algorithm takes over for the actual encryption.</p>

<p>I'm always in favor of security research, and I have enjoyed following the developments in quantum cryptography. But as a product, it has no future. It's not that quantum cryptography might be insecure; it's that cryptography is already sufficiently secure.</p>

<p>This essay <a href="http://www.wired.com/politics/security/commentary/securitymatters/2008/10/securitymatters_1016">previously appeared</a> on Wired.com.</p>

<p>EDITED TO ADD (10/21):  It's amazing; even reporters <a href="http://www.itproportal.com/articles/2008/10/20/can-quantum-computing-be-used-tackle-payment-card-fraud/">responding to my essay</a> get it completely wrong:</p>

<blockquote>Keith Harrison, a cryptographer with HP Laboratories, is quoted by the Telegraph as saying that, as quantum computing becomes commonplace, hackers will use the technology to crack conventional encryption.

<p>"We have to be thinking about solutions to the problems that quantum computing will pose," he told the Telegraph. "The average consumer is going to want to know their own transactions and daily business is secure.</p>

<p>"One way of doing this is to use a one time pad  essentially lists of random numbers where one copy of the numbers is held by the person sending the information and an identical copy is held by the person receiving the information. These are completely unbreakable when used properly," he explained.</p>

<p>The critical feature of quantum computing is the unique fact that, if someone tampers with an information feed between two parties, then the nature of the quantum feed changes.</p>

<p>This makes eavesdropping impossible.</blockquote></p>

<p>No, it wouldn't make eavesdropping impossible.  It would make eavesdropping <i>on the communications channel</i> impossible unless someone made an implementation error.  (In the 80s, the NSA broke Soviet one-time-pad systems because the Soviets reused the pad.)  Eavesdropping via spyware or Trojan or TEMPEST would still be possible.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=NpW5M"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=NpW5M" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/schneier/fulltext?a=NzQ5M"><img src="http://feeds.feedburner.com/~f/schneier/fulltext?i=NzQ5M" border="0"></img></a>
</div>]]></content:encoded>
      <pubDate>Tue, 21 Oct 2008 02:48:49 +0000</pubDate>
      <category domain="http://securityratty.com/tag/cryptography">cryptography</category>
      <category domain="http://securityratty.com/tag/quantum cryptography">quantum cryptography</category>
      <category domain="http://securityratty.com/tag/quantum">quantum</category>
      <category domain="http://securityratty.com/tag/quantum-key distribution network">quantum-key distribution network</category>
      <category domain="http://securityratty.com/tag/quantum channel">quantum channel</category>
      <category domain="http://securityratty.com/tag/quantum system">quantum system</category>
      <category domain="http://securityratty.com/tag/quantum-key distribution technique">quantum-key distribution technique</category>
      <category domain="http://securityratty.com/tag/quantum feed">quantum feed</category>
      <category domain="http://securityratty.com/tag/quantum crypto">quantum crypto</category>
      <source url="http://www.schneier.com/blog/archives/2008/10/quantum_cryptog.html">Quantum Cryptography</source>
    </item>
  </channel>
</rss>
