Home
last modified time | relevance | path

Searched refs:eky (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/nvs_flash/src/
Dnvs_api.cpp592 cfg->eky[cnt] = 0xff; in nvs_flash_generate_keys()
595 cfg->eky[cnt] = 0x99; in nvs_flash_generate_keys()
605 err = esp_partition_write_raw(partition, 0, cfg->eky, NVS_KEY_SIZE); in nvs_flash_generate_keys()
616 err = esp_partition_read(partition, 0, cfg->eky, NVS_KEY_SIZE); in nvs_flash_generate_keys()
626 uint32_t crc_calc = esp_rom_crc32_le(0xffffffff, cfg->eky, NVS_KEY_SIZE); in nvs_flash_generate_keys()
651 auto check_if_initialized = [](uint8_t* eky, uint8_t* tky, uint32_t crc) { in nvs_flash_read_security_cfg() argument
653 while(cnt < NVS_KEY_SIZE && eky[cnt] == 0xff && tky[cnt] == 0xff) cnt++; in nvs_flash_read_security_cfg()
681 err = esp_partition_read(partition, 0, cfg->eky, NVS_KEY_SIZE); in nvs_flash_read_security_cfg()
699 crc_calc = esp_rom_crc32_le(0xffffffff, cfg->eky, NVS_KEY_SIZE); in nvs_flash_read_security_cfg()
703 if(!check_if_initialized(cfg->eky, cfg->tky, crc_read)) { in nvs_flash_read_security_cfg()
Dnvs_encrypted_partition.cpp26 uint8_t* eky = reinterpret_cast<uint8_t*>(cfg); in init() local
31 if (mbedtls_aes_xts_setkey_enc(&mEctxt, eky, 2 * NVS_KEY_SIZE * 8) != 0) { in init()
35 if (mbedtls_aes_xts_setkey_dec(&mDctxt, eky, 2 * NVS_KEY_SIZE * 8) != 0) { in init()
/hal_espressif-3.6.0/components/nvs_flash/test_nvs_host/
Dtest_nvs_partition.cpp34 xts_cfg.eky[count] = 0x11;
47 xts_cfg.eky[count] = 0x11;
Dtest_nvs.cpp2937 char eky[][2 * NVS_KEY_SIZE + 1] = { variable
2962 for(uint8_t cnt = 0; cnt < sizeof(eky)/sizeof(eky[0]); cnt++) {
2963 toHexStream(eky[cnt], eky_hex);
2986 xts_cfg.eky[count] = 0x11;
3081 cfg.eky[count] = 0x11;
3214 cfg.eky[count] = buffer[count] & 255;
3281 cfg.eky[count] = buffer[count] & 255;
3378 cfg.eky[count] = 0x11;
3498 cfg.eky[count] = buffer[count] & 255;
/hal_espressif-3.6.0/components/nvs_flash/include/
Dnvs_flash.h31 uint8_t eky[NVS_KEY_SIZE]; /*!< XTS encryption and decryption key*/ member