[Cryptech Tech] Dieharder test of Cryptech RNG data

Russ Housley housley at vigilsec.com
Wed Apr 8 15:25:42 UTC 2015


Fredrik:

I spent some time with the files that you made available on btsync.

It all looks good to me.

You may recall that the tools that I used in the past had a bug in the constant value test.  At that time, I fixed that bug and I wrote separate tool for that test to increase my confidence that the bug was actually fixed.  Here are the results from that separate tool for these files...


Constant Value Testing on stm32_reflow_unit2_rev09.bin ...
Count of bytes processed: 5595372085

Probability of adjacent bytes with the same value is 1/2**8
Ideal value for repeated bytes is 21856922
Count of repeated bytes: 21852883

Probability of three adjacent bytes with the same value is 1/2**16
Ideal value for repeated 3-byte blocks is 85378
Count of 3-byte matches: 85246

Probability of x y x y pattern is 1/2**16
Ideal value for the x y x y pattern is is 85378
Count of x y x y pattern: 84841

Probability of x y x x pattern is 1/2**16
Ideal value for the x y x x pattern is 85378
Count of x y x x pattern: 85422

Probability of four adjacent bytes with the same value is 1/2**24
Ideal value for repeated 4-byte blocks is 333
Count of 4-byte matches: 332


Constant Value Testing on stm32_rev09_unit4.bin ...
Count of bytes processed: 10737418240

Probability of adjacent bytes with the same value is 1/2**8
Ideal value for repeated bytes is 41943040
Count of repeated bytes: 41946154

Probability of three adjacent bytes with the same value is 1/2**16
Ideal value for repeated 3-byte blocks is 163840
Count of 3-byte matches: 163819

Probability of x y x y pattern is 1/2**16
Ideal value for the x y x y pattern is is 163840
Count of x y x y pattern: 163919

Probability of x y x x pattern is 1/2**16
Ideal value for the x y x x pattern is 163840
Count of x y x x pattern: 163081

Probability of four adjacent bytes with the same value is 1/2**24
Ideal value for repeated 4-byte blocks is 640
Count of 4-byte matches: 597


Constant Value Testing on stm32_rev09_unit5.bin ...
Count of bytes processed: 10737418240

Probability of adjacent bytes with the same value is 1/2**8
Ideal value for repeated bytes is 41943040
Count of repeated bytes: 41936983

Probability of three adjacent bytes with the same value is 1/2**16
Ideal value for repeated 3-byte blocks is 163840
Count of 3-byte matches: 163082

Probability of x y x y pattern is 1/2**16
Ideal value for the x y x y pattern is is 163840
Count of x y x y pattern: 163257

Probability of x y x x pattern is 1/2**16
Ideal value for the x y x x pattern is 163840
Count of x y x x pattern: 163658

Probability of four adjacent bytes with the same value is 1/2**24
Ideal value for repeated 4-byte blocks is 640
Count of 4-byte matches: 668


Constant Value Testing on stm32_rev09_unit7.bin ...
Count of bytes processed: 10737418240

Probability of adjacent bytes with the same value is 1/2**8
Ideal value for repeated bytes is 41943040
Count of repeated bytes: 41946602

Probability of three adjacent bytes with the same value is 1/2**16
Ideal value for repeated 3-byte blocks is 163840
Count of 3-byte matches: 163749

Probability of x y x y pattern is 1/2**16
Ideal value for the x y x y pattern is is 163840
Count of x y x y pattern: 163008

Probability of x y x x pattern is 1/2**16
Ideal value for the x y x x pattern is 163840
Count of x y x x pattern: 163401

Probability of four adjacent bytes with the same value is 1/2**24
Ideal value for repeated 4-byte blocks is 640
Count of 4-byte matches: 631


Russ



On Apr 6, 2015, at 5:46 AM, Fredrik Thulin wrote:

> On Monday, April 06, 2015 11:40:32 AM Павел Шатов wrote:
> ...
>> Thank you, Fredrik! rev02_sch.pdf is exactly what I was asking for. Can
>> I have a look at rev02.sch too, please? As far as I understand it was
>> designed using EAGLE software?
> 
> Certainly - attached. I would like to put it in one of our repositories, if 
> someone could point to the right one.
> 
> /Fredrik



More information about the Tech mailing list