Searched refs:key_part (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.6.0/components/nvs_flash/test/ |
D | test_nvs.c | 337 const esp_partition_t* key_part = esp_partition_find_first( 344 TEST_ESP_OK(esp_partition_erase_range(key_part, 0, key_part->size)); 345 TEST_ESP_ERR(ESP_ERR_NVS_KEYS_NOT_INITIALIZED, nvs_flash_read_security_cfg(key_part, &cfg)); 347 TEST_ESP_OK(nvs_flash_generate_keys(key_part, &cfg)); 349 TEST_ESP_OK(nvs_flash_read_security_cfg(key_part, &cfg2)); 360 const esp_partition_t* key_part = esp_partition_find_first( 363 assert(key_part && "partition table must have an NVS Key partition"); 369 ESP_ERROR_CHECK( esp_partition_erase_range(key_part, 0, key_part->size) ); 377 esp_err_t err = nvs_flash_read_security_cfg(key_part, &cfg); 381 TEST_ESP_OK(esp_partition_write(key_part, 0, value, sizeof(value))); [all …]
|
/hal_espressif-3.6.0/components/nvs_flash/src/ |
D | nvs_api.cpp | 142 const esp_partition_t *key_part = esp_partition_find_first( in nvs_flash_init() local 144 if (key_part == NULL) { in nvs_flash_init() 150 ret = nvs_flash_read_security_cfg(key_part, &cfg); in nvs_flash_init() 153 ret = nvs_flash_generate_keys(key_part, &cfg); in nvs_flash_init()
|