Searched refs:AES_BLOCK_BYTES (Results 1 – 3 of 3) sorted by relevance
/hal_espressif-latest/components/mbedtls/port/aes/ |
D | esp_aes_gcm.c | 60 memset(ctx->J0, 0, AES_BLOCK_BYTES); in esp_gcm_derive_J0() 61 memset(len_buf, 0, AES_BLOCK_BYTES); in esp_gcm_derive_J0() 66 ctx->J0[AES_BLOCK_BYTES - 1] |= 1; in esp_gcm_derive_J0() 90 uint8_t j_len = AES_BLOCK_BYTES; in increment32_j0() 91 memcpy(j, ctx->J0, AES_BLOCK_BYTES); in increment32_j0() 98 memcpy(ctx->J0, j, AES_BLOCK_BYTES); in increment32_j0() 105 for (int i = 0; i < AES_BLOCK_BYTES; i++) { in xor_data() 303 uint8_t tmp[AES_BLOCK_BYTES]; in esp_gcm_ghash() 305 memset(tmp, 0, AES_BLOCK_BYTES); in esp_gcm_ghash() 319 while (x_len >= AES_BLOCK_BYTES) { in esp_gcm_ghash() [all …]
|
/hal_espressif-latest/components/mbedtls/port/aes/dma/ |
D | esp_aes.c | 107 static DRAM_ATTR uint8_t s_stream_in[AES_BLOCK_BYTES]; 108 static DRAM_ATTR uint8_t s_stream_out[AES_BLOCK_BYTES]; 340 unsigned stream_bytes = len % AES_BLOCK_BYTES; // bytes which aren't in a full block in esp_aes_process_dma() 342 unsigned blocks = (block_bytes / AES_BLOCK_BYTES) + ((stream_bytes > 0) ? 1 : 0); in esp_aes_process_dma() 419 memset(s_stream_in, 0, AES_BLOCK_BYTES); in esp_aes_process_dma() 420 memset(s_stream_out, 0, AES_BLOCK_BYTES); in esp_aes_process_dma() 424 lldesc_setup_link(&s_stream_in_desc, s_stream_in, AES_BLOCK_BYTES, 0); in esp_aes_process_dma() 425 lldesc_setup_link(&s_stream_out_desc, s_stream_out, AES_BLOCK_BYTES, 0); in esp_aes_process_dma() 474 memcpy(stream_out, s_stream_out, AES_BLOCK_BYTES); in esp_aes_process_dma() 505 unsigned stream_bytes = len % AES_BLOCK_BYTES; // bytes which aren't in a full block in esp_aes_process_dma_gcm() [all …]
|
/hal_espressif-latest/components/hal/include/hal/ |
D | aes_types.h | 34 #define AES_BLOCK_BYTES (16) macro
|