Skip to content

Releases: perlab-uc3m/ais31_headless

v0.1.0 - First release

28 May 08:58

Choose a tag to compare

Pre-release

Initial release of ais31-headless, a Python CLI harness for the BSI AIS 31 V1 Java reference implementation (AIS 31 (V1) Referenzimplementierung - v1.0).

What it does

Runs the official BSI AIS 31 statistical tests (procedures A and B) without a display, from the command line. The harness:

  • Installs the BSI Java source from the official ZIP archive, compiles it with the correct Latin-1 encoding, and builds a headless Java runner alongside it.
  • Validates input size before launching the JVM so you get a clear error instead of a silent Java failure.
  • Supports three suites: p1-t0 (disjointness), p1-t1-t5 (monobit, poker, runs, long-run, autocorrelation), and p2 (T6a, T6b, T7a, T7b, T8).
  • Accepts raw (8 bits per byte) and bit-bytes (one bit per byte) input formats.
  • Writes structured JSON output with per-test outcomes, consumed/remainder bytes, artifact paths, and the original BSI log lines.