zephyr/subsys/storage/flash_map/Kconfig
Yong Cong Sin 113c6f249e storage/flash_map: Add option to use MBEDTLS for img integrity check.
Add option to use MBEDTLS library to perform the flash area
integrity check.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2021-11-24 21:52:08 -05:00

61 lines
1.4 KiB
Text

# Flash map abstraction module
# Copyright (c) 2017 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
#
# Flash map
#
menuconfig FLASH_MAP
bool "Flash map abstraction module"
depends on FLASH_HAS_DRIVER_ENABLED
help
Enable support of flash map abstraction.
if FLASH_MAP
config FLASH_MAP_SHELL
bool "Enable flash map shell interface"
depends on SHELL
help
This enables shell commands to list and test flash maps.
config FLASH_MAP_CUSTOM
bool "Custom flash map description"
help
This option enables custom flash map description.
User must provide such a description in place of default on
if had enabled this option.
config FLASH_AREA_CHECK_INTEGRITY
bool "Enable flash check functions"
help
If enabled, there will be available the backend to check flash
integrity using SHA-256 verification algorithm.
if FLASH_AREA_CHECK_INTEGRITY
choice
prompt "Crypto backend for the flash check functions"
default FLASH_AREA_CHECK_INTEGRITY_TC
config FLASH_AREA_CHECK_INTEGRITY_TC
bool "Use TinyCrypt"
select TINYCRYPT
select TINYCRYPT_SHA256
help
Use TinyCrypt library to perform the integrity check.
config FLASH_AREA_CHECK_INTEGRITY_MBEDTLS
bool "Use MBEDTLS"
select MBEDTLS
select MBEDTLS_MD
select MBEDTLS_MAC_SHA256_ENABLED
select MBEDTLS_ENABLE_HEAP
help
Use MBEDTLS library to perform the integrity check.
endchoice
endif
endif