Home
last modified time | relevance | path

Searched refs:encrypt_buf (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.4.0/components/spi_flash/esp32/
Dflash_ops_esp32.c51 uint8_t encrypt_buf[32] __attribute__((aligned(4))); in spi_flash_write_encrypted_chip() local
60 memcpy(encrypt_buf + 16, ssrc + i, 16); in spi_flash_write_encrypted_chip()
62 spi_flash_read_encrypted(row_addr, encrypt_buf, 16); in spi_flash_write_encrypted_chip()
67 memcpy(encrypt_buf, ssrc + i, 16); in spi_flash_write_encrypted_chip()
69 spi_flash_read_encrypted(row_addr + 16, encrypt_buf + 16, 16); in spi_flash_write_encrypted_chip()
73 memcpy(encrypt_buf, ssrc + i, 32); in spi_flash_write_encrypted_chip()
78 rc = esp_rom_spiflash_write_encrypted(row_addr, (uint32_t *)encrypt_buf, 32); in spi_flash_write_encrypted_chip()
84 memset(encrypt_buf, 0, sizeof(encrypt_buf)); in spi_flash_write_encrypted_chip()
/hal_espressif-3.4.0/components/spi_flash/
Desp_flash_api.c975 uint8_t encrypt_buf[64] __attribute__((aligned(4))); in esp_flash_write_encrypted() local
987 memcpy(encrypt_buf + 16, ssrc + i, row_size); in esp_flash_write_encrypted()
989 esp_flash_read_encrypted(chip, row_addr, encrypt_buf, 16); in esp_flash_write_encrypted()
994 memcpy(encrypt_buf, ssrc + i, row_size); in esp_flash_write_encrypted()
996 esp_flash_read_encrypted(chip, row_addr + 16, encrypt_buf + 16, 16); in esp_flash_write_encrypted()
1000 memcpy(encrypt_buf, ssrc + i, row_size); in esp_flash_write_encrypted()
1007 memcpy(encrypt_buf, ssrc + i, row_size); in esp_flash_write_encrypted()
1010 memcpy(encrypt_buf, ssrc + i, row_size); in esp_flash_write_encrypted()
1013 memcpy(encrypt_buf, ssrc + i, row_size); in esp_flash_write_encrypted()
1032 … err = chip->chip_drv->write_encrypted(chip, (uint32_t *)encrypt_buf, row_addr, encrypt_byte); in esp_flash_write_encrypted()