esp_flash_encryption_cfg_verify_release_mode() function
Returns the verification status for all physical security features of flash encryption in release mode If the device has flash encryption feature configured in the release mode, then it is highly recommended to call this API in the application startup code. This API verifies the sanity of the eFuse configuration against the release (production) mode of the flash encryption feature.