The experiment evaluated the performance of AES-GCM, legacy Ascon-128, and NIST Ascon-AEAD128 on ESP32 (240 MHz) and ESP8266 (80 MHz) microcontrollers. The study aimed to determine how these cryptographic implementations impact processing time, memory usage, and energy consumption during telemetry transmission.
Researchers used a setup consisting of the microcontrollers, a laptop running a Python application, a TP-Link access point, and a TC66C USB power meter. The test scenarios included three profiles with varying packet sizes and transmission intervals, ranging from 2970 to 9000 messages per run.
On the ESP32, AES-GCM proved approximately 22% faster than legacy Ascon-128. Conversely, on the ESP8266, legacy Ascon-128 outperformed AES-GCM by approximately 3.5 times. The NIST Ascon C++ implementation was the most time-consuming across both platforms.
The study identified network bottlenecks, specifically ENOMEM and ENOBUFS errors on the ESP32 during high-load tests. In the MAX profile, local transmission accounted for 90–97% of the measured cycle time, indicating that network stack limitations, rather than cryptographic overhead, were the primary cause of transmission failures.
The findings emphasize that performance results are highly dependent on the specific library, platform, and compilation rather than the algorithm itself. The researchers concluded that optimizing the AEAD implementation alone is insufficient to resolve network-related delivery issues under heavy load.




