Crate nistrs

source ·
Expand description

This crate implements statistical tests according to the NIST standard.

Example usage:

use nistrs::prelude::*;

let data = BitsData::from_binary(vec!(0x23, 0x44));
let result = frequency_test(&data);
print!("Test passed: {}; P-value: {}", result.0, result.1);

Modules

Structs

Structure contained sequence of bit.

Constants

Type Definitions

Return type for most tests. 0 - test passed, 1 - P-value.