nvs_sec_provider_register_flash_enc() function
Register the Flash-Encryption based scheme for NVS Encryption
Arguments
sec_scheme_cfg
Security scheme specific configuration data
sec_scheme_handle_out
Security scheme specific configuration handle
Return value
- ESP_OK, if `sec_scheme_handle_out` was populated successfully with the scheme configuration; - ESP_ERR_INVALID_ARG, if `scheme_cfg_hmac` is NULL; - ESP_ERR_NO_MEM, No memory for the scheme-specific handle `sec_scheme_handle_out` - ESP_ERR_NOT_FOUND, if no `nvs_keys` partition is found