Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 108) sorted by relevance

12345

/hal_espressif-3.7.0/components/efuse/test_apps/main/three_key_blocks/
Dtest_efuse_coding_scheme.c135 for (int j = 0; j < count_useful_reg; ++j) { variable
136 REG_WRITE(EFUSE_BLK2_WDATA0_REG + j * 4, *((uint32_t*)buf + j));
142 for (int j = 0; j < 8; ++j) { variable
143 w_data_after_coding[j] = REG_READ(EFUSE_BLK2_WDATA0_REG + j * 4);
151 for (int j = 0; j < count_useful_reg; ++j) { variable
152 encoded[j] = *((uint32_t*)buf + j);
153 encoded[j + 4] = encoded[j];
162 for (int j = 0; j < 8; ++j) { variable
163 printf("0x%08lx ", encoded[j]);
166 for (int j = 0; j < 8; ++j) { variable
[all …]
/hal_espressif-3.7.0/components/wpa_supplicant/src/crypto/
Drc4.c19 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()
Dcrypto_internal-cipher.c106 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 …]
Daes-cbc.c29 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()
Daes-internal-dec.c30 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 …]
Ddes-internal.c275 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 …]
Daes-ctr.c29 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()
Dsha1-pbkdf2.c19 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()
Daes-wrap.c29 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()
Daes-unwrap.c30 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()
Dms_funcs.c29 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-3.7.0/components/bt/host/bluedroid/bta/dm/
Dbta_dm_pm.c88 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-3.7.0/components/esp_hw_support/test_apps/etm/main/
Dtest_etm_core.c22 for (int j = 0; j < SOC_ETM_CHANNELS_PER_GROUP; j++) { variable
23 TEST_ESP_OK(esp_etm_new_channel(&config, &etm_chans[i][j]));
35 for (int j = 0; j < SOC_ETM_CHANNELS_PER_GROUP; j++) { variable
36 TEST_ESP_OK(esp_etm_del_channel(etm_chans[i][j]));
/hal_espressif-3.7.0/components/bt/common/osi/
Dhash_functions.c51 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-3.7.0/components/esp_adc/
Dadc_common.c69 for (int j = 0; j < SOC_ADC_MAX_CHANNEL_NUM; j++) { in adc_io_to_channel() local
70 if (adc_channel_io_map[i][j] == io_num) { in adc_io_to_channel()
71 *channel = j; in adc_io_to_channel()
99 for (int j = 0; j < SOC_ADC_ATTEN_NUM; j++) { in adc_hw_calibration() local
104 adc_calc_hw_calibration_code(i, j); in adc_hw_calibration()
108 adc_load_hw_calibration_chan_compens(i, k, j); in adc_hw_calibration()
/hal_espressif-3.7.0/components/heap/test_apps/heap_tests/main/
Dtest_malloc.c28 int i, j; in tryAllocMem() local
37 for (j=0; j<1024/4; j++) allocatedMem[i][j]=(0xdeadbeef); in tryAllocMem()
45 int i, j; in tryAllocMemFree() local
47 for (j=0; j<1024/4; j++) { in tryAllocMemFree()
48 TEST_ASSERT(allocatedMem[i][j]==(0xdeadbeef)); in tryAllocMemFree()
80 for (int j=0; j<i; j++) free(dmaMem[j]); variable
/hal_espressif-3.7.0/components/esp_psram/test_apps/psram/main/
Dtest_psram.c150 for (int j = 1; j < 4; j++) { variable
151 uint8_t *unaligned_ptr = (uint8_t *)(ptr_base + j);
152 ESP_LOGV(TAG, "i is %d, j is %d, unaligned_ptr addr is %p", i, j, unaligned_ptr);
155 ESP_LOGV(TAG, "i is %d, j is %d, val_8bit val is 0x%"PRIx8, i, j, val_8bit);
156 uint8_t first_byte = (i + j) & 0xff;
173 ESP_LOGV(TAG, "i is %d, j is %d, val_16bit val is 0x%"PRIx16, i, j, val_16bit);
175 ESP_LOGV(TAG, "i is %d, j is %d, val_32bit val is 0x%"PRIx32, i, j, val_32bit);
178 uint8_t second_byte = ((i + j) & 0xff) + 1;
179 uint8_t third_byte = ((i + j) & 0xff) + 2;
180 uint8_t fourth_byte = ((i + j) & 0xff) + 3;
[all …]
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/
Dcrypto.c203 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 …]
Dtest.c38 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-3.7.0/components/esp_hw_support/
Desp_etm.c134 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-3.7.0/components/esp_hw_support/test_apps/security_support/esp_hw_support_unity_tests/main/
Dtest_random.c53 for (int j = 0; j < NUM_BUF; j++) { variable
54 if (i != j) {
55 TEST_ASSERT_NOT_EQUAL(0, memcmp(buf[i], buf[j], BUF_SZ));
/hal_espressif-3.7.0/components/esp_hw_support/test_apps/host_test_linux/main/
Dtest_hw_support_linux.c52 for (int j = 0; j < NUM_BUF; j++) { variable
53 if (i != j) {
54 TEST_ASSERT_NOT_EQUAL(0, memcmp(buf[i], buf[j], BUF_SZ));
/hal_espressif-3.7.0/components/log/
Dlog_freertos.c68 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-3.7.0/components/esp_hw_support/test_apps/mspi/main/
Dtest_flash_psram.c65 for (int j = 0; j < sizeof(psram_wr_buf); j++) { in psram_read_write_task() local
66 psram_wr_buf[j] = rand(); in psram_read_write_task()
224 for (int j = i + 10; j < SPI1_FLASH_TEST_LEN; j++) { variable
225 wr_buf[j] = j;
/hal_espressif-3.7.0/components/driver/gpio/
Dgpio_etm.c65 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()

12345