API encryption switch to libsodium backend (#2456)

This commit is contained in:
Otto Winter 2021-10-06 22:36:12 +02:00 committed by Otto winter
parent d9b2903d78
commit 95d7ad543f
No known key found for this signature in database
GPG key ID: 48ED2DDB96D7682C
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ async def to_code(config):
decoded = base64.b64decode(conf[CONF_KEY]) decoded = base64.b64decode(conf[CONF_KEY])
cg.add(var.set_noise_psk(list(decoded))) cg.add(var.set_noise_psk(list(decoded)))
cg.add_define("USE_API_NOISE") cg.add_define("USE_API_NOISE")
cg.add_library("esphome/noise-c", "0.1.1") cg.add_library("esphome/noise-c", "0.1.3")
else: else:
cg.add_define("USE_API_PLAINTEXT") cg.add_define("USE_API_PLAINTEXT")

View file

@ -36,7 +36,7 @@ lib_deps =
6306@1.0.3 ; HM3301 6306@1.0.3 ; HM3301
glmnet/Dsmr@0.3 ; used by dsmr glmnet/Dsmr@0.3 ; used by dsmr
rweather/Crypto@0.2.0 ; used by dsmr rweather/Crypto@0.2.0 ; used by dsmr
esphome/noise-c@0.1.1 ; used by api esphome/noise-c@0.1.3 ; used by api
dudanov/MideaUART@1.1.8 ; used by midea dudanov/MideaUART@1.1.8 ; used by midea
build_flags = build_flags =