|
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)
|
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 |
| Dict baseline_benchmark.benchmark_operation | ( | func, | |
| int | iterations = 10000, |
||
| int | warmup = 1000 |
||
| ) |
Time a callable over warmup + measured iterations.
| func | Zero-arg callable to benchmark. |
| iterations | Measured iteration count. |
| warmup | Discarded warmup iteration count. |
Definition at line 49 of file baseline_benchmark.py.
Referenced by run_benchmark().
Here is the caller graph for this function:| 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:| 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.
| algorithm | liboqs KEM name; an unavailable ML-KEM-768 raises RuntimeError (no fallback to a different algorithm). |
| iterations | Measured iteration count per operation. |
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:| int baseline_benchmark.LIBOQS_MISSING_EXIT_CODE = 3 |
Definition at line 39 of file baseline_benchmark.py.