[Cryptech Tech] ent for rosc entropy in the Xilinx FPGA

Joachim Strömbergson joachim at secworks.se
Thu Dec 18 20:27:21 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Russ Housley wrote:
> The FIPS 140 testing includes the Consecutive Value Test.  It
> compares consecutive blocks within the random data.  The test fails
> if the blocks are equal.  Looking for repeated bytes in the first
> 40,000,000 bits in the provided data showed a few more failures than
> I expected.  So, I took a look at each place in the file where this
> this happened, and I found a pattern that is troublesome.
> 
> See these small chunks (in hex) from rosc_data.bin...
> 
> ... 79 f4 3e 1c 3e 3e fd b7 63 9b f2 1a ...

I've done some discussions with a colleague and done some testing.
The pattern we are seeing should appear p(1/2**16) i.e. with a frequency
0.000015.

I tested this by dumping out 450 MByte from
/dev/random in OSX and gets:

[~/tmp]$ tribytes.py testdata.bin
Analyzed file: testdata.bin
Total number of bytes: 498135040
Number of patterns:    7460
Frequency in file:     0.000015

That is, the frequency found in the rosc entropy which is 0.000014,
which is very close to expected frequency in random data.

- -- 
Med vänlig hälsning, Yours

Joachim Strömbergson - Alltid i harmonisk svängning.
========================================================================
 Joachim Strömbergson          Secworks AB          joachim at secworks.se
========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJUkzipAAoJEF3cfFQkIuyNYhAP/RtYje3+qatIJwng0f9IIoKr
rP/zhLpg3HTlu44VU9v3U16nCOAhD4MDcnYANefPpFFiFYIJKLfL4mcV9eVTuPfF
zTMUryc26jRkkb3A69iUv9wOUpkUJC0WJ8DqcPt3ANP4XWaHZSwCqskfOyQ/Q5FS
BH9nHO5BjzNR5jckVSDGwsOUqD19Nvm0kIflJGvBD6A3oELgTbP8kfCo0fQ7G9n8
HT8bI4nF8R/jFvDjaGDsA0hryNgrGhJBFSDI0swiGY+yZlwueMAbtlhSltrD5cGQ
ZYXpBhSZRRd5vfIBsZxYVskJlMaPYwnQbHe/svLmNbZlGASAVtutOs6HNXgkep9N
GzsQZppzgai7AxltUOLm7nZhRDI2pkdN21/zYSwgvRl5rUE9BsBBHAnzOpsBUchM
mAzNDx0+MviDN2PhQ7FPrUbht+4OMiht02TonjC+h16eRwFm2sKhG4PWsI5D/Vv2
g1joDx2id1n0MzodcfZ+E46MWw+aO924+CxB3S6a6/ye+AdAF1rwClo666g0yb6A
7ZLplt6+Ezeva9YvaEBu6sRW6fKcwamTdwnQEAMkFfHDEGXrOvSprqSrQSEGENm2
yrPWBjmKveV0JchECGAGG1D2DTDUy37eMp/o1emUNX11JrI+bzHf98oQ59oiEMP0
5ZTmGndnT9jNe/DSuyHW
=fhv9
-----END PGP SIGNATURE-----


More information about the Tech mailing list