[146675] in cryptography@c2.net mail archive

home help back first fref pref prev next nref lref last post

Re: [Cryptography] Aside on random numbers (was Re: Opening

daemon@ATHENA.MIT.EDU (Jerry Leichter)
Fri Sep 6 14:33:23 2013

X-Original-To: cryptography@metzdowd.com
From: Jerry Leichter <leichter@lrw.com>
In-Reply-To: <20130906100309.3a1a9bc5@jabberwock.cb.piermont.com>
Date: Fri, 6 Sep 2013 14:17:07 -0400
To: "Perry E. Metzger" <perry@piermont.com>
Cc: John Kelsey <crypto.jmk@gmail.com>,
	"cryptography@metzdowd.com" <cryptography@metzdowd.com>
Errors-To: cryptography-bounces+crypto.discuss=bloom-picayune.mit.edu@metzdowd.com

On Sep 6, 2013, at 10:03 AM, Perry E. Metzger wrote:
> 
> Naively, one could take a picture of the dice and OCR it. However,
> one doesn't actually need to OCR the dice -- simply hashing the
> pixels from the image will have at least as much entropy if the
> position of the dice is recognizable from the image....
> 
> One could write an  app to do this, but of course the phone is
> not exactly a secure platform to begin with...
Ah, but that highlights an essential difference between OCR'ing the image and just hashing it:  I can easily check, with my own eyes, that the OCR app is really doing what it claims to be doing.  I have no hope of checking the hash-based app.  A whole class of attacks is closed off by the OCR technique.

It's not that there aren't other attacks.  The phone could, for example, leak the generated values, sending them off to Big Brother.  That kind of attack would, if done correctly, be virtually impossible to detect.  On the other hand, it's not nearly as valuable as a biased generation attack - Big Brother would receive streams of random die tosses with little context about what the resulting values would be used for or how they would be used.  Appropriately targeted attacks might work - "I know Metzger regenerates his keys on the 3rd of every month at about 8:00 AM, so let's use the values he scans at around that time as guesses for his base random values" - but we're talking quite a bit of difficulty here - and the more people use the app, and the more often they make it a habit to toss and scan dice and just discard the results, the more difficult it becomes.
                                                        -- Jerry

_______________________________________________
The cryptography mailing list
cryptography@metzdowd.com
http://www.metzdowd.com/mailman/listinfo/cryptography

home help back first fref pref prev next nref lref last post