mirror of
https://github.com/esphome/esphome.git
synced 2026-07-11 01:15:33 +00:00
cc58cffb7b8f26e783b3fbd581ed17a0e70f98f3
Without these flags, libsodium's sodium_memzero() falls through to the slowest fallback: a volatile byte-by-byte zeroing loop. With them, it uses memset() guarded by a weak-symbol call and inline asm memory clobber, which is significantly faster. This also improves sodium_memcmp() and sodium_compare() codegen by allowing non-volatile pointer access with weak barriers, and enables a timing-safe comparison optimization in crypto_verify. Both flags are safe for all ESPHome targets: __attribute__((weak)) and __asm__ are core GCC features supported by all toolchains (Xtensa, RISC-V, ARM, x86_64).
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
549 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
