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