Comparative Timing Characterization of Early-Exit and Fixed-Work Secret Comparisons on ESP32 and ESP8266

Abstract An early-exit secret comparison can expose matching-prefix length through execution timing. We quantify this behavior for 16-byte early-exit comparisons and a fixed-work XOR/OR alternative on ESP32 and ESP8266 microcontrollers. Internal CPU-cycle measurements were collected for prefix lengths 0–16 under two interrupt/barrier configurations, yielding 40,800 observations. Across prefix lengths 0–15, early-exit median timing rose by 40 cycles per matching byte on ESP32 and 25 on ESP8266. In the recorded sessions, 63 of 68 early-exit groups contained 300 identical readings, and all 17 group medians were distinct within each configuration. Fixed-work median timing did not vary with prefix length, although occasional elevated observations remained. These measurements characterize implementation-specific on-device timing leakage and the cost of the fixed-work routine; they neither establish binary-level constant-time behavior nor demonstrate a remotely observable attack.

Authors

Publication Details

Journal
Research Square
Published
2026-11-09
DOI
https://doi.org/10.21203/rs.3.rs-11639965/v1
Primary Topic
Cryptographic Implementations and Security
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Comparative Timing Characterization of Early-Exit and Fixed-Work Secret Comparisons on ESP32 and ESP8266

Abrar Sobhan
1 links
Research Square
Cryptographic Implementations and Security
preprint

Comparative Timing Characterization of Early-Exit and Fixed-Work Secret Comparisons on ESP32 and ESP8266

Abrar Sobhan
preprint en

Abstract

Abstract An early-exit secret comparison can expose matching-prefix length through execution timing. We quantify this behavior for 16-byte early-exit comparisons and a fixed-work XOR/OR alternative on ESP32 and ESP8266 microcontrollers. Internal CPU-cycle measurements were collected for prefix lengths 0–16 under two interrupt/barrier configurations, yielding 40,800 observations. Across prefix lengths 0–15, early-exit median timing rose by 40 cycles per matching byte on ESP32 and 25 on ESP8266. In the recorded sessions, 63 of 68 early-exit groups contained 300 identical readings, and all 17 group medians were distinct within each configuration. Fixed-work median timing did not vary with prefix length, although occasional elevated observations remained. These measurements characterize implementation-specific on-device timing leakage and the cost of the fixed-work routine; they neither establish binary-level constant-time behavior nor demonstrate a remotely observable attack.

Research Square
Cryptographic Implementations and Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon