Skip to main content

NIST's Statistical Test Suite bindings

Project description

Total alerts Language grade: C/C++

NIST Statistical Test Suite

This is a slightly updated version of NIST Statistical Test Suite (STS) tool for randomness testing. Main reason for this fork is that the original source code provided by NIST doesn't compile cleanly on Windows using MSVC. Main reason is that MSVC doesn't provide erf() and erfc() functions in standard math library. I've added implementation of these functions and created a project file. You should be now able to compile STS using standard Microsoft Visual C/C++ suite.

Building

This version should compile cleanly under MSVC 2008. I haven't tested it under other versions and MSVC Express, but it's ANSI C so it should work.

The solution is configured to compile using extended instruction set (SSE2) and optimize for speed.

After build is completed you will get a single assess.exe binary which is the test suite.

Usage

You probably still want to download the original NIST ZIP distribution and use their test files. Reason why I'm not including them here is that the archive is over 40 MB big and most of that is the test data.

After unpacking the ZIP place assess.exe in the top directory. The program expects to have the subdirectories experiments, templates etc in the same directory.

STS has somewhat old school terminal interface. Simple tutorial can be found in section 5-1 of NIST SP800-22.

Remember that testing results are written to experiments\AlgorithmTesting\finalAnalysisReport.txt if you load tested data from a file. STS has a number of built-in generators, in which case the report will be written to a corresponding subdirectory of experiments.

License

The original license:

This software was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. The NIST Statistical Test Suite is an experimental system. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic. We would appreciate acknowledgment if the software is used.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

sts_pylib-0.0.0-cp38-cp38-manylinux2010_x86_64.whl (15.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

sts_pylib-0.0.0-cp38-cp38-manylinux1_x86_64.whl (15.9 kB view hashes)

Uploaded CPython 3.8

sts_pylib-0.0.0-cp37-cp37m-manylinux2010_x86_64.whl (15.3 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

sts_pylib-0.0.0-cp37-cp37m-manylinux1_x86_64.whl (15.3 kB view hashes)

Uploaded CPython 3.7m

sts_pylib-0.0.0-cp36-cp36m-manylinux2010_x86_64.whl (15.3 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

sts_pylib-0.0.0-cp36-cp36m-manylinux1_x86_64.whl (15.3 kB view hashes)

Uploaded CPython 3.6m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page