Skip to main content

TABLE_ROUND_FIRST

Constant TABLE_ROUND_FIRST 

Source
pub const TABLE_ROUND_FIRST: usize = 3;
Expand description

AES rounds that may use block-RAM T-tables: every byte is live and used.

The first such round is AES round 3 (0-based). Rounds 0-2 still have constant bytes, which a table cannot fold, and round 9 needs only 20 of its 64 S-boxes. (Rounds 7 and 8 also have 16 unobserved S-boxes each; there the table ROMs whose words are never used have no loads and are removed the same way, so nothing is wasted.)