nvs_flash_register_security_scheme() function
Registers the given security scheme for NVS encryption The scheme registered with sec_scheme_id by this API be used as the default security scheme for the "nvs" partition. Users will have to call this API explicitly in their application.
Arguments
scheme_cfg
Pointer to the security scheme configuration structure that the user (or the nvs_key_provider) wants to register.
Return value
- ESP_OK, if security scheme registration succeeds; - ESP_ERR_INVALID_ARG, if scheme_cfg is NULL; - ESP_FAIL, if security scheme registration fails