[Concept,02/15] mbedtls: Allow use of base64
Commit Message
From: Simon Glass <simon.glass@canonical.com>
Add a configuration and a Makefile rule to provide access to the mbedtls
base64 support.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
lib/mbedtls/Makefile | 1 +
lib/mbedtls/mbedtls_def_config.h | 1 +
2 files changed, 2 insertions(+)
@@ -39,6 +39,7 @@ mbedtls_lib_crypto-$(CONFIG_$(PHASE_)PKCS5_MBEDTLS) += \
$(MBEDTLS_LIB_DIR)/pkcs5.o
mbedtls_lib_crypto-$(CONFIG_$(PHASE_)BLK_LUKS) += \
$(MBEDTLS_LIB_DIR)/aes.o \
+ $(MBEDTLS_LIB_DIR)/base64.o \
$(MBEDTLS_LIB_DIR)/cipher.o \
$(MBEDTLS_LIB_DIR)/cipher_wrap.o
@@ -65,6 +65,7 @@
#endif
#if CONFIG_IS_ENABLED(BLK_LUKS)
+#define MBEDTLS_BASE64_C
#define MBEDTLS_CIPHER_C
#define MBEDTLS_CIPHER_MODE_XTS
#define MBEDTLS_AES_C