Lines Matching refs:key_part
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)));
383 … TEST_ESP_ERR(ESP_ERR_NVS_KEYS_NOT_INITIALIZED, nvs_flash_read_security_cfg(key_part, &cfg));
385 TEST_ESP_OK(nvs_flash_generate_keys(key_part, &cfg));
460 const esp_partition_t* key_part = esp_partition_find_first(
466 assert(key_part && "partition table must have a KEY partition");
472 ESP_ERROR_CHECK(esp_partition_erase_range(key_part, 0, key_part->size));
475 for (int i = 0; i < key_part->size; i+= SPI_FLASH_SEC_SIZE) {
476 ESP_ERROR_CHECK( esp_partition_write(key_part, i, nvs_key_start + i, SPI_FLASH_SEC_SIZE) );
483 esp_err_t err = nvs_flash_read_security_cfg(key_part, &xts_cfg);