/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/crypto/ |
D | aes-ccm.c | 31 u8 aad_buf[2 * AES_BLOCK_SIZE]; in aes_ccm_auth_start() 32 u8 b[AES_BLOCK_SIZE]; in aes_ccm_auth_start() 40 WPA_PUT_BE16(&b[AES_BLOCK_SIZE - L], plain_len); in aes_ccm_auth_start() 42 wpa_hexdump_key(_MSG_EXCESSIVE_, "CCM B_0", b, AES_BLOCK_SIZE); in aes_ccm_auth_start() 55 if (aad_len > AES_BLOCK_SIZE - 2) { in aes_ccm_auth_start() 56 xor_aes_block(&aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start() 58 aes_encrypt2(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start() 65 size_t last = len % AES_BLOCK_SIZE; in aes_ccm_auth() 68 for (i = 0; i < len / AES_BLOCK_SIZE; i++) { in aes_ccm_auth() 71 data += AES_BLOCK_SIZE; in aes_ccm_auth() [all …]
|
D | aes-siv.c | 16 static const u8 zero[AES_BLOCK_SIZE]; 24 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) in dbl() 26 pad[AES_BLOCK_SIZE - 1] <<= 1; in dbl() 28 pad[AES_BLOCK_SIZE - 1] ^= 0x87; in dbl() 36 for (i = 0; i < AES_BLOCK_SIZE; i++) in xor() 55 os_memset(pad, 0, AES_BLOCK_SIZE); in pad_block() 58 if (len < AES_BLOCK_SIZE) in pad_block() 66 u8 tmp[AES_BLOCK_SIZE], tmp2[AES_BLOCK_SIZE]; in aes_s2v() 75 tmp[AES_BLOCK_SIZE - 1] = 1; in aes_s2v() 96 if (len[i] >= AES_BLOCK_SIZE) { in aes_s2v() [all …]
|
D | aes-omac1.c | 20 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) in gf_mulx() 22 pad[AES_BLOCK_SIZE - 1] <<= 1; in gf_mulx() 24 pad[AES_BLOCK_SIZE - 1] ^= 0x87; in gf_mulx() 46 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE]; in omac1_aes_vector() 56 os_memset(cbc, 0, AES_BLOCK_SIZE); in omac1_aes_vector() 67 while (left >= AES_BLOCK_SIZE) { in omac1_aes_vector() 68 for (i = 0; i < AES_BLOCK_SIZE; i++) { in omac1_aes_vector() 75 if (i + 1 == AES_BLOCK_SIZE && in omac1_aes_vector() 76 left == AES_BLOCK_SIZE) in omac1_aes_vector() 83 if (left > AES_BLOCK_SIZE) in omac1_aes_vector() [all …]
|
D | aes-gcm.c | 18 val = WPA_GET_BE32(block + AES_BLOCK_SIZE - 4); in inc32() 20 WPA_PUT_BE32(block + AES_BLOCK_SIZE - 4, val); in inc32() 145 u8 cb[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE]; in aes_gctr() 154 os_memcpy(cb, icb, AES_BLOCK_SIZE); in aes_gctr() 159 xpos += AES_BLOCK_SIZE; in aes_gctr() 160 ypos += AES_BLOCK_SIZE; in aes_gctr() 183 os_memset(H, 0, AES_BLOCK_SIZE); in aes_gcm_init_hash_subkey() 186 H, AES_BLOCK_SIZE); in aes_gcm_init_hash_subkey() 198 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len); in aes_gcm_prepare_j0() 199 J0[AES_BLOCK_SIZE - 1] = 0x01; in aes_gcm_prepare_j0() [all …]
|
D | aes-ctr.c | 31 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE]; in aes_ctr_encrypt() 36 os_memcpy(counter, nonce, AES_BLOCK_SIZE); in aes_ctr_encrypt() 41 len = (left < AES_BLOCK_SIZE) ? left : AES_BLOCK_SIZE; in aes_ctr_encrypt() 47 for (i = AES_BLOCK_SIZE - 1; i >= 0; i--) { in aes_ctr_encrypt()
|
D | ccmp.c | 149 plain = os_malloc(data_len + AES_BLOCK_SIZE); in ccmp_decrypt() 169 rtw_mfree(plain, data_len + AES_BLOCK_SIZE); in ccmp_decrypt() 202 crypt = os_malloc(hdrlen + 8 + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt() 235 rtw_mfree(crypt, hdrlen + 8 + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt() 261 crypt = os_malloc(hdrlen + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt_pv1() 277 rtw_mfree(crypt, hdrlen + plen + 8 + AES_BLOCK_SIZE); in ccmp_encrypt_pv1() 300 plain = os_malloc(data_len + AES_BLOCK_SIZE); in ccmp_256_decrypt() 320 rtw_mfree(plain, data_len + AES_BLOCK_SIZE); in ccmp_256_decrypt() 342 crypt = os_malloc(hdrlen + 8 + plen + 16 + AES_BLOCK_SIZE); in ccmp_256_encrypt() 375 rtw_mfree(crypt, hdrlen + 8 + plen + 16 + AES_BLOCK_SIZE); in ccmp_256_encrypt()
|
D | gcmp.c | 95 plain = os_malloc(data_len + AES_BLOCK_SIZE); in gcmp_decrypt() 116 rtw_mfree(plain, data_len + AES_BLOCK_SIZE); in gcmp_decrypt() 152 crypt = os_malloc(hdrlen + 8 + plen + 16 + AES_BLOCK_SIZE); in gcmp_encrypt() 184 rtw_mfree(crypt, hdrlen + 8 + plen + 16 + AES_BLOCK_SIZE); in gcmp_encrypt()
|
D | aes.h | 12 #define AES_BLOCK_SIZE 16 macro
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/ |
D | fils_aead.c | 28 u8 d[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE] = {}; in aes_s2v() 35 crypto_shash_digest(desc, tmp, AES_BLOCK_SIZE, d); in aes_s2v() 41 crypto_xor(d, tmp, AES_BLOCK_SIZE); in aes_s2v() 46 if (len[i] >= AES_BLOCK_SIZE) { in aes_s2v() 49 crypto_shash_update(desc, addr[i], len[i] - AES_BLOCK_SIZE); in aes_s2v() 50 crypto_xor(d, addr[i] + len[i] - AES_BLOCK_SIZE, in aes_s2v() 51 AES_BLOCK_SIZE); in aes_s2v() 60 crypto_shash_finup(desc, d, AES_BLOCK_SIZE, v); in aes_s2v() 71 u8 v[AES_BLOCK_SIZE]; in aes_siv_encrypt() 106 memcpy(out, v, AES_BLOCK_SIZE); in aes_siv_encrypt() [all …]
|
D | aes_gmac.c | 21 u8 *zero, *__aad, iv[AES_BLOCK_SIZE]; in ieee80211_aes_gmac() 44 iv[AES_BLOCK_SIZE - 1] = 0x01; in ieee80211_aes_gmac()
|
D | aes_cmac.c | 28 u8 out[AES_BLOCK_SIZE]; in ieee80211_aes_cmac()
|
D | wpa.c | 416 u8 b_0[AES_BLOCK_SIZE]; in ccmp_encrypt_skb() 542 u8 aad[2 * AES_BLOCK_SIZE]; in ieee80211_crypto_ccmp_decrypt() 543 u8 b_0[AES_BLOCK_SIZE]; in ieee80211_crypto_ccmp_decrypt() 577 j_0[AES_BLOCK_SIZE - 1] = 0x01; in gcmp_special_blocks() 647 u8 j_0[AES_BLOCK_SIZE]; in gcmp_encrypt_skb() 769 u8 aad[2 * AES_BLOCK_SIZE]; in ieee80211_crypto_gcmp_decrypt() 770 u8 j_0[AES_BLOCK_SIZE]; in ieee80211_crypto_gcmp_decrypt()
|
/device/soc/telink/b91/b91_ble_sdk/algorithm/aes_ccm/ |
D | aes_ccm.h | 22 #define AES_BLOCK_SIZE 16 macro 62 u8 A[AES_BLOCK_SIZE]; 63 u8 B[AES_BLOCK_SIZE]; 66 u8 tmpResult[AES_BLOCK_SIZE]; 67 u8 newAstr[AES_BLOCK_SIZE];
|
/device/soc/hpmicro/sdk/hpm_sdk/drivers/inc/ |
D | hpm_sdp_drv.h | 52 #define AES_BLOCK_SIZE (16U) /**< AES block size in bytes */ macro 97 uint32_t buf0[AES_BLOCK_SIZE / sizeof(uint32_t)]; /**< buf0 */ 98 uint32_t buf1[AES_BLOCK_SIZE / sizeof(uint32_t)]; /**< buf1 */ 99 uint32_t buf2[AES_BLOCK_SIZE / sizeof(uint32_t)]; /**< buf2 */ 100 uint32_t buf3[AES_BLOCK_SIZE / sizeof(uint32_t)]; /**< buf3 */
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/compat/ |
D | drv_klad.c | 200 hi_u32 key[AES_BLOCK_SIZE / WORD_WIDTH] = {0}; in drv_cipher_klad_load_key() 205 hi_log_chk_param_return(((key_len % AES_BLOCK_SIZE) != 0) || (key_len == 0)); in drv_cipher_klad_load_key() 215 for (i = 0; i < key_len / AES_BLOCK_SIZE; i++) { in drv_cipher_klad_load_key() 216 if (memcpy_s(key, sizeof(key), data_in + i * AES_BLOCK_SIZE, AES_BLOCK_SIZE) != EOK) { in drv_cipher_klad_load_key() 243 hi_log_chk_param_return(key_len != AES_BLOCK_SIZE); in drv_cipher_klad_encrypt_key()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/ |
D | rtw_swcrypto.c | 58 rtw_mfree(enc, enc_len + AES_BLOCK_SIZE); in _rtw_ccmp_encrypt() 101 rtw_mfree(plain, plen - hdrlen + AES_BLOCK_SIZE); in _rtw_ccmp_decrypt() 152 rtw_mfree(enc, enc_len + AES_BLOCK_SIZE); in _rtw_gcmp_encrypt() 186 rtw_mfree(plain, plen - hdrlen + AES_BLOCK_SIZE); in _rtw_gcmp_decrypt()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/ |
D | drv_symc_v200.c | 1307 (hi_void)memset_s(via_pad, AES_BLOCK_SIZE * MUL_VAL_2, 0, AES_BLOCK_SIZE * MUL_VAL_2); in drv_aead_ccm_add_a() 1330 count = (buf_size + count) % AES_BLOCK_SIZE; in drv_aead_ccm_add_a() 1333 ret = drv_symc_add_inbuf(chn_num, dma_pad, AES_BLOCK_SIZE - count, in drv_aead_ccm_add_a() 1339 ctx->offset_pad += AES_BLOCK_SIZE - count; in drv_aead_ccm_add_a() 1362 hi_log_chk_param_return((ctx->offset_pad + AES_BLOCK_SIZE) >= SYMC_PAD_BUFFER_LEN); in drv_aead_gcm_add_a() 1372 (hi_void)memset_s(via_pad, AES_BLOCK_SIZE, 0, AES_BLOCK_SIZE); in drv_aead_gcm_add_a() 1382 count = (buf_size + count) % AES_BLOCK_SIZE; in drv_aead_gcm_add_a() 1385 ret = drv_symc_add_inbuf(chn_num, dma_pad, AES_BLOCK_SIZE - count, in drv_aead_gcm_add_a() 1391 ctx->offset_pad += AES_BLOCK_SIZE - count; in drv_aead_gcm_add_a() 1494 hi_log_chk_param_return((pack->len[i] % (AES_BLOCK_SIZE * WORD_WIDTH)) != 0); in drv_symc_node_check()
|
D | drv_symc_v100.c | 668 ret = crypto_mem_create(&mem, SEC_MMZ, "symc_data", AES_BLOCK_SIZE); in drv_cipher_aes_test() 705 (hi_void)memset_s(mem.dma_virt, AES_BLOCK_SIZE, 0, AES_BLOCK_SIZE); in drv_cipher_aes_test() 707 …crypto_chk_err_goto(drv_symc_add_inbuf(chn, mem.dma_addr, AES_BLOCK_SIZE, SYMC_NODE_USAGE_NORMAL)); in drv_cipher_aes_test() 708 …crypto_chk_err_goto(drv_symc_add_outbuf(chn, mem.dma_addr, AES_BLOCK_SIZE, SYMC_NODE_USAGE_NORMAL)… in drv_cipher_aes_test() 716 if (memcmp(mem.dma_virt, gold_enc, AES_BLOCK_SIZE) != 0) { in drv_cipher_aes_test()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/include/crypto/ |
D | aes.h | 17 #define AES_BLOCK_SIZE 16 macro
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/include/ |
D | drv_cipher_kapi.h | 161 #define AES_BLOCK_SIZE 16 macro 402 hi_u8 clear[AES_BLOCK_SIZE]; 403 hi_u8 encrypt[AES_BLOCK_SIZE];
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/ |
D | cryp_symc.c | 459 hi_u8 clen[AES_BLOCK_SIZE]; in symc_add_buf_list() 546 hisi_ctx->block_size = AES_BLOCK_SIZE; in cryp_symc_config() 825 if (memcpy_s(&buf[idx], AES_BLOCK_SIZE - idx, &iv[1], ctx->ivlen - 1) != EOK) { in cyp_aead_ccm_n() 831 q = AES_BLOCK_SIZE - idx; in cyp_aead_ccm_n() 835 idx = AES_BLOCK_SIZE - SYMC_CCM_Q_LEN_4B; in cyp_aead_ccm_n() 1014 hi_u8 n[AES_BLOCK_SIZE] = {0}; in cryp_aead_ccm_crypto() 1070 hi_u8 clen[AES_BLOCK_SIZE] = {0}; in cryp_aead_gcm_crypto()
|
/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/ |
D | hpm_sdp_drv.c | 39 #define AES_BLOCK_SIZE (16U) macro
|