Add option to use MBEDTLS library to perform the flash area integrity check. Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
The commit separates conditionally compiled API calls to separate C files and moves conditional compilation to CMakeLists.txt. Inline helpers have been moved to flash_map_priv.h. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>