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

Functions

 build_shuffle (rng)
 One coefficient shuffle pi and its inverse, as stored uint16 tables.
 
 main ()
 Measure the obfuscation-layer storage and write the summary JSON.
 
 read_core ()
 Read the measured core footprints from concrete_security_bounds.json.
 
Path results_dir ()
 Repository results directory.
 

Variables

int BYTES_PER_ENTRY = 2
 
int K = 3
 
int MB = 1_000_000
 
int N = 256
 
int SEED = 42
 

Function Documentation

◆ build_shuffle()

obfuscation_storage.build_shuffle (   rng)

One coefficient shuffle pi and its inverse, as stored uint16 tables.

Parameters
rngSeeded NumPy generator.
Returns
(pi, pi_inv) each shape (K, N), uint16.

Definition at line 53 of file obfuscation_storage.py.

Referenced by main().

+ Here is the caller graph for this function:

◆ main()

obfuscation_storage.main ( void  )

Measure the obfuscation-layer storage and write the summary JSON.

Returns
0 on success.

Definition at line 92 of file obfuscation_storage.py.

References build_shuffle(), main(), read_core(), and results_dir().

Referenced by main().

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

◆ read_core()

obfuscation_storage.read_core ( )

Read the measured core footprints from concrete_security_bounds.json.

Returns
(a_bytes, b_bytes) integer byte counts for Constructions A and B.
Note
Hard error if absent – the deployment total is core plus shuffle, and a guessed core would defeat the point of measuring the shuffle.

Definition at line 70 of file obfuscation_storage.py.

References results_dir().

Referenced by main().

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

◆ results_dir()

Path obfuscation_storage.results_dir ( )

Repository results directory.

Definition at line 48 of file obfuscation_storage.py.

Referenced by main(), and read_core().

+ Here is the caller graph for this function:

Variable Documentation

◆ BYTES_PER_ENTRY

int obfuscation_storage.BYTES_PER_ENTRY = 2

Definition at line 44 of file obfuscation_storage.py.

◆ K

int obfuscation_storage.K = 3

Definition at line 42 of file obfuscation_storage.py.

◆ MB

int obfuscation_storage.MB = 1_000_000

Definition at line 45 of file obfuscation_storage.py.

◆ N

int obfuscation_storage.N = 256

Definition at line 41 of file obfuscation_storage.py.

◆ SEED

int obfuscation_storage.SEED = 42

Definition at line 43 of file obfuscation_storage.py.