PQ-WB-KEM: White-Box ML-KEM-768 1.0
PQ-WB-KEM: Toward a White-Box Construction of ML-KEM-768 with Arithmetic Masking for M2M Communications - Mathematics (MDPI)
Loading...
Searching...
No Matches
baseline_benchmark.py File Reference

ML-KEM-768 baseline KeyGen/Encaps/Decaps benchmark via liboqs. More...

Go to the source code of this file.

Namespaces

namespace  baseline_benchmark
 

Functions

Dict baseline_benchmark.benchmark_operation (func, int iterations=10000, int warmup=1000)
 Time a callable over warmup + measured iterations.
 
 baseline_benchmark.main ()
 Run the benchmark and write results to results/baseline_benchmark.json.
 
Dict baseline_benchmark.run_benchmark (str algorithm="ML-KEM-768", int iterations=10000)
 Run the full KeyGen/Encaps/Decaps benchmark for an ML-KEM variant.
 

Variables

int baseline_benchmark.LIBOQS_MISSING_EXIT_CODE = 3
 

Detailed Description

ML-KEM-768 baseline KeyGen/Encaps/Decaps benchmark via liboqs.

Note
Wall-clock timing is build/platform-dependent; for robust reporting use wallclock_ci.py, which aggregates N=20 runs (mean +/- 95% CI) per environment (absolute liboqs times are build- and platform-specific; the dimensionless overhead ratios are the comparable metric).

Reference timings (warmup + median/95% CI) used as the baseline for white-box overhead factors; decaps is the white-box target. An unavailable ML-KEM-768 is a hard error (RuntimeError): the benchmark never substitutes a different algorithm. Emits results/baseline_benchmark.json.

Output Files

Usage

Author
Ugur Coruh

Definition in file baseline_benchmark.py.