Repository navigation
Commit 17d77aa
committed
mbedtls: use one AES table per direction
MBEDTLS_AES_FEWER_TABLES keeps one 1 KB table per direction and rotates
its entries at run time instead of storing four rotated copies. Firmware
size: Feather ESP32-C6 -5,648 bytes, Pico W -5,928 bytes, Pico 2 W
-6,144 bytes.
On ESP32 the TLS traffic is encrypted by the AES peripheral, so only
mbedtls's software paths use the tables. On a PicoPad (RP2040), where
TLS runs software AES, a 1 MB HTTPS download ran at 320 kB/s with the
change and 316 kB/s without (medians), and the handshake took the same
3.8 s.1 parent 7639c09 commit 17d77aa
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
0 commit comments