/hal_espressif-latest/tools/esptool_py/test/ |
D | test_image_info.py | 62 out = self.run_image_info("esp32", "bootloader_esp32.bin") 63 assert "Entry point: 4009816c" in out, "Wrong entry point" 64 assert "Checksum: 83 (valid)" in out, "Invalid checksum" 65 assert "4 segments" in out, "Wrong number of segments" 68 in out 72 out = self.run_image_info("esp8266", ESP8266_BIN) 73 assert "Image version: 1" in out, "Wrong image version" 74 assert "Entry point: 40101844" in out, "Wrong entry point" 75 assert "Checksum: 6b (valid)" in out, "Invalid checksum" 76 assert "1 segments" in out, "Wrong number of segments" [all …]
|
D | test_uf2_ids.py | 53 out = [] 57 out.append( 62 out.append( 66 pytest.fail("\n".join(out))
|
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | fastpbkdf2.c | 44 static inline void write32_be(uint32_t n, uint8_t out[4]) in write32_be() 47 *(uint32_t *)(out) = __builtin_bswap32(n); in write32_be() 49 out[0] = (n >> 24) & 0xff; in write32_be() 50 out[1] = (n >> 16) & 0xff; in write32_be() 51 out[2] = (n >> 8) & 0xff; in write32_be() 52 out[3] = n & 0xff; in write32_be() 159 uint8_t out[_hashsz]) \ 161 _final(&ctx->inner, out); \ 162 _update(&ctx->outer, out, _hashsz); \ 163 _final(&ctx->outer, out); \ [all …]
|
/hal_espressif-latest/tools/ |
D | esp_bin2c_array.py | 9 out = [] 10 out.append('const unsigned char {var_name}[] = {{'.format(var_name=var_name)) 14 out.append(' {line}{end_comma}'.format(line=line, end_comma=',' if i<len(l)-1 else '')) 15 out.append('};') 16 …out.append('const unsigned int {var_name}_size = {data_len};'.format(var_name=var_name, data_len=l… 17 return '\n'.join(out) 32 out = bin2c_array(data, args.array) 33 with open(args.out, 'w') as f: 34 f.write(out)
|
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/srce/ |
D | synthesis-dct8.c | 84 PRIVATE void float_dct2_8(float *RESTRICT out, OI_INT32 const *RESTRICT in) in float_dct2_8() argument 125 out[0] = (float)FLOAT_SCALE(L00, DCTII_8_SHIFT_0); OI_ASSERT(VALID_INT16(out[0])); in float_dct2_8() 126 out[4] = (float)FLOAT_SCALE(L01, DCTII_8_SHIFT_4); OI_ASSERT(VALID_INT16(out[4])); in float_dct2_8() 129 out[6] = (float)FLOAT_SCALE(L02, DCTII_8_SHIFT_6); OI_ASSERT(VALID_INT16(out[6])); in float_dct2_8() 130 out[2] = (float)FLOAT_SCALE(L03, DCTII_8_SHIFT_2); OI_ASSERT(VALID_INT16(out[2])); in float_dct2_8() 155 out[3] = (float)(FLOAT_SCALE(L04, DCTII_8_SHIFT_3 - 1)); OI_ASSERT(VALID_INT16(out[3])); in float_dct2_8() 156 out[5] = (float)(FLOAT_SCALE(L05, DCTII_8_SHIFT_5 - 1)); OI_ASSERT(VALID_INT16(out[5])); in float_dct2_8() 159 out[7] = (float)(FLOAT_SCALE(L06, DCTII_8_SHIFT_7 - 1)); OI_ASSERT(VALID_INT16(out[7])); in float_dct2_8() 160 out[1] = (float)(FLOAT_SCALE(L07, DCTII_8_SHIFT_1 - 1)); OI_ASSERT(VALID_INT16(out[1])); in float_dct2_8() 211 PRIVATE void dct2_8(SBC_BUFFER_T *RESTRICT out, OI_INT32 const *RESTRICT in) in dct2_8() argument [all …]
|
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/src/ |
D | cbc_mode.c | 37 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_encrypt() argument 46 if (out == (uint8_t *) 0 || in tc_cbc_mode_encrypt() 60 (void)_copy(out, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt() 61 out += TC_AES_BLOCK_SIZE; in tc_cbc_mode_encrypt() 67 (void)_copy(out, TC_AES_BLOCK_SIZE, in tc_cbc_mode_encrypt() 69 out += TC_AES_BLOCK_SIZE; in tc_cbc_mode_encrypt() 77 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_decrypt() argument 87 if (out == (uint8_t *) 0 || in tc_cbc_mode_decrypt() 110 *out++ = buffer[m++] ^ *p++; in tc_cbc_mode_decrypt()
|
D | ccm_mode.c | 93 static int ccm_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in ccm_ctr_mode() argument 103 if (out == (uint8_t *) 0 || in ccm_ctr_mode() 128 *out++ = buffer[i % (TC_AES_BLOCK_SIZE)] ^ *in++; in ccm_ctr_mode() 137 int tc_ccm_generation_encryption(uint8_t *out, unsigned int olen, in tc_ccm_generation_encryption() argument 144 if ((out == (uint8_t *) 0) || in tc_ccm_generation_encryption() 184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption() 190 out += plen; in tc_ccm_generation_encryption() 192 *out++ = tag[i] ^ b[i]; in tc_ccm_generation_encryption() 198 int tc_ccm_decryption_verification(uint8_t *out, unsigned int olen, in tc_ccm_decryption_verification() argument 205 if ((out == (uint8_t *) 0) || in tc_ccm_decryption_verification() [all …]
|
D | aes_decrypt.c | 73 static inline void mult_row_column(uint8_t *out, const uint8_t *in) in mult_row_column() argument 75 out[0] = multe(in[0]) ^ multb(in[1]) ^ multd(in[2]) ^ mult9(in[3]); in mult_row_column() 76 out[1] = mult9(in[0]) ^ multe(in[1]) ^ multb(in[2]) ^ multd(in[3]); in mult_row_column() 77 out[2] = multd(in[0]) ^ mult9(in[1]) ^ multe(in[2]) ^ multb(in[3]); in mult_row_column() 78 out[3] = multb(in[0]) ^ multd(in[1]) ^ mult9(in[2]) ^ multe(in[3]); in mult_row_column() 129 int tc_aes_decrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s) in tc_aes_decrypt() argument 134 if (out == (uint8_t *) 0) { in tc_aes_decrypt() 157 (void)_copy(out, sizeof(state), state, sizeof(state)); in tc_aes_decrypt()
|
D | aes_encrypt.c | 124 static inline void mult_row_column(uint8_t *out, const uint8_t *in) in mult_row_column() argument 126 out[0] = _double_byte(in[0]) ^ triple(in[1]) ^ in[2] ^ in[3]; in mult_row_column() 127 out[1] = in[0] ^ _double_byte(in[1]) ^ triple(in[2]) ^ in[3]; in mult_row_column() 128 out[2] = in[0] ^ in[1] ^ _double_byte(in[2]) ^ triple(in[3]); in mult_row_column() 129 out[3] = triple(in[0]) ^ in[1] ^ in[2] ^ _double_byte(in[3]); in mult_row_column() 158 int tc_aes_encrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s) in tc_aes_encrypt() argument 163 if (out == (uint8_t *) 0) { in tc_aes_encrypt() 185 (void)_copy(out, sizeof(state), state, sizeof(state)); in tc_aes_encrypt()
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | cbc_mode.c | 37 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_encrypt() argument 46 if (out == (uint8_t *) 0 || in tc_cbc_mode_encrypt() 60 (void)_copy(out, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt() 61 out += TC_AES_BLOCK_SIZE; in tc_cbc_mode_encrypt() 67 (void)_copy(out, TC_AES_BLOCK_SIZE, in tc_cbc_mode_encrypt() 69 out += TC_AES_BLOCK_SIZE; in tc_cbc_mode_encrypt() 77 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_decrypt() argument 87 if (out == (uint8_t *) 0 || in tc_cbc_mode_decrypt() 110 *out++ = buffer[m++] ^ *p++; in tc_cbc_mode_decrypt()
|
D | ccm_mode.c | 93 static int ccm_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in ccm_ctr_mode() argument 103 if (out == (uint8_t *) 0 || in ccm_ctr_mode() 128 *out++ = buffer[i % (TC_AES_BLOCK_SIZE)] ^ *in++; in ccm_ctr_mode() 137 int tc_ccm_generation_encryption(uint8_t *out, unsigned int olen, in tc_ccm_generation_encryption() argument 144 if ((out == (uint8_t *) 0) || in tc_ccm_generation_encryption() 184 ccm_ctr_mode(out, plen, payload, plen, b, c->sched); in tc_ccm_generation_encryption() 190 out += plen; in tc_ccm_generation_encryption() 192 *out++ = tag[i] ^ b[i]; in tc_ccm_generation_encryption() 198 int tc_ccm_decryption_verification(uint8_t *out, unsigned int olen, in tc_ccm_decryption_verification() argument 205 if ((out == (uint8_t *) 0) || in tc_ccm_decryption_verification() [all …]
|
D | aes_decrypt.c | 73 static inline void mult_row_column(uint8_t *out, const uint8_t *in) in mult_row_column() argument 75 out[0] = multe(in[0]) ^ multb(in[1]) ^ multd(in[2]) ^ mult9(in[3]); in mult_row_column() 76 out[1] = mult9(in[0]) ^ multe(in[1]) ^ multb(in[2]) ^ multd(in[3]); in mult_row_column() 77 out[2] = multd(in[0]) ^ mult9(in[1]) ^ multe(in[2]) ^ multb(in[3]); in mult_row_column() 78 out[3] = multb(in[0]) ^ multd(in[1]) ^ mult9(in[2]) ^ multe(in[3]); in mult_row_column() 129 int tc_aes_decrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s) in tc_aes_decrypt() argument 134 if (out == (uint8_t *) 0) { in tc_aes_decrypt() 157 (void)_copy(out, sizeof(state), state, sizeof(state)); in tc_aes_decrypt()
|
D | aes_encrypt.c | 124 static inline void mult_row_column(uint8_t *out, const uint8_t *in) in mult_row_column() argument 126 out[0] = _double_byte(in[0]) ^ triple(in[1]) ^ in[2] ^ in[3]; in mult_row_column() 127 out[1] = in[0] ^ _double_byte(in[1]) ^ triple(in[2]) ^ in[3]; in mult_row_column() 128 out[2] = in[0] ^ in[1] ^ _double_byte(in[2]) ^ triple(in[3]); in mult_row_column() 129 out[3] = triple(in[0]) ^ in[1] ^ in[2] ^ _double_byte(in[3]); in mult_row_column() 158 int tc_aes_encrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s) in tc_aes_encrypt() argument 163 if (out == (uint8_t *) 0) { in tc_aes_encrypt() 185 (void)_copy(out, sizeof(state), state, sizeof(state)); in tc_aes_encrypt()
|
/hal_espressif-latest/components/hal/esp32s3/include/hal/ |
D | gdma_ll.h | 321 return dev->channel[channel].out.int_st.val; in gdma_ll_tx_get_interrupt_status() 330 dev->channel[channel].out.int_ena.val |= mask; in gdma_ll_tx_enable_interrupt() 332 dev->channel[channel].out.int_ena.val &= ~mask; in gdma_ll_tx_enable_interrupt() 342 dev->channel[channel].out.int_clr.val = mask; in gdma_ll_tx_clear_interrupt_status() 350 return (volatile void *)(&dev->channel[channel].out.int_st); in gdma_ll_tx_get_interrupt_status_reg() 358 dev->channel[channel].out.conf1.out_check_owner = enable; in gdma_ll_tx_enable_owner_check() 366 dev->channel[channel].out.conf0.out_data_burst_en = enable; in gdma_ll_tx_enable_data_burst() 374 dev->channel[channel].out.conf0.outdscr_burst_en = enable; in gdma_ll_tx_enable_descriptor_burst() 382 dev->channel[channel].out.conf0.out_eof_mode = mode; in gdma_ll_tx_set_eof_mode() 390 dev->channel[channel].out.conf0.out_auto_wrback = enable; in gdma_ll_tx_enable_auto_write_back() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/utils/ |
D | base64.c | 24 char *out, *pos; in base64_gen_encode() local 37 out = os_malloc(olen); in base64_gen_encode() 38 if (out == NULL) in base64_gen_encode() 43 pos = out; in base64_gen_encode() 79 *out_len = pos - out; in base64_gen_encode() 80 return out; in base64_gen_encode() 87 unsigned char dtable[256], *out, *pos, block[4], tmp; in base64_gen_decode() local 108 pos = out = os_malloc(olen); in base64_gen_decode() 109 if (out == NULL) in base64_gen_decode() 140 os_free(out); in base64_gen_decode() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/include/ |
D | aes.h | 91 unsigned char out[N_BLOCK], 95 unsigned char *out, 104 unsigned char out[N_BLOCK], 108 unsigned char *out, 136 unsigned char out[N_BLOCK], 143 unsigned char out[N_BLOCK], 150 unsigned char out[N_BLOCK], 157 unsigned char out[N_BLOCK],
|
/hal_espressif-latest/components/hal/esp32c2/include/hal/ |
D | gdma_ll.h | 311 dev->channel[channel].out.out_conf1.out_check_owner = enable; in gdma_ll_tx_enable_owner_check() 319 dev->channel[channel].out.out_conf0.out_data_burst_en = enable; in gdma_ll_tx_enable_data_burst() 327 dev->channel[channel].out.out_conf0.outdscr_burst_en = enable; in gdma_ll_tx_enable_descriptor_burst() 335 dev->channel[channel].out.out_conf0.out_eof_mode = mode; in gdma_ll_tx_set_eof_mode() 343 dev->channel[channel].out.out_conf0.out_auto_wrback = enable; in gdma_ll_tx_enable_auto_write_back() 352 dev->channel[channel].out.out_conf0.out_rst = 1; in gdma_ll_tx_reset_channel() 353 dev->channel[channel].out.out_conf0.out_rst = 0; in gdma_ll_tx_reset_channel() 362 return dev->channel[channel].out.outfifo_status.val & 0x01; in gdma_ll_tx_is_fifo_full() 371 return dev->channel[channel].out.outfifo_status.val & 0x02; in gdma_ll_tx_is_fifo_empty() 380 return dev->channel[channel].out.outfifo_status.outfifo_cnt; in gdma_ll_tx_get_fifo_bytes() [all …]
|
/hal_espressif-latest/components/hal/esp32c3/include/hal/ |
D | gdma_ll.h | 311 dev->channel[channel].out.out_conf1.out_check_owner = enable; in gdma_ll_tx_enable_owner_check() 319 dev->channel[channel].out.out_conf0.out_data_burst_en = enable; in gdma_ll_tx_enable_data_burst() 327 dev->channel[channel].out.out_conf0.outdscr_burst_en = enable; in gdma_ll_tx_enable_descriptor_burst() 335 dev->channel[channel].out.out_conf0.out_eof_mode = mode; in gdma_ll_tx_set_eof_mode() 343 dev->channel[channel].out.out_conf0.out_auto_wrback = enable; in gdma_ll_tx_enable_auto_write_back() 352 dev->channel[channel].out.out_conf0.out_rst = 1; in gdma_ll_tx_reset_channel() 353 dev->channel[channel].out.out_conf0.out_rst = 0; in gdma_ll_tx_reset_channel() 362 return dev->channel[channel].out.outfifo_status.val & 0x01; in gdma_ll_tx_is_fifo_full() 371 return dev->channel[channel].out.outfifo_status.val & 0x02; in gdma_ll_tx_is_fifo_empty() 380 return dev->channel[channel].out.outfifo_status.outfifo_cnt; in gdma_ll_tx_get_fifo_bytes() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/tls/ |
D | pkcs1.c | 20 u8 *out, size_t *outlen) in pkcs1_generate_encryption_block() argument 44 pos = out; in pkcs1_generate_encryption_block() 83 u8 *out, size_t *outlen) in pkcs1_encrypt() argument 90 out, outlen) < 0) in pkcs1_encrypt() 93 return crypto_rsa_exptmod(out, modlen, out, outlen, key, use_private); in pkcs1_encrypt() 99 u8 *out, size_t *outlen) in pkcs1_v15_private_key_decrypt() argument 104 res = crypto_rsa_exptmod(in, inlen, out, outlen, key, 1); in pkcs1_v15_private_key_decrypt() 108 if (*outlen < 2 || out[0] != 0 || out[1] != 2) in pkcs1_v15_private_key_decrypt() 112 pos = out + 2; in pkcs1_v15_private_key_decrypt() 113 end = out + *outlen; in pkcs1_v15_private_key_decrypt() [all …]
|
/hal_espressif-latest/components/hal/esp32c6/include/hal/ |
D | gdma_ll.h | 368 dev->channel[channel].out.out_conf1.out_check_owner = enable; in gdma_ll_tx_enable_owner_check() 376 dev->channel[channel].out.out_conf0.out_data_burst_en = enable; in gdma_ll_tx_enable_data_burst() 384 dev->channel[channel].out.out_conf0.outdscr_burst_en = enable; in gdma_ll_tx_enable_descriptor_burst() 392 dev->channel[channel].out.out_conf0.out_eof_mode = mode; in gdma_ll_tx_set_eof_mode() 400 dev->channel[channel].out.out_conf0.out_auto_wrback = enable; in gdma_ll_tx_enable_auto_write_back() 409 dev->channel[channel].out.out_conf0.out_rst = 1; in gdma_ll_tx_reset_channel() 410 dev->channel[channel].out.out_conf0.out_rst = 0; in gdma_ll_tx_reset_channel() 419 return dev->channel[channel].out.outfifo_status.val & 0x01; in gdma_ll_tx_is_fifo_full() 428 return dev->channel[channel].out.outfifo_status.val & 0x02; in gdma_ll_tx_is_fifo_empty() 437 return dev->channel[channel].out.outfifo_status.outfifo_cnt; in gdma_ll_tx_get_fifo_bytes() [all …]
|
/hal_espressif-latest/components/hal/esp32h2/include/hal/ |
D | gdma_ll.h | 368 dev->channel[channel].out.out_conf1.out_check_owner = enable; in gdma_ll_tx_enable_owner_check() 376 dev->channel[channel].out.out_conf0.out_data_burst_en = enable; in gdma_ll_tx_enable_data_burst() 384 dev->channel[channel].out.out_conf0.outdscr_burst_en = enable; in gdma_ll_tx_enable_descriptor_burst() 392 dev->channel[channel].out.out_conf0.out_eof_mode = mode; in gdma_ll_tx_set_eof_mode() 400 dev->channel[channel].out.out_conf0.out_auto_wrback = enable; in gdma_ll_tx_enable_auto_write_back() 409 dev->channel[channel].out.out_conf0.out_rst = 1; in gdma_ll_tx_reset_channel() 410 dev->channel[channel].out.out_conf0.out_rst = 0; in gdma_ll_tx_reset_channel() 419 return dev->channel[channel].out.outfifo_status.val & 0x01; in gdma_ll_tx_is_fifo_full() 428 return dev->channel[channel].out.outfifo_status.val & 0x02; in gdma_ll_tx_is_fifo_empty() 437 return dev->channel[channel].out.outfifo_status.outfifo_cnt; in gdma_ll_tx_get_fifo_bytes() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | crypto_internal-rsa.c | 74 u8 *out, size_t *outlen) in crypto_public_key_encrypt_pkcs1_v15() argument 77 0, in, inlen, out, outlen); in crypto_public_key_encrypt_pkcs1_v15() 83 u8 *out, size_t *outlen) in crypto_private_key_decrypt_pkcs1_v15() argument 86 in, inlen, out, outlen); in crypto_private_key_decrypt_pkcs1_v15() 92 u8 *out, size_t *outlen) in crypto_private_key_sign_pkcs1() argument 95 1, in, inlen, out, outlen); in crypto_private_key_sign_pkcs1()
|
D | sha256-kdf.c | 34 u8 *out, size_t outlen) in hmac_sha256_kdf() argument 64 os_memcpy(out + pos, T, clen); in hmac_sha256_kdf() 71 os_memset(out, 0, outlen); in hmac_sha256_kdf() 79 os_memset(out, 0, outlen); in hmac_sha256_kdf()
|
/hal_espressif-latest/components/esp_event/ |
D | esp_event_private.c | 36 goto out; in esp_event_is_handler_registered() 46 goto out; in esp_event_is_handler_registered() 56 goto out; in esp_event_is_handler_registered() 65 out: in esp_event_is_handler_registered()
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/ |
D | crypto.c | 67 uint8_t out[16] = {0}; in bt_mesh_k2() local 94 err = bt_mesh_aes_cmac(t, sg, ARRAY_SIZE(sg), out); in bt_mesh_k2() 99 net_id[0] = out[15] & 0x7f; in bt_mesh_k2() 101 sg[0].data = out; in bt_mesh_k2() 102 sg[0].len = sizeof(out); in bt_mesh_k2() 105 err = bt_mesh_aes_cmac(t, sg, ARRAY_SIZE(sg), out); in bt_mesh_k2() 110 memcpy(enc_key, out, 16); in bt_mesh_k2() 114 err = bt_mesh_aes_cmac(t, sg, ARRAY_SIZE(sg), out); in bt_mesh_k2() 119 memcpy(priv_key, out, 16); in bt_mesh_k2() 127 int bt_mesh_k3(const uint8_t n[16], uint8_t out[8]) in bt_mesh_k3() [all …]
|