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

Functions

 main ()
 Compute the three share statistics and write results/share_statistics.json.
 
 three_share (secret, rng)
 Split a secret into three additive shares over Z_q.
 

Variables

int N = 256
 
int NUM_TRACES = 10000
 
int Q = 3329
 
int SEED = 42
 

Function Documentation

◆ main()

share_statistics.main ( void  )

Compute the three share statistics and write results/share_statistics.json.

Definition at line 49 of file share_statistics.py.

References main(), and three_share().

Referenced by main().

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

◆ three_share()

share_statistics.three_share (   secret,
  rng 
)

Split a secret into three additive shares over Z_q.

Parameters
secretsecret coefficient array.
rngnumpy Generator.
Returns
tuple (s1, s2, s3) with s1+s2+s3 == secret mod q.

Definition at line 36 of file share_statistics.py.

Referenced by main().

+ Here is the caller graph for this function:

Variable Documentation

◆ N

int share_statistics.N = 256

Definition at line 31 of file share_statistics.py.

◆ NUM_TRACES

int share_statistics.NUM_TRACES = 10000

Definition at line 32 of file share_statistics.py.

◆ Q

int share_statistics.Q = 3329

Definition at line 30 of file share_statistics.py.

◆ SEED

int share_statistics.SEED = 42

Definition at line 33 of file share_statistics.py.