291
|
1 |
/*
|
|
2 |
* Portions Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* The original NIST Statistical Test Suite code is placed in public domain.
|
|
16 |
* (http://csrc.nist.gov/groups/ST/toolkit/rng/documentation_software.html)
|
|
17 |
*
|
|
18 |
* This software was developed at the National Institute of Standards and Technology by
|
|
19 |
* employees of the Federal Government in the course of their official duties. Pursuant
|
|
20 |
* to title 17 Section 105 of the United States Code this software is not subject to
|
|
21 |
* copyright protection and is in the public domain. The NIST Statistical Test Suite is
|
|
22 |
* an experimental system. NIST assumes no responsibility whatsoever for its use by other
|
|
23 |
* parties, and makes no guarantees, expressed or implied, about its quality, reliability,
|
|
24 |
* or any other characteristic. We would appreciate acknowledgment if the software is used.
|
|
25 |
*/
|
|
26 |
|
|
27 |
#ifndef _DECLS_H_
|
|
28 |
#define _DECLS_H_
|
|
29 |
|
|
30 |
#include "../include/defs.h"
|
|
31 |
|
|
32 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
33 |
G L O B A L D A T A S T R U C T U R E S
|
|
34 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
35 |
|
|
36 |
BitSequence *epsilon; // BIT STREAM
|
|
37 |
TP tp; // TEST PARAMETER STRUCTURE
|
|
38 |
FILE *stats[NUMOFTESTS+1]; // FILE OUTPUT STREAM
|
|
39 |
FILE *results[NUMOFTESTS+1]; // FILE OUTPUT STREAM
|
|
40 |
FILE *freqfp; // FILE OUTPUT STREAM
|
|
41 |
FILE *summary; // FILE OUTPUT STREAM
|
|
42 |
int testVector[NUMOFTESTS+1];
|
|
43 |
|
|
44 |
char generatorDir[NUMOFGENERATORS][20] = { "AlgorithmTesting", "LCG", "QCG1", "QCG2","CCG", "XOR",
|
|
45 |
"MODEXP", "BBS", "MS", "G-SHA1", "HASH_DRBG" };
|
|
46 |
|
|
47 |
char testNames[NUMOFTESTS+1][32] = { " ", "Frequency", "BlockFrequency", "CumulativeSums", "Runs", "LongestRun", "Rank",
|
|
48 |
"FFT", "NonOverlappingTemplate", "OverlappingTemplate", "Universal", "ApproximateEntropy", "RandomExcursions",
|
|
49 |
"RandomExcursionsVariant", "Serial", "LinearComplexity" };
|
|
50 |
|
|
51 |
#endif // _DECLS_H_
|
|
52 |
|