Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 11 of 11) sorted by relevance

/hal_espressif-3.5.0/components/wpa_supplicant/src/crypto/
Dccmp.c20 u8 *aad, size_t *aad_len, u8 *nonce) in ccmp_aad_nonce() argument
50 WPA_PUT_LE16(aad, fc); in ccmp_aad_nonce()
51 pos = aad + 2; in ccmp_aad_nonce()
69 *aad_len = pos - aad; in ccmp_aad_nonce()
83 u8 *aad, size_t *aad_len, u8 *nonce) in ccmp_aad_nonce_pv1() argument
99 WPA_PUT_LE16(aad, fc); in ccmp_aad_nonce_pv1()
100 pos = aad + 2; in ccmp_aad_nonce_pv1()
127 *aad_len = pos - aad; in ccmp_aad_nonce_pv1()
142 u8 aad[30], nonce[13]; in ccmp_decrypt() local
157 os_memset(aad, 0, sizeof(aad)); in ccmp_decrypt()
[all …]
Daes-gcm.c229 static void aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, in aes_gcm_ghash() argument
241 ghash(H, aad, aad_len, S); in aes_gcm_ghash()
256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) in aes_gcm_ae() argument
272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S); in aes_gcm_ae()
290 const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) in aes_gcm_ad() argument
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
323 const u8 *aad, size_t aad_len, u8 *tag) in aes_gmac() argument
325 return aes_gcm_ae(key, key_len, iv, iv_len, NULL, 0, aad, aad_len, NULL, in aes_gmac()
Daes_wrap.h55 const u8 *aad, size_t aad_len,
60 const u8 *aad, size_t aad_len, const u8 *tag,
64 const u8 *aad, size_t aad_len, u8 *tag);
67 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
70 const u8 *aad, size_t aad_len, const u8 *auth,
Daes-ccm.c30 const u8 *aad, size_t aad_len, size_t plain_len, in aes_ccm_auth_start() argument
51 os_memcpy(aad_buf + 2, aad, aad_len); in aes_ccm_auth_start()
151 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument
164 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, plain_len, x); in aes_ccm_ae()
181 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) in aes_ccm_ad() argument
202 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x); in aes_ccm_ad()
Dcrypto_ops.c40 const u8 *aad, size_t aad_len, u8 *tag) in esp_aes_gmac() argument
43 return aes_gmac(key, key_len, iv, iv_len, aad, aad_len, tag); in esp_aes_gmac()
Dcrypto_mbedtls.c710 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument
724 ret = mbedtls_ccm_encrypt_and_tag(&ccm, plain_len, nonce, 13, aad, in aes_ccm_ae()
735 const u8 *aad, size_t aad_len, const u8 *auth, in aes_ccm_ad() argument
750 nonce, 13, aad, aad_len, in aes_ccm_ad()
/hal_espressif-3.5.0/components/mbedtls/port/aes/
Desp_aes_gcm.c340 const unsigned char *aad, in esp_aes_gcm_starts() argument
361 if ( (aad_len > 0) && !aad) { in esp_aes_gcm_starts()
372 ctx->aad = aad; in esp_aes_gcm_starts()
401 esp_gcm_ghash(ctx, ctx->aad, ctx->aad_len, ctx->ghash); in esp_aes_gcm_starts()
492 static bool esp_aes_gcm_input_support_hw_accel(size_t length, const unsigned char *aad, size_t aad_… in esp_aes_gcm_input_support_hw_accel() argument
499 } else if (!esp_ptr_dma_capable(aad) && aad_len > 0) { in esp_aes_gcm_input_support_hw_accel()
525 const unsigned char *aad, in esp_aes_gcm_crypt_and_tag_partial_hw() argument
534 if ( ( ret = esp_aes_gcm_starts( ctx, mode, iv, iv_len, aad, aad_len ) ) != 0 ) { in esp_aes_gcm_crypt_and_tag_partial_hw()
554 const unsigned char *aad, in esp_aes_gcm_crypt_and_tag() argument
570 if (!esp_aes_gcm_input_support_hw_accel(length, aad, aad_len, input, output, stream_in)) { in esp_aes_gcm_crypt_and_tag()
[all …]
/hal_espressif-3.5.0/components/mbedtls/test/
Dtest_aes_gcm.c384 uint8_t aad[16]; variable
388 memset(aad, 0x76, 16);
401 …TEST_ASSERT(mbedtls_gcm_starts( &ctx, MBEDTLS_AES_ENCRYPT, iv, sizeof(iv), aad, sizeof(aad) ) == 0…
445 uint8_t aad[16]; variable
449 memset(aad, 0x76, 16);
461 …mbedtls_gcm_crypt_and_tag(&ctx, MBEDTLS_AES_ENCRYPT, CALL_SZ, iv, sizeof(iv), aad, sizeof(aad), bu…
/hal_espressif-3.5.0/components/mbedtls/port/include/aes/
Desp_aes_gcm.h59 const unsigned char *aad; /*!< The additional data. */ member
112 const unsigned char *aad,
/hal_espressif-3.5.0/components/bt/esp_ble_mesh/mesh_core/
Dcrypto.c197 const uint8_t *aad, size_t aad_len, in bt_mesh_ccm_decrypt() argument
247 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_decrypt()
261 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_decrypt()
356 const uint8_t *aad, size_t aad_len, in bt_mesh_ccm_encrypt() argument
412 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_encrypt()
426 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_encrypt()
/hal_espressif-3.5.0/components/esp_wifi/include/
Desp_wifi_crypto_types.h366 const uint8_t *aad, size_t aad_len, uint8_t *mic);