Professional Documents
Culture Documents
Benchmarking The True Random Number Generator of TPM Chips
Benchmarking The True Random Number Generator of TPM Chips
Benchmarking The True Random Number Generator of TPM Chips
to 2048 and writes down in a CSV file the time needed 10000
4000 700
3500 600
3000 500
O u t p u t s p e e d ( b y t e s /s )
Output Speed (bytes/s)
2500 400
2000 300
1500 200
100
1000
0
500
2
53
104
155
206
257
308
359
410
461
512
563
614
665
716
767
818
869
920
971
1022
1073
1124
1175
1226
1277
1328
1379
1430
1481
1532
1583
1634
1685
1736
1787
1838
1889
1940
1991
2042
0 Request Size (bytes)
1 55 109 163 217 271 325 379 433 487 541 595 649 703 757 811 865 919 973 1027 1081 1135 1189
8000
The Sinosun chip is also suspicious according to the
6000
same test at bit level with a 5% chi square value that
even though is not a bad failure, it casts a shadow of
4000
doubt on the randomness of the sequence. Ironically
2000
these two chips also have the best result on the serial
0
1 28 55 82 109 136 163 190 217 244 271 298 325 352 379 406 433 460 487 514 541 568 595 622 649 676 703 730 757
correlation test, both on byte and bit level.
Request Size (bytes)
According to Ent’s algorithms the value it
Fig 4. Atmel TPM speed test calculates is supposed to be as close to 0 as possible on
a random sequence. Also using numbers from the Intel
Out of the chips tested the Sinosun TPM is the only chip the pi value calculated by a Monte Carlo
one that respects the specifications to the letter algorithm obtained the smallest error, 0.00%.
concerning the maximum request size allowed, Although a few suspicious chi square values were
however it also gave the lowest output speed, which is found, all four 100 MB sequences obtain the same
almost 30 times smaller then that of the fastest chip score in RNGmeter: 27.6+, indicating no major
(Infineon). If zoomed, the graphic in figure 5 looks failures in any of the generators.
very similar to the one for Atmel chips.
The random number generators tested behaved very [4] Trusted Computing Group: Trusted Platform Module
different, especially in terms of speed where the fastest Specifications,
chip generated numbers at a rate 30 times higher then https://www.trustedcomputinggroup.org/specs/TPM/
the slowest, but also in quality of the random data.