<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Smart meter crypto flaw worse than thought</title>
	<atom:link href="http://rdist.root.org/2010/01/11/smart-meter-crypto-flaw-worse-than-thought/feed/" rel="self" type="application/rss+xml" />
	<link>http://rdist.root.org/2010/01/11/smart-meter-crypto-flaw-worse-than-thought/</link>
	<description>Embedded security, crypto, software protection</description>
	<lastBuildDate>Thu, 09 Sep 2010 12:45:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Nate Lawson</title>
		<link>http://rdist.root.org/2010/01/11/smart-meter-crypto-flaw-worse-than-thought/#comment-5748</link>
		<dc:creator>Nate Lawson</dc:creator>
		<pubDate>Mon, 08 Mar 2010 04:58:47 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.root.org/?p=501#comment-5748</guid>
		<description>Thanks for the nice reply. It&#039;s good you&#039;ve done some analysis, but more in-depth review of a cryptographic random source should be performed. Here&#039;s one that I consider a good example review (disclaimer: I worked on some of it)

http://www.cryptography.com/resources/whitepapers/VIA_rng.pdf</description>
		<content:encoded><![CDATA[<p>Thanks for the nice reply. It&#8217;s good you&#8217;ve done some analysis, but more in-depth review of a cryptographic random source should be performed. Here&#8217;s one that I consider a good example review (disclaimer: I worked on some of it)</p>
<p><a href="http://www.cryptography.com/resources/whitepapers/VIA_rng.pdf" rel="nofollow">http://www.cryptography.com/resources/whitepapers/VIA_rng.pdf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DoubleO</title>
		<link>http://rdist.root.org/2010/01/11/smart-meter-crypto-flaw-worse-than-thought/#comment-5741</link>
		<dc:creator>DoubleO</dc:creator>
		<pubDate>Mon, 01 Mar 2010 20:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.root.org/?p=501#comment-5741</guid>
		<description>In Z-stack 2.3, the least significant bit of the ADC register (which is very noisy) is used to construct the seed values. It is read multiple times and those bits are used to construct the initial seed of the desired length. Chapter 19.12 in the CC2530 user&#039;s guide explains the random number generator of the CC2530, including plots of random data from 20 million samples: http://focus.ti.com/lit/ug/swru191/swru191.pdf</description>
		<content:encoded><![CDATA[<p>In Z-stack 2.3, the least significant bit of the ADC register (which is very noisy) is used to construct the seed values. It is read multiple times and those bits are used to construct the initial seed of the desired length. Chapter 19.12 in the CC2530 user&#8217;s guide explains the random number generator of the CC2530, including plots of random data from 20 million samples: <a href="http://focus.ti.com/lit/ug/swru191/swru191.pdf" rel="nofollow">http://focus.ti.com/lit/ug/swru191/swru191.pdf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Lawson</title>
		<link>http://rdist.root.org/2010/01/11/smart-meter-crypto-flaw-worse-than-thought/#comment-5735</link>
		<dc:creator>Nate Lawson</dc:creator>
		<pubDate>Wed, 17 Feb 2010 17:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.root.org/?p=501#comment-5735</guid>
		<description>Right, and this is a general problem with other public key crypto as well. For example, (EC)DSA can be compromised if you know a small fraction of the random nonce (not key!) bits.

The moral is: randomness is very important in public key crypto and you can&#039;t just hand-wave and say a fix is &quot;good enough.&quot;</description>
		<content:encoded><![CDATA[<p>Right, and this is a general problem with other public key crypto as well. For example, (EC)DSA can be compromised if you know a small fraction of the random nonce (not key!) bits.</p>
<p>The moral is: randomness is very important in public key crypto and you can&#8217;t just hand-wave and say a fix is &#8220;good enough.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis Goodspeed</title>
		<link>http://rdist.root.org/2010/01/11/smart-meter-crypto-flaw-worse-than-thought/#comment-5734</link>
		<dc:creator>Travis Goodspeed</dc:creator>
		<pubDate>Wed, 17 Feb 2010 05:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.root.org/?p=501#comment-5734</guid>
		<description>ECQMV is vulnerable to an attack against the static private key when the top 4 bits of the ephemeral private key are known.  The static key pair is exposed even though it is generated off-meter with a presumably good RNG.</description>
		<content:encoded><![CDATA[<p>ECQMV is vulnerable to an attack against the static private key when the top 4 bits of the ephemeral private key are known.  The static key pair is exposed even though it is generated off-meter with a presumably good RNG.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate Lawson</title>
		<link>http://rdist.root.org/2010/01/11/smart-meter-crypto-flaw-worse-than-thought/#comment-5692</link>
		<dc:creator>Nate Lawson</dc:creator>
		<pubDate>Tue, 09 Feb 2010 22:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.root.org/?p=501#comment-5692</guid>
		<description>I&#039;m questioning two points that you seem confident in but could warrant further review:

1. That static key pairs are &quot;unlikely to be generated&quot; using the Z-Stack insecure PRNG

2. That the ADCTSTL register provides enough entropy, even with a secure PRNG

I&#039;m guessing your criteria for #1 is that key generation is probably done on a general purpose computer before production, and thus is unlikely to share an implementation with Z-Stack. Is this the case? How likely is it that they reused code from Z-Stack?

Evidence points to #2 being a problem, even with a secure PRNG. Careful modeling of the entropy obtained from ADCTSTL is needed before making claims about it. Unfortunately, the latest version of Z-Stack moved this function out of the library, so it&#039;s not easy to review exactly how it&#039;s used (reseeding rate).</description>
		<content:encoded><![CDATA[<p>I&#8217;m questioning two points that you seem confident in but could warrant further review:</p>
<p>1. That static key pairs are &#8220;unlikely to be generated&#8221; using the Z-Stack insecure PRNG</p>
<p>2. That the ADCTSTL register provides enough entropy, even with a secure PRNG</p>
<p>I&#8217;m guessing your criteria for #1 is that key generation is probably done on a general purpose computer before production, and thus is unlikely to share an implementation with Z-Stack. Is this the case? How likely is it that they reused code from Z-Stack?</p>
<p>Evidence points to #2 being a problem, even with a secure PRNG. Careful modeling of the entropy obtained from ADCTSTL is needed before making claims about it. Unfortunately, the latest version of Z-Stack moved this function out of the library, so it&#8217;s not easy to review exactly how it&#8217;s used (reseeding rate).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert</title>
		<link>http://rdist.root.org/2010/01/11/smart-meter-crypto-flaw-worse-than-thought/#comment-5689</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Tue, 09 Feb 2010 05:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://rdist.root.org/?p=501#comment-5689</guid>
		<description>I can assure you I am very familiar with the crypto specification and typical implementations for these meters. The ECC library has fixed functions for the ZigBee Smart Energy security cluster. The library requires two user-provided callback functions:

1) A random number generator
2) AES-MMO cryptographic hash

(2) is a callback as many chips have an internal AES-128 block cipher accelerator, thus the soft (and comparatively large) AES-128 block cipher also included in the library can normally be elided. Because this has a very fixed function, it is not really open to abuse.

(1) is a callback because many chips/stacks provide their own RNG. The aim here is to make the library as small as possible due to the constrained resources of the chips this is targeted at. Therefore, if reuse can be done, it should be.

Therefore, the customer cannot &quot;create any number of implementatins with variations on use of crypto&quot;.

Of course, if an implementer decides to use a PRNG with low entropy for the RNG (which the ZigBee Specification says should be FIPS 140-2 compliant) then it will cause potential problems as has been discovered.</description>
		<content:encoded><![CDATA[<p>I can assure you I am very familiar with the crypto specification and typical implementations for these meters. The ECC library has fixed functions for the ZigBee Smart Energy security cluster. The library requires two user-provided callback functions:</p>
<p>1) A random number generator<br />
2) AES-MMO cryptographic hash</p>
<p>(2) is a callback as many chips have an internal AES-128 block cipher accelerator, thus the soft (and comparatively large) AES-128 block cipher also included in the library can normally be elided. Because this has a very fixed function, it is not really open to abuse.</p>
<p>(1) is a callback because many chips/stacks provide their own RNG. The aim here is to make the library as small as possible due to the constrained resources of the chips this is targeted at. Therefore, if reuse can be done, it should be.</p>
<p>Therefore, the customer cannot &#8220;create any number of implementatins with variations on use of crypto&#8221;.</p>
<p>Of course, if an implementer decides to use a PRNG with low entropy for the RNG (which the ZigBee Specification says should be FIPS 140-2 compliant) then it will cause potential problems as has been discovered.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
