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 Namespace Reference

Functions

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

Variables

int LIBOQS_MISSING_EXIT_CODE = 3
 

Function Documentation

◆ benchmark_operation()

Dict baseline_benchmark.benchmark_operation (   func,
int   iterations = 10000,
int   warmup = 1000 
)

Time a callable over warmup + measured iterations.

Parameters
funcZero-arg callable to benchmark.
iterationsMeasured iteration count.
warmupDiscarded warmup iteration count.
Returns
Dict of iterations and mean/median/stdev/min/max/95% CI in ms.

Definition at line 49 of file baseline_benchmark.py.

Referenced by run_benchmark().

+ Here is the caller graph for this function:

◆ main()

baseline_benchmark.main ( void  )

Run the benchmark and write results to results/baseline_benchmark.json.

Definition at line 186 of file baseline_benchmark.py.

References main(), and run_benchmark().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ run_benchmark()

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.

Parameters
algorithmliboqs KEM name; an unavailable ML-KEM-768 raises RuntimeError (no fallback to a different algorithm).
iterationsMeasured iteration count per operation.
Returns
Results dict with algorithm details and per-operation timing stats.

Definition at line 84 of file baseline_benchmark.py.

References benchmark_operation().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ LIBOQS_MISSING_EXIT_CODE

int baseline_benchmark.LIBOQS_MISSING_EXIT_CODE = 3

Definition at line 39 of file baseline_benchmark.py.