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
concrete_security_bounds.py File Reference

Engineering security-estimate calculator for white-box ML-KEM-768. More...

Go to the source code of this file.

Namespaces

namespace  concrete_security_bounds
 

Functions

Dict[str, Any] concrete_security_bounds.calculate_dca_security_bits (int num_traces, float measured_correlation, int num_shares)
 DCA security in bits from measured correlation.
 
Dict[str, Any] concrete_security_bounds.calculate_table_footprint (int table_size_bytes)
 Byte-read footprint of the protected core, as an engineering magnitude.
 
Dict[str, Any] concrete_security_bounds.load_experimental_results (str results_dir)
 Load DCA and overhead JSON results if present.
 
tuple concrete_security_bounds.load_measured_footprints (str results_dir)
 Derive the two construction footprints from the committed measurements.
 
 concrete_security_bounds.main ()
 Compute all bounds, print the summary, and write the JSON output.
 

Variables

dict concrete_security_bounds.ML_KEM_768_PARAMS
 
dict concrete_security_bounds.WB_PARAMS
 

Detailed Description

Engineering security-estimate calculator for white-box ML-KEM-768.

Naive engineering estimates plus the core's byte-read footprint. The DCA correlation sits near the sampling-noise floor (a measurement-resolution lower bound, not a security proof) and timing immunity is structural (constant-time construction), not a CoV/bit figure. The footprint (log2 of total core bytes) is a SIZE, not a bound: the core has entry-determinacy degree <= 1, so an adversary regenerates it from |s_hat| without reading it (entry_determinacy.py, table_extraction_witness.py). Writes results/concrete_security_bounds.json.

Note
All inputs are read from the committed experiment JSONs (dca_simulation.json, whitebox_reference.json, whitebox_encoded.json); a missing input is a hard error – no reference value is silently substituted.

Output Files

Usage

Author
Ugur Coruh

Definition in file concrete_security_bounds.py.