No description
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • C 67.2%
  • Shell 22.9%
  • C++ 5.8%
  • CMake 4.1%
Find a file
刘畅 af7a7f0fc8 Merge branch 'feature-support-aarch64' into 'main'
Feature support aarch64

See merge request liuchang/mesa_sts!7
2024-11-25 09:01:28 +00:00
ci delete sentry-cli command 2023-09-07 06:13:53 +00:00
cmake add source code of encapsulated sts 2023-06-30 08:01:00 +00:00
inc add switch for each function of randomlooking check 2023-09-12 11:36:28 +00:00
src add switch for each function of randomlooking check 2023-09-12 11:36:28 +00:00
test fix test case build break 2023-09-12 11:49:07 +00:00
vendor remove check for opensource code, googletest and sts algorithm 2024-11-25 08:30:28 +00:00
.gitlab-ci.yml remove jump_layer dependency 2024-11-15 07:55:25 +00:00
autorelease.sh add source code of encapsulated sts 2023-06-30 08:01:00 +00:00
autorevision.sh add source code of encapsulated sts 2023-06-30 08:01:00 +00:00
CMakeLists.txt remove check for opensource code, googletest and sts algorithm 2024-11-25 08:30:28 +00:00
README.md add source code of encapsulated sts 2023-06-30 08:01:00 +00:00

mesa_sts简介

mesa_sts是一个统计检验随机性检测套件(Statistical Test Suite包括NIST-STS、国密的共计19种检验算法。

nist-sts

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.

PS:the directories:data/experiments/templates are from https://download.csdn.net/download/yuanhunhai/8985409