Home
last modified time | relevance | path

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

12

/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/crypto/
Dccmp.c18 u8 *aad, size_t *aad_len, u8 *nonce) in ccmp_aad_nonce() argument
48 WPA_PUT_LE16(aad, fc); in ccmp_aad_nonce()
49 pos = aad + 2; in ccmp_aad_nonce()
68 *aad_len = pos - aad; in ccmp_aad_nonce()
82 u8 *aad, size_t *aad_len, u8 *nonce) in ccmp_aad_nonce_pv1() argument
98 WPA_PUT_LE16(aad, fc); in ccmp_aad_nonce_pv1()
99 pos = aad + 2; in ccmp_aad_nonce_pv1()
126 *aad_len = pos - aad; in ccmp_aad_nonce_pv1()
141 u8 aad[30], nonce[13]; in ccmp_decrypt() local
155 os_memset(aad, 0, sizeof(aad)); in ccmp_decrypt()
[all …]
Dgcmp.c17 u8 *aad, size_t *aad_len, u8 *nonce) in gcmp_aad_nonce() argument
42 WPA_PUT_LE16(aad, fc); in gcmp_aad_nonce()
43 pos = aad + 2; in gcmp_aad_nonce()
51 wpa_printf(_MSG_INFO_, "pos - aad = %u, qos(%d)\n", (pos - aad), qos); in gcmp_aad_nonce()
64 wpa_printf(_MSG_INFO_, "pos - aad = %u\n", (pos - aad)); in gcmp_aad_nonce()
65 *aad_len = pos - aad; in gcmp_aad_nonce()
88 u8 aad[30], nonce[12], *plain; in gcmp_decrypt() local
102 os_memset(aad, 0, sizeof(aad)); in gcmp_decrypt()
103 gcmp_aad_nonce(padapter, hdr, data, aad, &aad_len, nonce); in gcmp_decrypt()
104 wpa_hexdump(_MSG_EXCESSIVE_, "GCMP AAD", aad, aad_len); in gcmp_decrypt()
[all …]
Daes-gcm.c228 static void aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, in aes_gcm_ghash() argument
240 ghash(H, aad, aad_len, S); in aes_gcm_ghash()
255 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) in aes_gcm_ae() argument
271 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S); in aes_gcm_ae()
289 const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) in aes_gcm_ad() argument
305 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
322 const u8 *aad, size_t aad_len, u8 *tag) in aes_gmac() argument
324 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.c28 const u8 *aad, size_t aad_len, size_t plain_len, in aes_ccm_auth_start() argument
49 os_memcpy(aad_buf + 2, aad, aad_len); in aes_ccm_auth_start()
149 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument
162 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, plain_len, x); in aes_ccm_ae()
179 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) in aes_ccm_ad() argument
200 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x); in aes_ccm_ad()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/
Dwpa.c314 static void ccmp_special_blocks(struct sk_buff *skb, u8 *pn, u8 *b_0, u8 *aad) in ccmp_special_blocks() argument
362 put_unaligned_be16(len_a, &aad[0]); in ccmp_special_blocks()
363 put_unaligned(mask_fc, (__le16 *)&aad[2]); in ccmp_special_blocks()
364 memcpy(&aad[4], &hdr->addr1, 3 * ETH_ALEN); in ccmp_special_blocks()
367 aad[22] = *((u8 *) &hdr->seq_ctrl) & 0x0f; in ccmp_special_blocks()
368 aad[23] = 0; in ccmp_special_blocks()
371 memcpy(&aad[24], hdr->addr4, ETH_ALEN); in ccmp_special_blocks()
372 aad[30] = qos_tid; in ccmp_special_blocks()
373 aad[31] = 0; in ccmp_special_blocks()
375 memset(&aad[24], 0, ETH_ALEN + IEEE80211_QOS_CTL_LEN); in ccmp_special_blocks()
[all …]
Daes_ccm.h22 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_encrypt() argument
25 return aead_encrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_encrypt()
26 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_encrypt()
32 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_decrypt() argument
35 return aead_decrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_decrypt()
36 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_decrypt()
Daes_gcm.h14 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_encrypt() argument
17 return aead_encrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_encrypt()
18 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_encrypt()
23 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_decrypt() argument
26 return aead_decrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_decrypt()
27 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_decrypt()
Daes_cmac.c24 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
33 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac()
40 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
48 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac_256()
Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument
32 memcpy(__aad, aad, aad_len); in aead_encrypt()
49 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() argument
67 memcpy(__aad, aad, aad_len); in aead_decrypt()
Daes_cmac.h14 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
16 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
Daead_api.h15 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
19 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument
34 memcpy(__aad, aad, GMAC_AAD_LEN); in ieee80211_aes_gmac()
Daes_gmac.h19 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/
Dext_aead.c36 compat_addr aad; /* Associated Data */ member
44 crypto_mem aad; member
139 hi_s32 ext_mbedtls_aead_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen) in ext_mbedtls_aead_set_aad() argument
147 aead->aad = aad; in ext_mbedtls_aead_set_aad()
177 static hi_s32 ext_ccm_gcm_mem_open(ext_ccm_gcm_mem *mem, symc_multi_pack *pack, compat_addr aad, hi… in ext_ccm_gcm_mem_open() argument
194 ret = crypto_mem_open(&mem->aad, aad, aad_len); in ext_ccm_gcm_mem_open()
209 ret = crypto_mem_close(&mem->aad); in ext_ccm_gcm_mem_close()
248 ret = ext_ccm_gcm_mem_open(&mem, pack, aead->aad, aead->alen); in ext_mbedtls_aead_ccm_crypto()
265 …tls_ccm_auth_decrypt(&ccm, pack->len[0], (hi_u8 *)aead->iv, aead->ivlen, crypto_mem_virt(&mem.aad), in ext_mbedtls_aead_ccm_crypto()
271 …_ccm_encrypt_and_tag(&ccm, pack->len[0], (hi_u8 *)aead->iv, aead->ivlen, crypto_mem_virt(&mem.aad), in ext_mbedtls_aead_ccm_crypto()
[all …]
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/
Dchachapoly.h214 const unsigned char *aad,
304 const unsigned char *aad,
338 const unsigned char *aad,
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
Dat_demo_hks.c162 hi_u8 aad[ENC_PARAM_AAD_LEN]; member
213 hks_encry_param->aad.data = enc_param->aad; in hks_get_enc_param()
214 hks_encry_param->aad.size = enc_param->aad_size; in hks_get_enc_param()
302 memcpy_s(enc_param->aad, sizeof(enc_param->aad), aad_data, strlen(aad_data)); in hks_create_conn_enc_param()
306 blob_enc_param->aad.data = enc_param->aad; in hks_create_conn_enc_param()
307 blob_enc_param->aad.size = enc_param->aad_size; in hks_create_conn_enc_param()
577 memcpy_s(enc_param->aad, sizeof(enc_param->aad), aad_data, strlen(aad_data)); in hks_create_cert_enc_param()
581 blob_enc_param->aad.data = enc_param->aad; in hks_create_cert_enc_param()
582 blob_enc_param->aad.size = enc_param->aad_size; in hks_create_cert_enc_param()
/device/soc/hpmicro/sdk/hpm_sdk/drivers/inc/
Dhpm_sdp_drv.h230 … uint32_t iv_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input,
250 … uint32_t iv_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input,
/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/
Dhpm_sdp_drv.c82 const uint8_t *aad,
420 const uint8_t *aad, in aes_ccm_auth_crypt() argument
458 const uint8_t *aad_src = aad; in aes_ccm_auth_crypt()
548 … uint32_t iv_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input, in sdp_aes_ccm_generate_encrypt() argument
551 …return aes_ccm_auth_crypt(base, aes_ctx, sdp_aes_op_encrypt, input_len, iv, iv_len, aad, aad_len, … in sdp_aes_ccm_generate_encrypt()
573 … uint32_t iv_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input, in sdp_aes_ccm_decrypt_verify() argument
582 …status = aes_ccm_auth_crypt(base, aes_ctx, sdp_aes_op_decrypt, input_len, iv, iv_len, aad, aad_len… in sdp_aes_ccm_decrypt_verify()
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/mesh/src/
Dcrypto.c182 const u8_t *aad, size_t aad_len, in bt_mesh_ccm_decrypt() argument
231 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_decrypt()
244 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_decrypt()
335 const u8_t *aad, size_t aad_len, in bt_mesh_ccm_encrypt() argument
385 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_encrypt()
398 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_encrypt()
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6360/
Dhpm_romapi.h264 const uint8_t *aad,
275 const uint8_t *aad,
321 … uint32_t iv_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input,
325 … uint32_t iv_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input,
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6750/
Dhpm_romapi.h226 … const uint8_t *aad, uint32_t aad_len, const uint8_t *input, uint8_t *output,
230 … uint32_t nonce_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input,
272 … uint32_t iv_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input,
276 … uint32_t iv_len, const uint8_t *aad, uint32_t aad_len, const uint8_t *input,
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/include/
Dcryp_symc.h141 typedef hi_s32 (*func_aead_set_aad)(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen);
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
Dcryp_symc.c891 static hi_s32 cryp_aead_ccm_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen) in cryp_aead_ccm_set_aad() argument
907 hisi_ctx->aad = aad; in cryp_aead_ccm_set_aad()
915 static hi_s32 cryp_aead_gcm_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen) in cryp_aead_gcm_set_aad() argument
928 hisi_ctx->aad = aad; in cryp_aead_gcm_set_aad()
1049 ret = drv_aead_ccm_add_a(hisi_ctx->hard_chn, hisi_ctx->aad, hisi_ctx->alen); in cryp_aead_ccm_crypto()
1085 ret = drv_aead_gcm_add_a(hisi_ctx->hard_chn, hisi_ctx->aad, hisi_ctx->alen); in cryp_aead_gcm_crypto()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/extend/include/
Dext_alg.h74 hi_s32 ext_mbedtls_aead_set_aad(hi_void *ctx, compat_addr aad, hi_u32 alen, hi_u32 tlen);

12