/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/ |
D | aes_encrypt.c | 77 unsigned int t; in tc_aes128_set_encrypt_key() local 91 t = s->words[i-1]; in tc_aes128_set_encrypt_key() 93 t = subword(rotword(t)) ^ rconst[i/Nk]; in tc_aes128_set_encrypt_key() 95 s->words[i] = s->words[i-Nk] ^ t; in tc_aes128_set_encrypt_key() 134 uint8_t t[Nb*Nk]; in mix_columns() local 136 mult_row_column(t, s); in mix_columns() 137 mult_row_column(&t[Nb], s+Nb); in mix_columns() 138 mult_row_column(&t[2 * Nb], s + (2 * Nb)); in mix_columns() 139 mult_row_column(&t[3 * Nb], s + (3 * Nb)); in mix_columns() 140 (void) _copy(s, sizeof(t), t, sizeof(t)); in mix_columns() [all …]
|
D | aes_decrypt.c | 83 uint8_t t[Nb*Nk]; in inv_mix_columns() local 85 mult_row_column(t, s); in inv_mix_columns() 86 mult_row_column(&t[Nb], s+Nb); in inv_mix_columns() 87 mult_row_column(&t[2*Nb], s+(2*Nb)); in inv_mix_columns() 88 mult_row_column(&t[3*Nb], s+(3*Nb)); in inv_mix_columns() 89 (void)_copy(s, sizeof(t), t, sizeof(t)); in inv_mix_columns() 120 uint8_t t[Nb*Nk]; in inv_shift_rows() local 122 t[0] = s[0]; t[1] = s[13]; t[2] = s[10]; t[3] = s[7]; in inv_shift_rows() 123 t[4] = s[4]; t[5] = s[1]; t[6] = s[14]; t[7] = s[11]; in inv_shift_rows() 124 t[8] = s[8]; t[9] = s[5]; t[10] = s[2]; t[11] = s[15]; in inv_shift_rows() [all …]
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | aes_encrypt.c | 77 unsigned int t; in tc_aes128_set_encrypt_key() local 91 t = s->words[i - 1]; in tc_aes128_set_encrypt_key() 93 t = subword(rotword(t)) ^ rconst[i / Nk]; in tc_aes128_set_encrypt_key() 95 s->words[i] = s->words[i - Nk] ^ t; in tc_aes128_set_encrypt_key() 134 uint8_t t[Nb * Nk]; in mix_columns() local 136 mult_row_column(t, s); in mix_columns() 137 mult_row_column(&t[Nb], s + Nb); in mix_columns() 138 mult_row_column(&t[2 * Nb], s + (2 * Nb)); in mix_columns() 139 mult_row_column(&t[3 * Nb], s + (3 * Nb)); in mix_columns() 140 (void) _copy(s, sizeof(t), t, sizeof(t)); in mix_columns() [all …]
|
D | aes_decrypt.c | 83 uint8_t t[Nb * Nk]; in inv_mix_columns() local 85 mult_row_column(t, s); in inv_mix_columns() 86 mult_row_column(&t[Nb], s + Nb); in inv_mix_columns() 87 mult_row_column(&t[2 * Nb], s + (2 * Nb)); in inv_mix_columns() 88 mult_row_column(&t[3 * Nb], s + (3 * Nb)); in inv_mix_columns() 89 (void)_copy(s, sizeof(t), t, sizeof(t)); in inv_mix_columns() 120 uint8_t t[Nb * Nk]; in inv_shift_rows() local 122 t[0] = s[0]; t[1] = s[13]; t[2] = s[10]; t[3] = s[7]; in inv_shift_rows() 123 t[4] = s[4]; t[5] = s[1]; t[6] = s[14]; t[7] = s[11]; in inv_shift_rows() 124 t[8] = s[8]; t[9] = s[5]; t[10] = s[2]; t[11] = s[15]; in inv_shift_rows() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | aes-internal-enc.c | 47 ROUND(1,t,s); in rijndaelEncrypt() 48 ROUND(2,s,t); in rijndaelEncrypt() 49 ROUND(3,t,s); in rijndaelEncrypt() 50 ROUND(4,s,t); in rijndaelEncrypt() 51 ROUND(5,t,s); in rijndaelEncrypt() 52 ROUND(6,s,t); in rijndaelEncrypt() 53 ROUND(7,t,s); in rijndaelEncrypt() 54 ROUND(8,s,t); in rijndaelEncrypt() 55 ROUND(9,t,s); in rijndaelEncrypt() 57 ROUND(10,s,t); in rijndaelEncrypt() [all …]
|
D | aes-internal-dec.c | 100 ROUND(1,t,s); in rijndaelDecrypt() 101 ROUND(2,s,t); in rijndaelDecrypt() 102 ROUND(3,t,s); in rijndaelDecrypt() 103 ROUND(4,s,t); in rijndaelDecrypt() 104 ROUND(5,t,s); in rijndaelDecrypt() 105 ROUND(6,s,t); in rijndaelDecrypt() 106 ROUND(7,t,s); in rijndaelDecrypt() 107 ROUND(8,s,t); in rijndaelDecrypt() 108 ROUND(9,t,s); in rijndaelDecrypt() 110 ROUND(10,s,t); in rijndaelDecrypt() [all …]
|
D | aes-wrap.c | 31 unsigned int t; in aes_wrap() local 58 t = n * j + i; in aes_wrap() 59 a[7] ^= t; in aes_wrap() 60 a[6] ^= t >> 8; in aes_wrap() 61 a[5] ^= t >> 16; in aes_wrap() 62 a[4] ^= t >> 24; in aes_wrap()
|
D | aes-unwrap.c | 32 unsigned int t; in aes_unwrap() local 54 t = n * j + i; in aes_unwrap() 55 b[7] ^= t; in aes_unwrap() 56 b[6] ^= t >> 8; in aes_unwrap() 57 b[5] ^= t >> 16; in aes_unwrap() 58 b[4] ^= t >> 24; in aes_unwrap()
|
D | md5-internal.c | 73 u32 t; in byteReverse() local 75 t = (u32) ((unsigned) buf[3] << 8 | buf[2]) << 16 | in byteReverse() 77 *(u32 *) buf = t; in byteReverse() 104 u32 t; in MD5Update() local 108 t = ctx->bits[0]; in MD5Update() 109 if ((ctx->bits[0] = t + ((u32) len << 3)) < t) in MD5Update() 113 t = (t >> 3) & 0x3f; /* Bytes already in shsInfo->data */ in MD5Update() 117 if (t) { in MD5Update() 118 unsigned char *p = (unsigned char *) ctx->in + t; in MD5Update() 120 t = 64 - t; in MD5Update() [all …]
|
/hal_espressif-latest/components/spi_flash/ |
D | memspi_host_driver.c | 90 spi_flash_trans_t t = { in memspi_host_read_id_hs() local 95 host->driver->common_command(host, &t); in memspi_host_read_id_hs() 115 spi_flash_trans_t t = { in memspi_host_read_status_hs() local 120 esp_err_t err = host->driver->common_command(host, &t); in memspi_host_read_status_hs() 138 spi_flash_trans_t t = { 0 }; in memspi_host_erase_chip() local 139 t.command = CMD_CHIP_ERASE; in memspi_host_erase_chip() 140 host->driver->common_command(host, &t); in memspi_host_erase_chip() 147 spi_flash_trans_t t = { in memspi_host_erase_sector() local 152 host->driver->common_command(host, &t); in memspi_host_erase_sector() 159 spi_flash_trans_t t = { in memspi_host_erase_block() local [all …]
|
D | spi_flash_chip_mxic_opi.c | 70 spi_flash_trans_t t = {}; in spi_flash_chip_mxic_opi_set_write_protect() local 73 t.command = CMD_OPI_FLASH_MXIC(CMD_WRDI); in spi_flash_chip_mxic_opi_set_write_protect() 75 t.command = CMD_OPI_FLASH_MXIC(CMD_WREN); in spi_flash_chip_mxic_opi_set_write_protect() 77 err = chip->host->driver->common_command(chip->host, &t); in spi_flash_chip_mxic_opi_set_write_protect() 102 spi_flash_trans_t t = { in spi_flash_chip_mxic_opi_read_id() local 110 chip->host->driver->common_command(chip->host, &t); in spi_flash_chip_mxic_opi_read_id() 137 spi_flash_trans_t t = { in spi_flash_chip_mxic_opi_read_reg() local 144 esp_err_t err = chip->host->driver->common_command(chip->host, &t); in spi_flash_chip_mxic_opi_read_reg() 179 spi_flash_trans_t t = { in spi_flash_chip_mxic_opi_erase_chip() local 182 err = chip->host->driver->common_command(chip->host, &t); in spi_flash_chip_mxic_opi_erase_chip() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/jv/ |
D | bta_jv_act.c | 2610 struct fc_channel *t = fc_channels; in fcchan_get() local 2625 while (t && t->chan != chan) { in fcchan_get() 2626 t = t->next; in fcchan_get() 2629 if (t) { in fcchan_get() 2630 return t; in fcchan_get() 2635 t = osi_calloc(sizeof(*t)); in fcchan_get() 2636 if (!t) { in fcchan_get() 2640 t->chan = chan; in fcchan_get() 2643 osi_free(t); in fcchan_get() 2648 t->next = fc_channels; in fcchan_get() [all …]
|
/hal_espressif-latest/components/mbedtls/port/sha/dma/ |
D | sha.c | 145 int esp_sha_512_t_init_hash(uint16_t t) in esp_sha_512_t_init_hash() argument 150 if (t == 384) { in esp_sha_512_t_init_hash() 151 ESP_LOGE(TAG, "Invalid t for SHA512/t, t = %u,cannot be 384", t); in esp_sha_512_t_init_hash() 155 if (t <= 9) { in esp_sha_512_t_init_hash() 156 t_string = (uint32_t)((1 << 23) | ((0x30 + t) << 24)); in esp_sha_512_t_init_hash() 158 } else if (t <= 99) { in esp_sha_512_t_init_hash() 159 t0 = t % 10; in esp_sha_512_t_init_hash() 160 t1 = (t / 10) % 10; in esp_sha_512_t_init_hash() 164 } else if (t <= 512) { in esp_sha_512_t_init_hash() 165 t0 = t % 10; in esp_sha_512_t_init_hash() [all …]
|
/hal_espressif-latest/components/hal/esp32c2/include/hal/ |
D | rtc_cntl_ll.h | 19 FORCE_INLINE_ATTR void rtc_cntl_ll_set_wakeup_timer(uint64_t t) in rtc_cntl_ll_set_wakeup_timer() argument 21 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER0_REG, t & UINT32_MAX); in rtc_cntl_ll_set_wakeup_timer() 22 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER1_REG, t >> 32); in rtc_cntl_ll_set_wakeup_timer() 72 uint64_t t = READ_PERI_REG(RTC_CNTL_TIME0_REG); in rtc_cntl_ll_get_rtc_time() local 73 t |= ((uint64_t) READ_PERI_REG(RTC_CNTL_TIME1_REG)) << 32; in rtc_cntl_ll_get_rtc_time() 74 return t; in rtc_cntl_ll_get_rtc_time()
|
/hal_espressif-latest/components/hal/esp32c3/include/hal/ |
D | rtc_cntl_ll.h | 19 FORCE_INLINE_ATTR void rtc_cntl_ll_set_wakeup_timer(uint64_t t) in rtc_cntl_ll_set_wakeup_timer() argument 21 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER0_REG, t & UINT32_MAX); in rtc_cntl_ll_set_wakeup_timer() 22 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER1_REG, t >> 32); in rtc_cntl_ll_set_wakeup_timer() 78 uint64_t t = READ_PERI_REG(RTC_CNTL_TIME0_REG); in rtc_cntl_ll_get_rtc_time() local 79 t |= ((uint64_t) READ_PERI_REG(RTC_CNTL_TIME1_REG)) << 32; in rtc_cntl_ll_get_rtc_time() 80 return t; in rtc_cntl_ll_get_rtc_time()
|
/hal_espressif-latest/components/hal/esp32s2/include/hal/ |
D | rtc_cntl_ll.h | 19 FORCE_INLINE_ATTR void rtc_cntl_ll_set_wakeup_timer(uint64_t t) in rtc_cntl_ll_set_wakeup_timer() argument 21 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER0_REG, t & UINT32_MAX); in rtc_cntl_ll_set_wakeup_timer() 22 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER1_REG, t >> 32); in rtc_cntl_ll_set_wakeup_timer() 92 uint64_t t = READ_PERI_REG(RTC_CNTL_TIME0_REG); in rtc_cntl_ll_get_rtc_time() local 93 t |= ((uint64_t) READ_PERI_REG(RTC_CNTL_TIME1_REG)) << 32; in rtc_cntl_ll_get_rtc_time() 94 return t; in rtc_cntl_ll_get_rtc_time()
|
/hal_espressif-latest/components/esp_rom/linux/ |
D | esp_rom_md5.c | 53 uint32_t t; in esp_rom_md5_update() local 57 t = context->bits[0]; in esp_rom_md5_update() 58 if ((context->bits[0] = t + ((uint32_t) len << 3)) < t) in esp_rom_md5_update() 62 t = (t >> 3) & 0x3f; /* Bytes already in shsInfo->data */ in esp_rom_md5_update() 66 if (t) { in esp_rom_md5_update() 67 unsigned char *p = (unsigned char *) context->in + t; in esp_rom_md5_update() 69 t = 64 - t; in esp_rom_md5_update() 70 if (len < t) { in esp_rom_md5_update() 74 memcpy(p, buf, t); in esp_rom_md5_update() 77 buf += t; in esp_rom_md5_update() [all …]
|
/hal_espressif-latest/zephyr/port/wifi/wpa_supplicant/ |
D | os_xtensa.c | 32 int os_get_time(struct os_time *t) in os_get_time() argument 34 if (t == NULL) { in os_get_time() 39 t->sec = now / CONFIG_SYS_CLOCK_TICKS_PER_SEC; in os_get_time() 40 t->usec = k_ticks_to_us_floor64(now); in os_get_time()
|
/hal_espressif-latest/components/hal/esp32/include/hal/ |
D | rtc_cntl_ll.h | 20 FORCE_INLINE_ATTR void rtc_cntl_ll_set_wakeup_timer(uint64_t t) in rtc_cntl_ll_set_wakeup_timer() argument 22 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER0_REG, t & UINT32_MAX); in rtc_cntl_ll_set_wakeup_timer() 23 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER1_REG, t >> 32); in rtc_cntl_ll_set_wakeup_timer() 104 uint64_t t = READ_PERI_REG(RTC_CNTL_TIME0_REG); in rtc_cntl_ll_get_rtc_time() local 105 t |= ((uint64_t) READ_PERI_REG(RTC_CNTL_TIME1_REG)) << 32; in rtc_cntl_ll_get_rtc_time() 106 return t; in rtc_cntl_ll_get_rtc_time()
|
/hal_espressif-latest/components/wpa_supplicant/src/tls/ |
D | libtommath.h | 195 unsigned char t; in bn_reverse() local 200 t = s[ix]; in bn_reverse() 202 s[iy] = t; in bn_reverse() 541 mp_int t; in mp_mulmod() local 543 if ((res = mp_init (&t)) != MP_OKAY) { in mp_mulmod() 547 if ((res = mp_mul (a, b, &t)) != MP_OKAY) { in mp_mulmod() 548 mp_clear (&t); in mp_mulmod() 551 res = mp_mod (&t, c, d); in mp_mulmod() 552 mp_clear (&t); in mp_mulmod() 561 mp_int t; in mp_mod() local [all …]
|
/hal_espressif-latest/components/mbedtls/port/ |
D | esp_timing.c | 32 struct _hr_time *t = (struct _hr_time *) val; in mbedtls_timing_get_timer() local 36 gettimeofday( &t->start, NULL ); in mbedtls_timing_get_timer() 44 delta = ( now.tv_sec - t->start.tv_sec ) * 1000ul in mbedtls_timing_get_timer() 45 + ( now.tv_usec - t->start.tv_usec ) / 1000; in mbedtls_timing_get_timer()
|
/hal_espressif-latest/components/esp_system/ |
D | system_time.c | 38 int64_t t = 0; in esp_system_get_time() local 39 t = (esp_rtc_get_time_us() - g_startup_time); in esp_system_get_time() 40 return t; in esp_system_get_time()
|
/hal_espressif-latest/components/hal/esp32s3/include/hal/ |
D | rtc_cntl_ll.h | 23 FORCE_INLINE_ATTR void rtc_cntl_ll_set_wakeup_timer(uint64_t t) in rtc_cntl_ll_set_wakeup_timer() argument 25 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER0_REG, t & UINT32_MAX); in rtc_cntl_ll_set_wakeup_timer() 26 WRITE_PERI_REG(RTC_CNTL_SLP_TIMER1_REG, t >> 32); in rtc_cntl_ll_set_wakeup_timer() 173 uint64_t t = READ_PERI_REG(RTC_CNTL_TIME0_REG); in rtc_cntl_ll_get_rtc_time() local 174 t |= ((uint64_t) READ_PERI_REG(RTC_CNTL_TIME1_REG)) << 32; in rtc_cntl_ll_get_rtc_time() 175 return t; in rtc_cntl_ll_get_rtc_time()
|
/hal_espressif-latest/components/wpa_supplicant/port/ |
D | os_xtensa.c | 33 int os_get_time(struct os_time *t) in os_get_time() argument 37 t->sec = (os_time_t) tv.tv_sec; in os_get_time() 38 t->usec = tv.tv_usec; in os_get_time()
|
/hal_espressif-latest/components/esp_psram/ |
D | project_include.cmake | 4 # non-IDF CMakeLists.txt file is imported into a component) don't depend 5 # on the esp32 component so don't get the extra flag. This handles that case. 7 # note that we don't need to set link options as the library linked is independent of this
|