Function esp_idf_svc::sys::nvs_flash_generate_keys
source ยท pub unsafe extern "C" fn nvs_flash_generate_keys(
partition: *const esp_partition_t,
cfg: *mut nvs_sec_cfg_t,
) -> i32
Expand description
@brief Generate and store NVS keys in the provided esp partition
@param[in] partition Pointer to partition structure obtained using esp_partition_find_first or esp_partition_get. Must be non-NULL. @param[out] cfg Pointer to nvs security configuration structure. Pointer must be non-NULL. Generated keys will be populated in this structure.
@return - ESP_OK, if cfg was read successfully; - ESP_ERR_INVALID_ARG, if partition or cfg is NULL; - or error codes from esp_partition_write/erase APIs.