Searched refs:tky (Results 1 – 2 of 2) sorted by relevance
/device/soc/esp/esp32/components/nvs_flash/src/ |
D | nvs_api.cpp | 577 cfg->tky[cnt] = 0xee; in nvs_flash_generate_keys() 580 cfg->tky[cnt] = 0x88; in nvs_flash_generate_keys() 595 err = esp_partition_write_raw(partition, NVS_KEY_SIZE, cfg->tky, NVS_KEY_SIZE); in nvs_flash_generate_keys() 605 err = esp_partition_read(partition, NVS_KEY_SIZE, cfg->tky, NVS_KEY_SIZE); in nvs_flash_generate_keys() 611 crc_calc = crc32_le(crc_calc, cfg->tky, NVS_KEY_SIZE); in nvs_flash_generate_keys() 631 auto check_if_initialized = [](uint8_t* eky, uint8_t* tky, uint32_t crc) { in nvs_flash_read_security_cfg() argument 633 while(cnt < NVS_KEY_SIZE && eky[cnt] == 0xff && tky[cnt] == 0xff) cnt++; in nvs_flash_read_security_cfg() 667 err = esp_partition_read(partition, NVS_KEY_SIZE, cfg->tky, NVS_KEY_SIZE); in nvs_flash_read_security_cfg() 680 crc_calc = crc32_le(crc_calc, cfg->tky, NVS_KEY_SIZE); in nvs_flash_read_security_cfg() 683 if(!check_if_initialized(cfg->eky, cfg->tky, crc_read)) { in nvs_flash_read_security_cfg()
|
/device/soc/esp/esp32/components/nvs_flash/include/ |
D | nvs_flash.h | 32 uint8_t tky[NVS_KEY_SIZE]; /*!< XTS tweak key */ member
|