From 1b0454f6bc94e7f4401967983d35c1cdd4ecaa5f Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Tue, 21 Nov 2023 17:12:01 +0100 Subject: [PATCH] Fix AES CBC (#20078) --- lib/libesp32/berry_tasmota/src/be_crypto_lib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libesp32/berry_tasmota/src/be_crypto_lib.c b/lib/libesp32/berry_tasmota/src/be_crypto_lib.c index 26ebed275..4e32720a9 100644 --- a/lib/libesp32/berry_tasmota/src/be_crypto_lib.c +++ b/lib/libesp32/berry_tasmota/src/be_crypto_lib.c @@ -79,6 +79,10 @@ extern const bclass be_class_md5; const be_const_member_t be_crypto_members[] = { // name with prefix '/' indicates a Berry class // entries need to be sorted (ignoring the prefix char) +#ifdef USE_BERRY_CRYPTO_AES_CBC + { "/AES_CBC", (intptr_t) &be_class_aes_cbc }, +#endif // USE_BERRY_CRYPTO_AES_CBC + #ifdef USE_BERRY_CRYPTO_AES_CCM { "/AES_CCM", (intptr_t) &be_class_aes_ccm }, #endif // USE_BERRY_CRYPTO_AES_CTR @@ -91,10 +95,6 @@ const be_const_member_t be_crypto_members[] = { { "/AES_GCM", (intptr_t) &be_class_aes_gcm }, #endif // USE_BERRY_CRYPTO_AES_GCM -#ifdef USE_BERRY_CRYPTO_AES_CBC - { "/AES_CBC", (intptr_t) &be_class_aes_cbc }, -#endif // USE_BERRY_CRYPTO_AES_CBC - #ifdef USE_BERRY_CRYPTO_EC_C25519 { "/EC_C25519", (intptr_t) &be_class_ec_c25519 }, #endif // USE_BERRY_CRYPTO_EC_C25519