|
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)
|
Measures the cache-miss penalty of the PQ-WB-KEM white-box table lookups. More...
#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <string.h>#include <time.h>
Include dependency graph for cache_effect.c:Go to the source code of this file.
Classes | |
| struct | node_t |
Macros | |
| #define | NUM_COMPONENTS 128 |
| #define | Q 3329 |
| #define | ZETA 17 |
Functions | |
| static void | bench_primitive (FILE *js) |
| static void | bench_working_set (FILE *js) |
| static double | chase_latency_ns (size_t bytes, long steps) |
| static uint32_t | lcg_next (void) |
| int | main (void) |
| static double | now_sec (void) |
| static int | pow_mod (int base, int exp, int mod) |
Variables | |
| static uint64_t | lcg_state = 42 |
Measures the cache-miss penalty of the PQ-WB-KEM white-box table lookups.
Cache-penalty factor of the deployment-overhead projection (measured masking x cache penalty), measured on real hardware two ways rather than assumed.
Definition in file cache_effect.c.
| struct node_t |
Definition at line 200 of file cache_effect.c.
Collaboration diagram for node_t:| Class Members | ||
|---|---|---|
| uint32_t | next | |
| char | pad[60] | |
| #define NUM_COMPONENTS 128 |
Definition at line 32 of file cache_effect.c.
| #define Q 3329 |
Definition at line 31 of file cache_effect.c.
| #define ZETA 17 |
Definition at line 33 of file cache_effect.c.
|
static |
Definition at line 53 of file cache_effect.c.
References lcg_next(), now_sec(), NUM_COMPONENTS, pow_mod(), Q, and ZETA.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 229 of file cache_effect.c.
References chase_latency_ns().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 202 of file cache_effect.c.
References lcg_next(), node_t::next, and now_sec().
Referenced by bench_working_set().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 37 of file cache_effect.c.
References lcg_state.
Referenced by bench_primitive(), and chase_latency_ns().
Here is the caller graph for this function:| int main | ( | void | ) |
Definition at line 270 of file cache_effect.c.
References bench_primitive(), and bench_working_set().
Referenced by wallclock_ci::main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 24 of file cache_effect.c.
Referenced by bench_primitive(), and chase_latency_ns().
Here is the caller graph for this function:
|
static |
Definition at line 42 of file cache_effect.c.
Referenced by bench_primitive().
Here is the caller graph for this function:
|
static |
Definition at line 36 of file cache_effect.c.
Referenced by lcg_next().