Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/hal_espressif-3.6.0/components/mbedtls/port/aes/
Desp_aes_gcm.c56 static void esp_gcm_ghash(esp_gcm_context *ctx, const unsigned char *x, size_t x_len, uint8_t *z);
62 static void esp_gcm_derive_J0(esp_gcm_context *ctx) in esp_gcm_derive_J0() argument
66 memset(ctx->J0, 0, AES_BLOCK_BYTES); in esp_gcm_derive_J0()
70 if (ctx->iv_len == 12) { in esp_gcm_derive_J0()
71 memcpy(ctx->J0, ctx->iv, ctx->iv_len); in esp_gcm_derive_J0()
72 ctx->J0[AES_BLOCK_BYTES - 1] |= 1; in esp_gcm_derive_J0()
76 esp_gcm_ghash(ctx, ctx->iv, ctx->iv_len, ctx->J0); in esp_gcm_derive_J0()
79 ESP_PUT_BE64(len_buf + 8, ctx->iv_len * 8); in esp_gcm_derive_J0()
81 esp_gcm_ghash(ctx, len_buf, 16, ctx->J0); in esp_gcm_derive_J0()
94 static void increment32_j0(esp_gcm_context *ctx, uint8_t *j) in increment32_j0() argument
[all …]
/hal_espressif-3.6.0/components/wpa_supplicant/src/crypto/
Dcrypto_internal.c40 struct crypto_hash *ctx; in crypto_hash_init() local
45 ctx = os_zalloc(sizeof(*ctx)); in crypto_hash_init()
46 if (ctx == NULL) in crypto_hash_init()
49 ctx->alg = alg; in crypto_hash_init()
53 MD5Init(&ctx->u.md5); in crypto_hash_init()
56 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
60 sha256_init(&ctx->u.sha256); in crypto_hash_init()
65 sha384_init(&ctx->u.sha384); in crypto_hash_init()
70 sha512_init(&ctx->u.sha512); in crypto_hash_init()
75 MD5Init(&ctx->u.md5); in crypto_hash_init()
[all …]
Dcrypto_internal-cipher.c47 struct crypto_cipher *ctx; in crypto_cipher_init() local
49 ctx = os_zalloc(sizeof(*ctx)); in crypto_cipher_init()
50 if (ctx == NULL) in crypto_cipher_init()
53 ctx->alg = alg; in crypto_cipher_init()
57 if (key_len > sizeof(ctx->u.rc4.key)) { in crypto_cipher_init()
58 os_free(ctx); in crypto_cipher_init()
61 ctx->u.rc4.keylen = key_len; in crypto_cipher_init()
62 os_memcpy(ctx->u.rc4.key, key, key_len); in crypto_cipher_init()
65 ctx->u.aes.ctx_enc = aes_encrypt_init(key, key_len); in crypto_cipher_init()
66 if (ctx->u.aes.ctx_enc == NULL) { in crypto_cipher_init()
[all …]
Dcrypto_mbedtls.c114 mbedtls_md_context_t ctx; member
120 struct crypto_hash *ctx; in crypto_hash_init() local
139 ctx = os_zalloc(sizeof(*ctx)); in crypto_hash_init()
140 if (ctx == NULL) { in crypto_hash_init()
144 mbedtls_md_init(&ctx->ctx); in crypto_hash_init()
147 os_free(ctx); in crypto_hash_init()
150 ret = mbedtls_md_setup(&ctx->ctx, md_info, 1); in crypto_hash_init()
152 os_free(ctx); in crypto_hash_init()
155 mbedtls_md_hmac_starts(&ctx->ctx, key, key_len); in crypto_hash_init()
157 return ctx; in crypto_hash_init()
[all …]
/hal_espressif-3.6.0/components/mbedtls/port/sha/dma/
Desp_sha512.c83 void esp_sha512_set_mode(mbedtls_sha512_context *ctx, esp_sha_type type) in esp_sha512_set_mode() argument
90 ctx->mode = type; in esp_sha512_set_mode()
93 ctx->mode = SHA2_512; in esp_sha512_set_mode()
100 void esp_sha512_set_t( mbedtls_sha512_context *ctx, uint16_t t_val) in esp_sha512_set_t() argument
102 ctx->t_val = t_val; in esp_sha512_set_t()
105 void mbedtls_sha512_init( mbedtls_sha512_context *ctx ) in mbedtls_sha512_init() argument
107 memset( ctx, 0, sizeof( mbedtls_sha512_context ) ); in mbedtls_sha512_init()
110 void mbedtls_sha512_free( mbedtls_sha512_context *ctx ) in mbedtls_sha512_free() argument
112 if ( ctx == NULL ) { in mbedtls_sha512_free()
116 mbedtls_zeroize( ctx, sizeof( mbedtls_sha512_context ) ); in mbedtls_sha512_free()
[all …]
Desp_sha1.c73 void mbedtls_sha1_init( mbedtls_sha1_context *ctx ) in mbedtls_sha1_init() argument
75 memset( ctx, 0, sizeof( mbedtls_sha1_context ) ); in mbedtls_sha1_init()
78 void mbedtls_sha1_free( mbedtls_sha1_context *ctx ) in mbedtls_sha1_free() argument
80 if ( ctx == NULL ) { in mbedtls_sha1_free()
83 mbedtls_zeroize( ctx, sizeof( mbedtls_sha1_context ) ); in mbedtls_sha1_free()
95 int mbedtls_sha1_starts_ret( mbedtls_sha1_context *ctx ) in mbedtls_sha1_starts_ret() argument
97 ctx->total[0] = 0; in mbedtls_sha1_starts_ret()
98 ctx->total[1] = 0; in mbedtls_sha1_starts_ret()
100 memset( ctx, 0, sizeof( mbedtls_sha1_context ) ); in mbedtls_sha1_starts_ret()
101 ctx->mode = SHA1; in mbedtls_sha1_starts_ret()
[all …]
Desp_sha256.c83 void mbedtls_sha256_init( mbedtls_sha256_context *ctx ) in mbedtls_sha256_init() argument
85 memset( ctx, 0, sizeof( mbedtls_sha256_context ) ); in mbedtls_sha256_init()
88 void mbedtls_sha256_free( mbedtls_sha256_context *ctx ) in mbedtls_sha256_free() argument
90 if ( ctx == NULL ) { in mbedtls_sha256_free()
94 mbedtls_zeroize( ctx, sizeof( mbedtls_sha256_context ) ); in mbedtls_sha256_free()
106 int mbedtls_sha256_starts_ret( mbedtls_sha256_context *ctx, int is224 ) in mbedtls_sha256_starts_ret() argument
108 memset( ctx, 0, sizeof( mbedtls_sha256_context ) ); in mbedtls_sha256_starts_ret()
111 ctx->mode = SHA2_224; in mbedtls_sha256_starts_ret()
113 ctx->mode = SHA2_256; in mbedtls_sha256_starts_ret()
120 void mbedtls_sha256_starts( mbedtls_sha256_context *ctx, in mbedtls_sha256_starts() argument
[all …]
/hal_espressif-3.6.0/components/mbedtls/port/sha/parallel_engine/
Desp_sha512.c59 inline static esp_sha_type sha_type(const mbedtls_sha512_context *ctx) in sha_type() argument
61 return ctx->is384 ? SHA2_384 : SHA2_512; in sha_type()
104 void mbedtls_sha512_init( mbedtls_sha512_context *ctx ) in mbedtls_sha512_init() argument
106 memset( ctx, 0, sizeof( mbedtls_sha512_context ) ); in mbedtls_sha512_init()
109 void mbedtls_sha512_free( mbedtls_sha512_context *ctx ) in mbedtls_sha512_free() argument
111 if ( ctx == NULL ) { in mbedtls_sha512_free()
115 if (ctx->mode == ESP_MBEDTLS_SHA512_HARDWARE) { in mbedtls_sha512_free()
116 esp_sha_unlock_engine(sha_type(ctx)); in mbedtls_sha512_free()
118 mbedtls_zeroize( ctx, sizeof( mbedtls_sha512_context ) ); in mbedtls_sha512_free()
143 int mbedtls_sha512_starts_ret( mbedtls_sha512_context *ctx, int is384 ) in mbedtls_sha512_starts_ret() argument
[all …]
Desp_sha256.c85 void mbedtls_sha256_init( mbedtls_sha256_context *ctx ) in mbedtls_sha256_init() argument
87 memset( ctx, 0, sizeof( mbedtls_sha256_context ) ); in mbedtls_sha256_init()
90 void mbedtls_sha256_free( mbedtls_sha256_context *ctx ) in mbedtls_sha256_free() argument
92 if ( ctx == NULL ) { in mbedtls_sha256_free()
96 if (ctx->mode == ESP_MBEDTLS_SHA256_HARDWARE) { in mbedtls_sha256_free()
99 mbedtls_zeroize( ctx, sizeof( mbedtls_sha256_context ) ); in mbedtls_sha256_free()
119 int mbedtls_sha256_starts_ret( mbedtls_sha256_context *ctx, int is224 ) in mbedtls_sha256_starts_ret() argument
121 ctx->total[0] = 0; in mbedtls_sha256_starts_ret()
122 ctx->total[1] = 0; in mbedtls_sha256_starts_ret()
126 ctx->state[0] = 0x6A09E667; in mbedtls_sha256_starts_ret()
[all …]
Desp_sha1.c84 void mbedtls_sha1_init( mbedtls_sha1_context *ctx ) in mbedtls_sha1_init() argument
86 memset( ctx, 0, sizeof( mbedtls_sha1_context ) ); in mbedtls_sha1_init()
89 void mbedtls_sha1_free( mbedtls_sha1_context *ctx ) in mbedtls_sha1_free() argument
91 if ( ctx == NULL ) { in mbedtls_sha1_free()
95 if (ctx->mode == ESP_MBEDTLS_SHA1_HARDWARE) { in mbedtls_sha1_free()
98 mbedtls_zeroize( ctx, sizeof( mbedtls_sha1_context ) ); in mbedtls_sha1_free()
119 int mbedtls_sha1_starts_ret( mbedtls_sha1_context *ctx ) in mbedtls_sha1_starts_ret() argument
121 ctx->total[0] = 0; in mbedtls_sha1_starts_ret()
122 ctx->total[1] = 0; in mbedtls_sha1_starts_ret()
124 ctx->state[0] = 0x67452301; in mbedtls_sha1_starts_ret()
[all …]
/hal_espressif-3.6.0/examples/peripherals/spi_master/hd_eeprom/components/eeprom/
Dspi_eeprom.c67 static esp_err_t eeprom_simple_cmd(eeprom_context_t *ctx, uint16_t cmd) in eeprom_simple_cmd() argument
71 .user = ctx in eeprom_simple_cmd()
73 return spi_device_polling_transmit(ctx->spi, &t); in eeprom_simple_cmd()
76 static esp_err_t eeprom_wait_done(eeprom_context_t* ctx) in eeprom_wait_done() argument
81 if (ctx->cfg.intr_used) { in eeprom_wait_done()
82 xSemaphoreTake(ctx->ready_sem, 0); in eeprom_wait_done()
83 gpio_set_level(ctx->cfg.cs_io, 1); in eeprom_wait_done()
84 gpio_intr_enable(ctx->cfg.miso_io); in eeprom_wait_done()
88 BaseType_t ret = xSemaphoreTake(ctx->ready_sem, tick_to_wait); in eeprom_wait_done()
89 gpio_intr_disable(ctx->cfg.miso_io); in eeprom_wait_done()
[all …]
/hal_espressif-3.6.0/components/mbedtls/port/aes/block/
Desp_aes.c77 static int esp_aes_block(esp_aes_context *ctx, const void *input, void *output) in esp_aes_block() argument
88 if (ctx->key_in_hardware != ctx->key_bytes) { in esp_aes_block()
117 void esp_aes_encrypt(esp_aes_context *ctx, in esp_aes_encrypt() argument
121 esp_internal_aes_encrypt(ctx, input, output); in esp_aes_encrypt()
127 int esp_internal_aes_encrypt(esp_aes_context *ctx, in esp_internal_aes_encrypt() argument
133 if (!valid_key_length(ctx)) { in esp_internal_aes_encrypt()
138 ctx->key_in_hardware = 0; in esp_internal_aes_encrypt()
139 ctx->key_in_hardware = aes_hal_setkey(ctx->key, ctx->key_bytes, ESP_AES_ENCRYPT); in esp_internal_aes_encrypt()
140 r = esp_aes_block(ctx, input, output); in esp_internal_aes_encrypt()
145 void esp_aes_decrypt(esp_aes_context *ctx, in esp_aes_decrypt() argument
[all …]
/hal_espressif-3.6.0/components/openssl/include/openssl/
Dssl.h51 void SSL_CTX_free(SSL_CTX *ctx);
60 SSL* SSL_new(SSL_CTX *ctx);
176 int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);
188 int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);
349 int SSL_CTX_set_min_proto_version(SSL_CTX *ctx, int version);
358 int SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version);
369 void SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx,
390 int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos, unsigned int protos_len);
401 void SSL_CTX_set_next_proto_select_cb(SSL_CTX *ctx,
438 unsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long opt);
[all …]
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Dctr_prng.c74 static void tc_ctr_prng_update(TCCtrPrng_t *const ctx, uint8_t const *const providedData) in tc_ctr_prng_update() argument
76 if (0 != ctx) { in tc_ctr_prng_update()
87 arrInc(ctx->V, sizeof ctx->V); in tc_ctr_prng_update()
93 (void)tc_aes_encrypt(output_block, ctx->V, &ctx->key); in tc_ctr_prng_update()
110 (void)tc_aes128_set_encrypt_key(&ctx->key, temp); in tc_ctr_prng_update()
113 memcpy(ctx->V, &(temp[TC_AES_KEY_SIZE]), TC_AES_BLOCK_SIZE); in tc_ctr_prng_update()
117 int tc_ctr_prng_init(TCCtrPrng_t *const ctx, in tc_ctr_prng_init() argument
140 if ((0 != ctx) && (0 != entropy) && (entropyLen >= sizeof seed_material)) { in tc_ctr_prng_init()
148 (void)tc_aes128_set_encrypt_key(&ctx->key, zeroArr); in tc_ctr_prng_init()
151 memset(ctx->V, 0x00, sizeof ctx->V); in tc_ctr_prng_init()
[all …]
Dhmac.c52 int tc_hmac_set_key(TCHmacState_t ctx, const uint8_t *key, in tc_hmac_set_key() argument
56 if (ctx == (TCHmacState_t) 0 || in tc_hmac_set_key()
81 rekey(ctx->key, key, key_size); in tc_hmac_set_key()
83 (void)tc_sha256_init(&ctx->hash_state); in tc_hmac_set_key()
84 (void)tc_sha256_update(&ctx->hash_state, key, key_size); in tc_hmac_set_key()
85 (void)tc_sha256_final(&ctx->key[TC_SHA256_DIGEST_SIZE], in tc_hmac_set_key()
86 &ctx->hash_state); in tc_hmac_set_key()
87 rekey(ctx->key, in tc_hmac_set_key()
88 &ctx->key[TC_SHA256_DIGEST_SIZE], in tc_hmac_set_key()
95 int tc_hmac_init(TCHmacState_t ctx) in tc_hmac_init() argument
[all …]
/hal_espressif-3.6.0/components/openssl/library/
Dssl_lib.c173 SSL_CTX *ctx; in SSL_CTX_new() local
194 ctx = (SSL_CTX *)ssl_mem_zalloc(sizeof(SSL_CTX)); in SSL_CTX_new()
195 if (!ctx) { in SSL_CTX_new()
200 ctx->method = method; in SSL_CTX_new()
201 ctx->client_CA = client_ca; in SSL_CTX_new()
202 ctx->cert = cert; in SSL_CTX_new()
204 ctx->version = method->version; in SSL_CTX_new()
206 return ctx; in SSL_CTX_new()
219 void SSL_CTX_free(SSL_CTX* ctx) in SSL_CTX_free() argument
221 SSL_ASSERT3(ctx); in SSL_CTX_free()
[all …]
/hal_espressif-3.6.0/components/mbedtls/port/aes/dma/
Desp_aes.c232 static int esp_aes_process_dma(esp_aes_context *ctx, const unsigned char *input, unsigned char *out…
240 static int esp_aes_process_dma_ext_ram(esp_aes_context *ctx, const unsigned char *input, unsigned c… in esp_aes_process_dma_ext_ram() argument
283 if (esp_aes_process_dma(ctx, dma_input, output_buf, chunk_len, stream_out) != 0) { in esp_aes_process_dma_ext_ram()
311 static int esp_aes_process_dma(esp_aes_context *ctx, const unsigned char *input, unsigned char *out… in esp_aes_process_dma() argument
333 if (ctx->key_in_hardware != ctx->key_bytes) { in esp_aes_process_dma()
362 …return esp_aes_process_dma_ext_ram(ctx, input, output, len, stream_out, input_needs_realloc, outpu… in esp_aes_process_dma()
460 int esp_aes_process_dma_gcm(esp_aes_context *ctx, const unsigned char *input, unsigned char *output… in esp_aes_process_dma_gcm() argument
482 if (ctx->key_in_hardware != ctx->key_bytes) { in esp_aes_process_dma_gcm()
575 static int esp_aes_validate_input(esp_aes_context *ctx, const unsigned char *input, in esp_aes_validate_input() argument
578 if (!ctx) { in esp_aes_validate_input()
[all …]
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_time_scene_model.c223 struct bt_mesh_msg_ctx *ctx, in bt_mesh_time_scene_client_cb_evt_to_btc() argument
230 if (!model || !ctx) { in bt_mesh_time_scene_client_cb_evt_to_btc()
255 params.ctx.net_idx = ctx->net_idx; in bt_mesh_time_scene_client_cb_evt_to_btc()
256 params.ctx.app_idx = ctx->app_idx; in bt_mesh_time_scene_client_cb_evt_to_btc()
257 params.ctx.addr = ctx->addr; in bt_mesh_time_scene_client_cb_evt_to_btc()
258 params.ctx.recv_ttl = ctx->recv_ttl; in bt_mesh_time_scene_client_cb_evt_to_btc()
259 params.ctx.recv_op = ctx->recv_op; in bt_mesh_time_scene_client_cb_evt_to_btc()
260 params.ctx.recv_dst = ctx->recv_dst; in bt_mesh_time_scene_client_cb_evt_to_btc()
261 params.ctx.recv_rssi = ctx->recv_rssi; in bt_mesh_time_scene_client_cb_evt_to_btc()
262 params.ctx.send_ttl = ctx->send_ttl; in bt_mesh_time_scene_client_cb_evt_to_btc()
[all …]
Dbtc_ble_mesh_lighting_model.c221 struct bt_mesh_msg_ctx *ctx, in bt_mesh_lighting_client_cb_evt_to_btc() argument
228 if (!model || !ctx) { in bt_mesh_lighting_client_cb_evt_to_btc()
253 params.ctx.net_idx = ctx->net_idx; in bt_mesh_lighting_client_cb_evt_to_btc()
254 params.ctx.app_idx = ctx->app_idx; in bt_mesh_lighting_client_cb_evt_to_btc()
255 params.ctx.addr = ctx->addr; in bt_mesh_lighting_client_cb_evt_to_btc()
256 params.ctx.recv_ttl = ctx->recv_ttl; in bt_mesh_lighting_client_cb_evt_to_btc()
257 params.ctx.recv_op = ctx->recv_op; in bt_mesh_lighting_client_cb_evt_to_btc()
258 params.ctx.recv_dst = ctx->recv_dst; in bt_mesh_lighting_client_cb_evt_to_btc()
259 params.ctx.recv_rssi = ctx->recv_rssi; in bt_mesh_lighting_client_cb_evt_to_btc()
260 params.ctx.send_ttl = ctx->send_ttl; in bt_mesh_lighting_client_cb_evt_to_btc()
[all …]
/hal_espressif-3.6.0/components/mbedtls/test/
Dtest_aes.c67 mbedtls_aes_context ctx; variable
88 mbedtls_aes_init(&ctx);
89 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
95 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_ENCRYPT, SZ, nonce, plaintext, chipertext);
100 mbedtls_aes_setkey_dec(&ctx, key_256, 256);
101 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext);
105 mbedtls_aes_free(&ctx);
114 mbedtls_aes_context ctx; variable
137 mbedtls_aes_init(&ctx);
138 mbedtls_aes_setkey_enc(&ctx, key_256, 256);
[all …]
/hal_espressif-3.6.0/components/esp_serial_slave_link/
Dessl_spi.c305 essl_spi_context_t *ctx = arg; in essl_spi_reset_cnt() local
306 if (ctx) { in essl_spi_reset_cnt()
307 ctx->master_out.sent_buf_num = 0; in essl_spi_reset_cnt()
308 ctx->master_in.received_bytes = 0; in essl_spi_reset_cnt()
315 essl_spi_context_t *ctx = arg; in essl_spi_read_reg() local
317 …uint8_t reserved_1_head = ctx->master_out.tx_sync_reg < ctx->master_in.rx_sync_reg ? ctx->master_o… in essl_spi_read_reg()
319 …uint8_t reserved_2_head = ctx->master_out.tx_sync_reg < ctx->master_in.rx_sync_reg ? ctx->master_i… in essl_spi_read_reg()
323 return essl_spi_rdbuf(ctx->spi, out_value, addr, sizeof(uint8_t), 0); in essl_spi_read_reg()
328 essl_spi_context_t *ctx = arg; in essl_spi_get_rx_data_size() local
329 …G, "slave tx buffer: %d bytes, master has read: %d bytes", ctx->master_in.slave_tx_bytes, ctx->mas… in essl_spi_get_rx_data_size()
[all …]
/hal_espressif-3.6.0/components/mbedtls/port/sha/
Desp_sha.c38 } ctx; in esp_sha() local
45 mbedtls_sha1_init(&ctx.sha1); in esp_sha()
46 mbedtls_sha1_starts_ret(&ctx.sha1); in esp_sha()
47 ret = mbedtls_sha1_update_ret(&ctx.sha1, input, ilen); in esp_sha()
49 ret = mbedtls_sha1_finish_ret(&ctx.sha1, output); in esp_sha()
51 mbedtls_sha1_free(&ctx.sha1); in esp_sha()
58 mbedtls_sha256_init(&ctx.sha256); in esp_sha()
59 mbedtls_sha256_starts_ret(&ctx.sha256, 0); in esp_sha()
60 ret = mbedtls_sha256_update_ret(&ctx.sha256, input, ilen); in esp_sha()
62 ret = mbedtls_sha256_finish_ret(&ctx.sha256, output); in esp_sha()
[all …]
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_models/server/
Dgeneric_server.c52 struct bt_mesh_msg_ctx *ctx, in send_gen_onoff_status() argument
59 if (ctx == NULL && publish == false) { in send_gen_onoff_status()
86 BLE_MESH_CHECK_SEND_STATUS(bt_mesh_model_send(model, ctx, msg, NULL, NULL)); in send_gen_onoff_status()
95 struct bt_mesh_msg_ctx *ctx, in gen_onoff_get() argument
108 BTC_BLE_MESH_EVT_GENERIC_SERVER_RECV_GET_MSG, model, ctx, NULL, 0); in gen_onoff_get()
112 send_gen_onoff_status(model, ctx, false); in gen_onoff_get()
128 struct bt_mesh_msg_ctx *ctx, in gen_onoff_set() argument
148 if (bt_mesh_server_get_optional(model, ctx, buf, &trans_time, &delay, &optional)) { in gen_onoff_set()
162 … BTC_BLE_MESH_EVT_GENERIC_SERVER_RECV_SET_MSG, model, ctx, (const uint8_t *)&set, sizeof(set)); in gen_onoff_set()
166 if (bt_mesh_is_server_recv_last_msg(&srv->last, tid, ctx->addr, ctx->recv_dst, &now)) { in gen_onoff_set()
[all …]
/hal_espressif-3.6.0/components/mbedtls/port/md/
Desp_md.c22 int esp_md5_finish_ret( mbedtls_md5_context *ctx, unsigned char output[16] ) in esp_md5_finish_ret() argument
24 esp_rom_md5_final(output, ctx); in esp_md5_finish_ret()
29 int esp_md5_update_ret( mbedtls_md5_context *ctx, const unsigned char *input, size_t ilen ) in esp_md5_update_ret() argument
31 esp_rom_md5_update(ctx, input, ilen); in esp_md5_update_ret()
36 int esp_md5_init_ret( mbedtls_md5_context *ctx ) in esp_md5_init_ret() argument
38 esp_rom_md5_init(ctx); in esp_md5_init_ret()
43 void esp_md5_finish( mbedtls_md5_context *ctx, unsigned char output[16] ) in esp_md5_finish() argument
45 esp_md5_finish_ret(ctx, output); in esp_md5_finish()
48 void esp_md5_update( mbedtls_md5_context *ctx, const unsigned char *input, size_t ilen ) in esp_md5_update() argument
50 esp_md5_update_ret(ctx, input, ilen); in esp_md5_update()
[all …]
/hal_espressif-3.6.0/components/vfs/include/
Desp_vfs.h104 …ssize_t (*read_p)(void* ctx, int fd, void * dst, size_t size); /*!< …
108 …ssize_t (*pread_p)(void *ctx, int fd, void * dst, size_t size, off_t offset); /*!< …
112 …ssize_t (*pwrite_p)(void *ctx, int fd, const void *src, size_t size, off_t offset); /*!< …
116 …int (*open_p)(void* ctx, const char * path, int flags, int mode); /*!< …
120 …int (*close_p)(void* ctx, int fd); /*!< …
124 …int (*fstat_p)(void* ctx, int fd, struct stat * st); /*!< …
129 …int (*stat_p)(void* ctx, const char * path, struct stat * st); /*!< …
133 …int (*link_p)(void* ctx, const char* n1, const char* n2); /*!< …
137 …int (*unlink_p)(void* ctx, const char *path); /*!< …
141 …int (*rename_p)(void* ctx, const char *src, const char *dst); /*!< r…
[all …]

12345678910>>...13