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
table_extraction_witness.ReadCountingTables Class Reference

Baked-table view that counts every entry fetched by the extractor. More...

+ Collaboration diagram for table_extraction_witness.ReadCountingTables:

Public Member Functions

 __init__ (self, tabs)
 Wrap a built table set.
 
 read (self, comp, table_idx, x)
 Fetch one entry and charge it to the budget.
 

Public Attributes

 bytes_read
 
 entries_read
 

Protected Attributes

 _tabs
 

Detailed Description

Baked-table view that counts every entry fetched by the extractor.

The read budget must be measured, not asserted, so the extractor may only touch tables through this wrapper.

Definition at line 101 of file table_extraction_witness.py.

Constructor & Destructor Documentation

◆ __init__()

table_extraction_witness.ReadCountingTables.__init__ (   self,
  tabs 
)

Wrap a built table set.

Parameters
tabsList of (h0, h1, h2) uint16 triples from build_baked_tables.

Definition at line 108 of file table_extraction_witness.py.

Member Function Documentation

◆ read()

table_extraction_witness.ReadCountingTables.read (   self,
  comp,
  table_idx,
  x 
)

Fetch one entry and charge it to the budget.

Parameters
compComponent index;
table_idx0=h0, 1=h1, 2=h2;
xEntry index.
Returns
Entry value as int.

Definition at line 117 of file table_extraction_witness.py.

References table_extraction_witness.ReadCountingTables._tabs, table_extraction_witness._CountingArray.bytes_read, table_extraction_witness.ReadCountingTables.bytes_read, and table_extraction_witness.ReadCountingTables.entries_read.

Member Data Documentation

◆ _tabs

table_extraction_witness.ReadCountingTables._tabs
protected

◆ bytes_read

table_extraction_witness.ReadCountingTables.bytes_read

◆ entries_read

table_extraction_witness.ReadCountingTables.entries_read

The documentation for this class was generated from the following file: