|
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 | |
| _load_measured_footprints () | |
| Read the measured construction footprints from the committed experiment JSONs. | |
| tuple | calculate_decaps_time_ms (int k) |
| Estimated decapsulation time in ms for module rank k. | |
| Dict[str, Any] | calculate_higher_order_masking (int base_shares, int target_shares) |
| Overhead of raising masking order for table-based white-box. | |
| int | calculate_ntt_tables (int k) |
| NTT table count for module rank k. | |
| float | calculate_overhead_factor (int k) |
| White-box overhead factor for module rank k. | |
| tuple | calculate_table_size_mb (int k) |
| Deployment core-footprint envelope in MB for module rank k. | |
| int | calculate_target_ram_mb (int k) |
| Minimum recommended RAM (MB) for deployment. | |
| main () | |
| Compute scaling analysis, print tables, and write JSON output. | |
Variables | |
| _FP_A | |
| _FP_B | |
| dict | ML_KEM_PARAMS |
| dict | WB_CONSTANTS |
|
protected |
Read the measured construction footprints from the committed experiment JSONs.
Raises if the producers have not run – no footprint is hardcoded here.
Definition at line 75 of file scaling_analysis.py.
| tuple scaling_analysis.calculate_decaps_time_ms | ( | int | k | ) |
Estimated decapsulation time in ms for module rank k.
| k | Module rank. |
Definition at line 167 of file scaling_analysis.py.
References calculate_overhead_factor().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| Dict[str, Any] scaling_analysis.calculate_higher_order_masking | ( | int | base_shares, |
| int | target_shares | ||
| ) |
Overhead of raising masking order for table-based white-box.
| base_shares | Baseline share count. |
| target_shares | Target share count. |
Definition at line 215 of file scaling_analysis.py.
Referenced by main().
Here is the caller graph for this function:| int scaling_analysis.calculate_ntt_tables | ( | int | k | ) |
NTT table count for module rank k.
| k | Module rank. |
Definition at line 115 of file scaling_analysis.py.
Referenced by main().
Here is the caller graph for this function:| float scaling_analysis.calculate_overhead_factor | ( | int | k | ) |
White-box overhead factor for module rank k.
| k | Module rank. |
Definition at line 149 of file scaling_analysis.py.
Referenced by calculate_decaps_time_ms(), and main().
Here is the caller graph for this function:| tuple scaling_analysis.calculate_table_size_mb | ( | int | k | ) |
Deployment core-footprint envelope in MB for module rank k.
| k | Module rank. |
Definition at line 131 of file scaling_analysis.py.
Referenced by calculate_target_ram_mb(), and main().
Here is the caller graph for this function:| int scaling_analysis.calculate_target_ram_mb | ( | int | k | ) |
Minimum recommended RAM (MB) for deployment.
| k | Module rank. |
Definition at line 194 of file scaling_analysis.py.
References calculate_table_size_mb().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| scaling_analysis.main | ( | void | ) |
Compute scaling analysis, print tables, and write JSON output.
Definition at line 262 of file scaling_analysis.py.
References calculate_decaps_time_ms(), calculate_higher_order_masking(), calculate_ntt_tables(), calculate_overhead_factor(), calculate_table_size_mb(), calculate_target_ram_mb(), and main().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 97 of file scaling_analysis.py.
|
protected |
Definition at line 97 of file scaling_analysis.py.
| dict scaling_analysis.ML_KEM_PARAMS |
Definition at line 32 of file scaling_analysis.py.
| dict scaling_analysis.WB_CONSTANTS |
Definition at line 100 of file scaling_analysis.py.