Home
last modified time | relevance | path

Searched refs:J0 (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Daes-gcm.c192 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0) in aes_gcm_prepare_j0() argument
198 os_memcpy(J0, iv, iv_len); in aes_gcm_prepare_j0()
199 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0()
200 J0[AES_BLOCK_SIZE - 1] = 0x01; in aes_gcm_prepare_j0()
206 ghash_start(J0); in aes_gcm_prepare_j0()
207 ghash(H, iv, iv_len, J0); in aes_gcm_prepare_j0()
210 ghash(H, len_buf, sizeof(len_buf), J0); in aes_gcm_prepare_j0()
215 static void aes_gcm_gctr(void *aes, const u8 *J0, const u8 *in, size_t len, in aes_gcm_gctr() argument
223 os_memcpy(J0inc, J0, AES_BLOCK_SIZE); in aes_gcm_gctr()
259 u8 J0[AES_BLOCK_SIZE]; in aes_gcm_ae() local
[all …]
/hal_espressif-latest/components/mbedtls/port/aes/
Desp_aes_gcm.c60 memset(ctx->J0, 0, AES_BLOCK_BYTES); in esp_gcm_derive_J0()
65 memcpy(ctx->J0, ctx->iv, ctx->iv_len); in esp_gcm_derive_J0()
66 ctx->J0[AES_BLOCK_BYTES - 1] |= 1; in esp_gcm_derive_J0()
70 esp_gcm_ghash(ctx, ctx->iv, ctx->iv_len, ctx->J0); in esp_gcm_derive_J0()
75 esp_gcm_ghash(ctx, len_buf, 16, ctx->J0); in esp_gcm_derive_J0()
91 memcpy(j, ctx->J0, AES_BLOCK_BYTES); in increment32_j0()
98 memcpy(ctx->J0, j, AES_BLOCK_BYTES); in increment32_j0()
439 memcpy(ctx->ori_j0, ctx->J0, 16); in esp_aes_gcm_starts()
534 memcpy(nonce_counter, ctx->J0, AES_BLOCK_BYTES); in esp_aes_gcm_update()
549 memcpy(ctx->J0, nonce_counter, AES_BLOCK_BYTES); in esp_aes_gcm_update()
[all …]
/hal_espressif-latest/components/mbedtls/port/include/aes/
Desp_aes_gcm.h33 uint8_t J0[16]; member