/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | rc4.c | 19 u32 i, j, k; in rc4_skip() local 26 j = 0; in rc4_skip() 29 j = (j + S[i] + key[kpos]) & 0xff; in rc4_skip() 33 S_SWAP(i, j); in rc4_skip() 37 i = j = 0; in rc4_skip() 40 j = (j + S[i]) & 0xff; in rc4_skip() 41 S_SWAP(i, j); in rc4_skip() 48 j = (j + S[i]) & 0xff; in rc4_skip() 49 S_SWAP(i, j); in rc4_skip() 50 *pos++ ^= S[(S[i] + S[j]) & 0xff]; in rc4_skip()
|
D | crypto_internal-cipher.c | 106 size_t i, j, blocks; in crypto_cipher_encrypt() local 121 for (j = 0; j < AES_BLOCK_SIZE; j++) in crypto_cipher_encrypt() 122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 135 for (j = 0; j < 8; j++) in crypto_cipher_encrypt() 136 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 149 for (j = 0; j < 8; j++) in crypto_cipher_encrypt() 150 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 169 size_t i, j, blocks; in crypto_cipher_decrypt() local 187 for (j = 0; j < AES_BLOCK_SIZE; j++) in crypto_cipher_decrypt() 188 plain[j] ^= ctx->u.aes.cbc[j]; in crypto_cipher_decrypt() [all …]
|
D | aes-cbc.c | 29 int i, j, blocks; in aes_128_cbc_encrypt() local 41 for (j = 0; j < AES_BLOCK_SIZE; j++) in aes_128_cbc_encrypt() 42 cbc[j] ^= pos[j]; in aes_128_cbc_encrypt() 65 int i, j, blocks; in aes_128_cbc_decrypt() local 79 for (j = 0; j < AES_BLOCK_SIZE; j++) in aes_128_cbc_decrypt() 80 pos[j] ^= cbc[j]; in aes_128_cbc_decrypt()
|
D | aes-internal-dec.c | 30 int Nr, i, j; in rijndaelKeySetupDec() local 38 for (i = 0, j = 4*Nr; i < j; i += 4, j -= 4) { in rijndaelKeySetupDec() 39 temp = rk[i ]; rk[i ] = rk[j ]; rk[j ] = temp; in rijndaelKeySetupDec() 40 temp = rk[i + 1]; rk[i + 1] = rk[j + 1]; rk[j + 1] = temp; in rijndaelKeySetupDec() 41 temp = rk[i + 2]; rk[i + 2] = rk[j + 2]; rk[j + 2] = temp; in rijndaelKeySetupDec() 42 temp = rk[i + 3]; rk[i + 3] = rk[j + 3]; rk[j + 3] = temp; in rijndaelKeySetupDec() 48 for (j = 0; j < 4; j++) { in rijndaelKeySetupDec() 49 rk[j] = TD0_(TE4((rk[j] >> 24) )) ^ in rijndaelKeySetupDec() 50 TD1_(TE4((rk[j] >> 16) & 0xff)) ^ in rijndaelKeySetupDec() 51 TD2_(TE4((rk[j] >> 8) & 0xff)) ^ in rijndaelKeySetupDec() [all …]
|
D | des-internal.c | 275 u32 i, j, l, m, n, kn[32]; in deskey() local 278 for (j = 0; j < 56; j++) { in deskey() 279 l = (u32) pc1[j]; in deskey() 281 pc1m[j] = (u8) in deskey() 292 for (j = 0; j < 28; j++) { in deskey() 293 l = j + (u32) totrot[i]; in deskey() 295 pcr[j] = pc1m[l]; in deskey() 297 pcr[j] = pc1m[l - 28]; in deskey() 299 for (/* j = 28 */; j < 56; j++) { in deskey() 300 l = j + (u32) totrot[i]; in deskey() [all …]
|
D | aes-ctr.c | 29 size_t j, len, left = data_len; in aes_ctr_encrypt() local 43 for (j = 0; j < len; j++) in aes_ctr_encrypt() 44 pos[j] ^= buf[j]; in aes_ctr_encrypt()
|
D | sha1-pbkdf2.c | 19 int i, j; in pbkdf2_sha1_f() local 50 for (j = 0; j < SHA1_MAC_LEN; j++) in pbkdf2_sha1_f() 51 digest[j] ^= tmp2[j]; in pbkdf2_sha1_f()
|
D | aes-wrap.c | 29 int i, j; in aes_wrap() local 51 for (j = 0; j <= 5; j++) { in aes_wrap() 58 t = n * j + i; in aes_wrap()
|
D | aes-unwrap.c | 30 int i, j; in aes_unwrap() local 50 for (j = 5; j >= 0; j--) { in aes_unwrap() 54 t = n * j + i; in aes_unwrap()
|
D | ms_funcs.c | 29 size_t i, j; in utf8_to_ucs2() local 31 for (i = 0, j = 0; i < utf8_string_len; i++) { in utf8_to_ucs2() 33 if (j >= ucs2_buffer_size) { in utf8_to_ucs2() 38 WPA_PUT_LE16(ucs2_buffer + j, c); in utf8_to_ucs2() 39 j += 2; in utf8_to_ucs2() 41 j >= ucs2_buffer_size - 1) { in utf8_to_ucs2() 48 WPA_PUT_LE16(ucs2_buffer + j, in utf8_to_ucs2() 50 j += 2; in utf8_to_ucs2() 52 j >= ucs2_buffer_size - 1) { in utf8_to_ucs2() 58 WPA_PUT_LE16(ucs2_buffer + j, in utf8_to_ucs2() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/dm/ |
D | bta_dm_pm.c | 88 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_init_pm() local 89 bta_dm_cb.pm_timer[i].srvc_id[j] = BTA_ID_MAX; in bta_dm_init_pm() 117 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_disable_pm() local 118 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_disable_pm() 119 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_disable_pm() 140 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer() local 141 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer() 230 for (int j = 0; j < BTA_DM_PM_MODE_TIMER_MAX; j++) { in bta_dm_pm_stop_timer_by_srvc_id() local 231 if (bta_dm_cb.pm_timer[i].srvc_id[j] == srvc_id) { in bta_dm_pm_stop_timer_by_srvc_id() 232 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], j); in bta_dm_pm_stop_timer_by_srvc_id() [all …]
|
/hal_espressif-latest/components/esp_adc/ |
D | adc_common.c | 33 for (int j = 0; j < SOC_ADC_MAX_CHANNEL_NUM; j++) { in adc_io_to_channel() local 34 if (adc_channel_io_map[i][j] == io_num) { in adc_io_to_channel() 35 *channel = j; in adc_io_to_channel() 63 for (int j = 0; j < SOC_ADC_ATTEN_NUM; j++) { in adc_hw_calibration() local 68 adc_calc_hw_calibration_code(i, j); in adc_hw_calibration() 72 adc_load_hw_calibration_chan_compens(i, k, j); in adc_hw_calibration()
|
/hal_espressif-latest/components/bt/common/osi/ |
D | hash_functions.c | 51 size_t j; in hash_function_blob() local 54 j = sizeof(hash_key_t)-1; in hash_function_blob() 56 while (j) { in hash_function_blob() 57 h[j] = ((h[j] << 7) | (h[j-1] >> 1)) + h[j]; in hash_function_blob() 58 --j; in hash_function_blob()
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/ |
D | crypto.c | 203 size_t i = 0U, j = 0U; in bt_mesh_ccm_decrypt() local 243 j = 0; in bt_mesh_ccm_decrypt() 247 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_decrypt() 248 i++, j++; in bt_mesh_ccm_decrypt() 260 for (; i < aad_len; i++, j++) { in bt_mesh_ccm_decrypt() 261 pmsg[i] = Xn[i] ^ aad[j]; in bt_mesh_ccm_decrypt() 280 for (j = 0; j < blk_cnt; j++) { in bt_mesh_ccm_decrypt() 281 if (j + 1 == blk_cnt) { in bt_mesh_ccm_decrypt() 285 sys_put_be16(j + 1, pmsg + 14); in bt_mesh_ccm_decrypt() 294 msg[i] = enc_msg[(j * 16) + i] ^ cmsg[i]; in bt_mesh_ccm_decrypt() [all …]
|
D | test.c | 38 int i, j, k; in bt_mesh_device_auto_enter_network() local 94 for (j = 0; j < elem->model_count; j++) { in bt_mesh_device_auto_enter_network() 95 model = &elem->models[j]; in bt_mesh_device_auto_enter_network() 113 for (j = 0; j < elem->vnd_model_count; j++) { in bt_mesh_device_auto_enter_network() 114 model = &elem->vnd_models[j]; in bt_mesh_device_auto_enter_network()
|
/hal_espressif-latest/components/esp_hw_support/ |
D | esp_etm.c | 134 for (int j = 0; j < SOC_ETM_CHANNELS_PER_GROUP; j++) { in etm_chan_register_to_group() local 135 if (!group->chans[j]) { in etm_chan_register_to_group() 136 chan_id = j; in etm_chan_register_to_group() 137 group->chans[j] = chan; in etm_chan_register_to_group() 289 for (int j = 0; j < SOC_ETM_CHANNELS_PER_GROUP; j++) { in esp_etm_dump() local 292 etm_chan = group->chans[j]; in esp_etm_dump() 293 if (etm_ll_is_channel_enabled(hal->regs, j)) { in esp_etm_dump() 296 snprintf(line, len, "channel %d is enabled but not recorded\r\n", j); in esp_etm_dump() 299 snprintf(line, len, "channel %d: event %"PRIu32" ==> task %"PRIu32"\r\n", j, in esp_etm_dump() 306 snprintf(line, len, "channel %d is created but not enabled\r\n", j); in esp_etm_dump()
|
/hal_espressif-latest/components/log/ |
D | log_freertos.c | 68 for (uint8_t j = sizeof(buffer) - 1; j > 0; j--) { in esp_log_system_timestamp() local 69 buffer[j] = buffer[j - 1]; in esp_log_system_timestamp()
|
/hal_espressif-latest/components/driver/gpio/ |
D | gpio_etm.c | 65 for (int j = 0; j < SOC_GPIO_ETM_EVENTS_PER_GROUP; j++) { in gpio_etm_event_register_to_group() local 66 if (!group->events[j]) { in gpio_etm_event_register_to_group() 67 chan_id = j; in gpio_etm_event_register_to_group() 68 group->events[j] = event; in gpio_etm_event_register_to_group() 86 for (int j = 0; j < SOC_GPIO_ETM_TASKS_PER_GROUP; j++) { in gpio_etm_task_register_to_group() local 87 if (!group->tasks[j]) { in gpio_etm_task_register_to_group() 88 chan_id = j; in gpio_etm_task_register_to_group() 89 group->tasks[j] = task; in gpio_etm_task_register_to_group()
|
D | gpio_flex_glitch_filter.c | 48 for (int j = 0; j < SOC_GPIO_FLEX_GLITCH_FILTER_NUM; j++) { in gpio_filter_register_to_group() local 49 if (!group->filters[j]) { in gpio_filter_register_to_group() 50 filter_id = j; in gpio_filter_register_to_group() 51 group->filters[j] = filter; in gpio_filter_register_to_group()
|
/hal_espressif-latest/components/bootloader_support/src/secure_boot_v2/ |
D | secure_boot_rsa_signature.c | 77 for (int j = 0; j < rsa_key_size; j++) { in verify_rsa_signature_block() local 78 sig_be[rsa_key_size - j - 1] = trusted_block->signature[j]; in verify_rsa_signature_block()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/ |
D | rfc_utils.c | 135 int i, j; in rfc_alloc_multiplexer_channel() local 163 for (i = 0, j = rfc_cb.rfc.last_mux + 1; i < MAX_BD_CONNECTIONS; i++, j++) { in rfc_alloc_multiplexer_channel() 164 if (j >= MAX_BD_CONNECTIONS) { in rfc_alloc_multiplexer_channel() 165 j = 0; in rfc_alloc_multiplexer_channel() 168 p_mcb = &rfc_cb.port.rfc_mcb[j]; in rfc_alloc_multiplexer_channel() 169 if (rfc_cb.port.rfc_mcb[j].state == RFC_MX_STATE_IDLE) { in rfc_alloc_multiplexer_channel() 176 is_initiator, &rfc_cb.port.rfc_mcb[j], j); in rfc_alloc_multiplexer_channel() 184 rfc_cb.rfc.last_mux = (UINT8) j; in rfc_alloc_multiplexer_channel()
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/sys/ |
D | utl.c | 121 UINT16 j, k; in utl_itoa() local 129 for (j = 10000; j > 0; j /= 10) { in utl_itoa() 130 k = i / j; in utl_itoa() 131 i %= j; in utl_itoa()
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/nimble_host/ |
D | mesh_bearer_adapt.c | 176 int i = (int)arg, j, len; in ble_on_subscribe() local 181 for (j = i + 1; j < ARRAY_SIZE(bt_mesh_gattc_info); j++) { in ble_on_subscribe() 182 … if ((bt_mesh_gattc_info[j].conn.handle == conn_handle) && bt_mesh_gattc_info[j].ccc_handle) { in ble_on_subscribe() 186 if (j == ARRAY_SIZE(bt_mesh_gattc_info)) { in ble_on_subscribe() 222 …(conn_handle, bt_mesh_gattc_info[i].ccc_handle, value, sizeof(value), ble_on_subscribe, (void *)j); in ble_on_subscribe() 230 int rc = 0, j, i = (int)arg; /* char index */ in dsc_disced() local 245 for (j = i + 1; j < ARRAY_SIZE(bt_mesh_gattc_info); j++) { in dsc_disced() 246 … if ((bt_mesh_gattc_info[j].conn.handle == conn_handle) && bt_mesh_gattc_info[j].data_out_handle) { in dsc_disced() 250 if (j == ARRAY_SIZE(bt_mesh_gattc_info)) { in dsc_disced() 252 for (j = 0; j < ARRAY_SIZE(bt_mesh_gattc_info); j++) { in dsc_disced() [all …]
|
/hal_espressif-latest/components/heap/ |
D | heap_trace_standalone.c | 332 for (int j = 0; j < STACK_DEPTH && r_cur->alloced_by[j] != 0; j++) { in heap_trace_dump_base() local 333 esp_rom_printf("%p%s", r_cur->alloced_by[j], in heap_trace_dump_base() 334 (j < STACK_DEPTH - 1) ? ":" : ""); in heap_trace_dump_base() 343 for (int j = 0; j < STACK_DEPTH; j++) { in heap_trace_dump_base() local 344 esp_rom_printf("%p%s", r_cur->freed_by[j], in heap_trace_dump_base() 345 (j < STACK_DEPTH - 1) ? ":" : "\n"); in heap_trace_dump_base()
|
/hal_espressif-latest/components/xtensa/include/xtensa/ |
D | mpuasm.h | 56 j 1f 70 j 3f 85 j 2b
|