|
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)
|
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 | |
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.
| table_extraction_witness.ReadCountingTables.__init__ | ( | self, | |
| tabs | |||
| ) |
Wrap a built table set.
| tabs | List of (h0, h1, h2) uint16 triples from build_baked_tables. |
Definition at line 108 of file table_extraction_witness.py.
| table_extraction_witness.ReadCountingTables.read | ( | self, | |
| comp, | |||
| table_idx, | |||
| x | |||
| ) |
Fetch one entry and charge it to the budget.
| comp | Component index; |
| table_idx | 0=h0, 1=h1, 2=h2; |
| x | Entry index. |
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.
|
protected |
Definition at line 113 of file table_extraction_witness.py.
Referenced by table_extraction_witness.ReadCountingTables.read().
| table_extraction_witness.ReadCountingTables.bytes_read |
Definition at line 115 of file table_extraction_witness.py.
Referenced by table_extraction_witness._CountingArray.__getitem__(), and table_extraction_witness.ReadCountingTables.read().
| table_extraction_witness.ReadCountingTables.entries_read |
Definition at line 114 of file table_extraction_witness.py.
Referenced by table_extraction_witness.ReadCountingTables.read().