A STATISTICAL TEST SUITE FOR RANDOM AND PSEUDORANDOM NUMBER
GENERATORS FOR CRYPTOGRAPHIC APPLICATIONS
Following below steps to setup NIST (STS package).
1.
Download STS package from below URL.
2.
Copy your STS package on Linux/UBUNTU system
3.
STS package contains below files
4.
Edit the makefile. Modify the following lines:
a.
CC (your ANCI C compiler) example GCC
b.
ROOTDIR (the root directory that was prescribed
earlier in the process, e.g., rng/)
5.
Now execute makefile with the command ‘make’. An
executable file named “assess” should appear in the project directory.
Follow below steps to test
[AAAAAA@localhost ~]$ ls
Desktop Downloads nistnet Public sts-2.1.2 Videos
Documents Music Pictures sts Templates
[AAAAAA@localhost ~]$ cd sts-2.1.2/
[AAAAAA@localhost sts-2.1.2]$ ls
assess data experiments include makefile obj src templates
[AAAAAA@localhost sts-2.1.2]$ ./assess 1000000
G E N E R A T O R S E L E C T I O N
______________________________________
[0] Input File [1] Linear Congruential
[2] Quadratic Congruential I [3] Quadratic Congruential II
[4] Cubic Congruential [5] XOR
[6] Modular Exponentiation [7] Blum-Blum-Shub
[8] Micali-Schnorr [9] G Using SHA-1
Enter Choice: 0
User Prescribed Input File: data/QQQQQQQQ_1000MB_20150100.dat
S T A T I S T I C A L T E S T S
_________________________________
[01] Frequency [02] Block Frequency
[03] Cumulative Sums [04] Runs
[05] Longest Run of Ones [06] Rank
[07] Discrete Fourier Transform [08] Nonperiodic Template Matchings
[09] Overlapping Template Matchings [10] Universal Statistical
[11] Approximate Entropy [12] Random Excursions
[13] Random Excursions Variant [14] Serial
[15] Linear Complexity
INSTRUCTIONS
Enter 0 if you DO NOT want to apply all of the
statistical tests to each sequence and 1 if you DO.
Enter Choice: 1
P a r a m e t e r A d j u s t m e n t s
-----------------------------------------
[1] Block Frequency Test - block length(M): 128
[2] NonOverlapping Template Test - block length(m): 9
[3] Overlapping Template Test - block length(m): 9
[4] Approximate Entropy Test - block length(m): 10
[5] Serial Test - block length(m): 16
[6] Linear Complexity Test - block length(M): 500
Select Test (0 to continue): 0
How many bitstreams? 10
Input File Format:
[0] ASCII - A sequence of ASCII 0's and 1's
[1] Binary - Each byte in data file contains 8 bits of data
Select input mode: 1
Statistical Testing In Progress.........
Statistical Testing Complete!!!!!!!!!!!!
Output files will be generate in experiments.
No comments:
Post a Comment