/hal_espressif-3.6.0/components/mbedtls/port/aes/ |
D | esp_aes_common.c | 44 bool valid_len = (ctx->key_bytes == AES_128_KEY_BYTES) || (ctx->key_bytes == AES_256_KEY_BYTES); in valid_key_length() 47 valid_len |= ctx->key_bytes == AES_192_KEY_BYTES; in valid_key_length() 83 ctx->key_bytes = keybits / 8; in esp_aes_setkey() 84 memcpy(ctx->key, key, ctx->key_bytes); in esp_aes_setkey()
|
D | esp_aes_gcm.c | 265 ctx->aes_ctx.key_bytes = keybits / 8; in esp_aes_gcm_setkey() 267 memcpy(ctx->aes_ctx.key, key, ctx->aes_ctx.key_bytes); in esp_aes_gcm_setkey() 380 … ctx->aes_ctx.key_in_hardware = aes_hal_setkey(ctx->aes_ctx.key, ctx->aes_ctx.key_bytes, mode); in esp_aes_gcm_starts() 615 ctx->aes_ctx.key_in_hardware = aes_hal_setkey(ctx->aes_ctx.key, ctx->aes_ctx.key_bytes, mode); in esp_aes_gcm_crypt_and_tag()
|
/hal_espressif-3.6.0/components/mbedtls/port/aes/block/ |
D | esp_aes.c | 88 if (ctx->key_in_hardware != ctx->key_bytes) { in esp_aes_block() 139 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_ENCRYPT); in esp_internal_aes_encrypt() 168 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_DECRYPT); in esp_internal_aes_decrypt() 190 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, mode); in esp_aes_crypt_ecb() 223 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, mode); in esp_aes_crypt_cbc() 284 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_ENCRYPT); in esp_aes_crypt_cfb128() 336 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_ENCRYPT); in esp_aes_crypt_cfb8() 381 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_ENCRYPT); in esp_aes_crypt_ctr() 437 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_ENCRYPT); in esp_aes_crypt_ofb()
|
/hal_espressif-3.6.0/components/hal/ |
D | aes_hal.c | 23 uint8_t aes_hal_setkey(const uint8_t *key, size_t key_bytes, int mode) in aes_hal_setkey() argument 25 aes_ll_set_mode(mode, key_bytes); in aes_hal_setkey() 27 uint8_t key_bytes_in_hardware = aes_ll_write_key(key, key_bytes / 4); in aes_hal_setkey()
|
/hal_espressif-3.6.0/components/mbedtls/port/aes/dma/ |
D | esp_aes.c | 333 if (ctx->key_in_hardware != ctx->key_bytes) { in esp_aes_process_dma() 482 if (ctx->key_in_hardware != ctx->key_bytes) { in esp_aes_process_dma_gcm() 614 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_ENCRYPT); in esp_internal_aes_encrypt() 648 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_DECRYPT); in esp_internal_aes_decrypt() 684 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, mode); in esp_aes_crypt_ecb() 725 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, mode); in esp_aes_crypt_cbc() 778 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, mode); in esp_aes_crypt_cfb8() 797 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, MBEDTLS_AES_ENCRYPT); in esp_aes_crypt_cfb8() 884 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, mode); in esp_aes_crypt_cfb128() 957 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_DECRYPT); in esp_aes_crypt_ofb() [all …]
|
/hal_espressif-3.6.0/examples/security/flash_encryption/ |
D | example_test.py | 44 key_bytes = b'\x00' * 32 47 key_bytes = b'\xff' + b'\x00' * 31 52 …args = EncryptFlashDataArgs(BytesIO(), BytesIO(plain_data), flash_addr, BytesIO(key_bytes), 0xF, a…
|
/hal_espressif-3.6.0/components/hal/esp32/include/hal/ |
D | aes_ll.h | 68 static inline void aes_ll_set_mode(int mode, uint8_t key_bytes) in aes_ll_set_mode() argument 74 DPORT_REG_WRITE(AES_MODE_REG, mode_reg_base + ((key_bytes / 8) - 2)); in aes_ll_set_mode()
|
/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/ |
D | aes_ll.h | 65 static inline void aes_ll_set_mode(int mode, uint8_t key_bytes) in aes_ll_set_mode() argument 71 REG_WRITE(AES_MODE_REG, mode_reg_base + ((key_bytes / 8) - 2)); in aes_ll_set_mode()
|
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/ |
D | aes_ll.h | 65 static inline void aes_ll_set_mode(int mode, uint8_t key_bytes) in aes_ll_set_mode() argument 71 REG_WRITE(AES_MODE_REG, mode_reg_base + ((key_bytes / 8) - 2)); in aes_ll_set_mode()
|
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/ |
D | aes_ll.h | 65 static inline void aes_ll_set_mode(int mode, uint8_t key_bytes) in aes_ll_set_mode() argument 71 REG_WRITE(AES_MODE_REG, mode_reg_base + ((key_bytes / 8) - 2)); in aes_ll_set_mode()
|
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/ |
D | aes_ll.h | 66 static inline void aes_ll_set_mode(int mode, uint8_t key_bytes) in aes_ll_set_mode() argument 72 REG_WRITE(AES_MODE_REG, mode_reg_base + ((key_bytes / 8) - 2)); in aes_ll_set_mode()
|
/hal_espressif-3.6.0/components/hal/include/hal/ |
D | aes_hal.h | 43 uint8_t aes_hal_setkey(const uint8_t *key, size_t key_bytes, int mode);
|
/hal_espressif-3.6.0/components/mbedtls/port/include/aes/ |
D | esp_aes.h | 43 uint8_t key_bytes; member
|
/hal_espressif-3.6.0/components/mbedtls/test/ |
D | test_aes_sha_rsa.c | 40 .key_bytes = 16, in aes_task()
|