From 1be1207bdc29a3089c5b8eda874e7ff9a8e229eb Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 8 Mar 2026 12:19:01 -1000 Subject: [PATCH] Revert "Merge branch 'libsodium-native-le' into integration" This reverts commit 94fb2ae556d1ff5676250371ed21bd05ea81ce83, reversing changes made to 947115b1cf7019ddccd08526fe6070f42216ad0b. --- esphome/components/api/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/esphome/components/api/__init__.py b/esphome/components/api/__init__.py index 5f1f0f884b5..dd99862cc27 100644 --- a/esphome/components/api/__init__.py +++ b/esphome/components/api/__init__.py @@ -453,10 +453,6 @@ async def to_code(config: ConfigType) -> None: # and plaintext disabled. Only a factory reset can remove it. cg.add_define("USE_API_PLAINTEXT") cg.add_define("USE_API_NOISE") - # libsodium uses NATIVE_LITTLE_ENDIAN to enable optimized 32-bit - # load/store via memcpy instead of byte-at-a-time operations in - # poly1305 and chacha20. All ESPHome targets are little-endian. - cg.add_build_flag("-DNATIVE_LITTLE_ENDIAN") cg.add_library("esphome/noise-c", "0.1.10") else: cg.add_define("USE_API_PLAINTEXT")