/hal_espressif-2.7.6/components/wpa_supplicant/src/crypto/ |
D | crypto_internal.c | 56 struct crypto_hash *ctx; in crypto_hash_init() local 61 ctx = (struct crypto_hash *)os_zalloc(sizeof(*ctx)); in crypto_hash_init() 62 if (ctx == NULL) in crypto_hash_init() 65 ctx->alg = alg; in crypto_hash_init() 69 MD5Init(&ctx->u.md5); in crypto_hash_init() 72 SHA1Init(&ctx->u.sha1); in crypto_hash_init() 77 mbedtls_sha256_init(&ctx->u.sha256); in crypto_hash_init() 78 mbedtls_sha256_starts_ret(&ctx->u.sha256, 0); in crypto_hash_init() 80 sha256_init(&ctx->u.sha256); in crypto_hash_init() 86 MD5Init(&ctx->u.md5); in crypto_hash_init() [all …]
|
D | crypto_internal-cipher.c | 74 struct crypto_cipher *ctx; in crypto_cipher_init() local 76 ctx = (struct crypto_cipher *)os_zalloc(sizeof(*ctx)); in crypto_cipher_init() 77 if (ctx == NULL) in crypto_cipher_init() 80 ctx->alg = alg; in crypto_cipher_init() 84 if (key_len > sizeof(ctx->u.rc4.key)) { in crypto_cipher_init() 85 os_free(ctx); in crypto_cipher_init() 88 ctx->u.rc4.keylen = key_len; in crypto_cipher_init() 89 os_memcpy(ctx->u.rc4.key, key, key_len); in crypto_cipher_init() 93 mbedtls_aes_init(&(ctx->u.aes.ctx_enc)); in crypto_cipher_init() 94 mbedtls_aes_setkey_enc(&(ctx->u.aes.ctx_enc), key, key_len * 8); in crypto_cipher_init() [all …]
|
D | aes-cbc.c | 52 mbedtls_aes_context ctx; in aes_128_cbc_encrypt() local 55 mbedtls_aes_init(&ctx); in aes_128_cbc_encrypt() 57 ret = mbedtls_aes_setkey_enc(&ctx, key, 128); in aes_128_cbc_encrypt() 59 mbedtls_aes_free(&ctx); in aes_128_cbc_encrypt() 64 ret = mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_ENCRYPT, data_len, cbc, data, data); in aes_128_cbc_encrypt() 65 mbedtls_aes_free(&ctx); in aes_128_cbc_encrypt() 83 mbedtls_aes_context ctx; in aes_128_cbc_decrypt() local 86 mbedtls_aes_init(&ctx); in aes_128_cbc_decrypt() 88 ret = mbedtls_aes_setkey_dec(&ctx, key, 128); in aes_128_cbc_decrypt() 90 mbedtls_aes_free(&ctx); in aes_128_cbc_decrypt() [all …]
|
/hal_espressif-2.7.6/components/mbedtls/port/aes/ |
D | esp_aes_gcm.c | 56 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 …]
|
D | esp_aes_common.c | 42 bool valid_key_length(const esp_aes_context *ctx) in valid_key_length() argument 44 bool valid_len = (ctx->key_bytes == AES_128_KEY_BYTES) || (ctx->key_bytes == AES_256_KEY_BYTES); in valid_key_length() 47 valid_len |= ctx->key_bytes == AES_192_KEY_BYTES; in valid_key_length() 54 void esp_aes_init( esp_aes_context *ctx ) in esp_aes_init() argument 56 bzero( ctx, sizeof( esp_aes_context ) ); in esp_aes_init() 59 void esp_aes_free( esp_aes_context *ctx ) in esp_aes_free() argument 61 if ( ctx == NULL ) { in esp_aes_free() 65 bzero( ctx, sizeof( esp_aes_context ) ); in esp_aes_free() 72 int esp_aes_setkey( esp_aes_context *ctx, const unsigned char *key, in esp_aes_setkey() argument 83 ctx->key_bytes = keybits / 8; in esp_aes_setkey() [all …]
|
/hal_espressif-2.7.6/components/mbedtls/port/sha/dma/ |
D | esp_sha512.c | 83 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 …]
|
D | esp_sha1.c | 73 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 …]
|
D | esp_sha256.c | 83 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-2.7.6/examples/peripherals/spi_master/hd_eeprom/components/eeprom/ |
D | spi_eeprom.c | 67 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-2.7.6/components/mbedtls/port/aes/block/ |
D | esp_aes.c | 77 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-2.7.6/components/mbedtls/port/sha/parallel_engine/ |
D | esp_sha512.c | 59 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 …]
|
D | esp_sha256.c | 85 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 …]
|
D | esp_sha1.c | 84 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-2.7.6/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | ctr_prng.c | 74 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 …]
|
D | hmac.c | 52 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-2.7.6/components/openssl/include/openssl/ |
D | ssl.h | 55 void SSL_CTX_free(SSL_CTX *ctx); 64 SSL* SSL_new(SSL_CTX *ctx); 180 int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey); 192 int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x); 353 int SSL_CTX_set_min_proto_version(SSL_CTX *ctx, int version); 362 int SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version); 373 void SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx, 394 int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos, unsigned int protos_len); 405 void SSL_CTX_set_next_proto_select_cb(SSL_CTX *ctx, 442 unsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long opt); [all …]
|
/hal_espressif-2.7.6/components/mbedtls/port/md/ |
D | esp_md.c | 22 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-2.7.6/components/mbedtls/port/aes/dma/ |
D | esp_aes.c | 211 static int esp_aes_process_dma(esp_aes_context *ctx, const unsigned char *input, unsigned char *out… 219 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 262 if (esp_aes_process_dma(ctx, dma_input, output_buf, chunk_len, stream_out) != 0) { in esp_aes_process_dma_ext_ram() 290 static int esp_aes_process_dma(esp_aes_context *ctx, const unsigned char *input, unsigned char *out… in esp_aes_process_dma() argument 315 if (ctx->key_in_hardware != ctx->key_bytes) { in esp_aes_process_dma() 344 …return esp_aes_process_dma_ext_ram(ctx, input, output, len, stream_out, input_needs_realloc, outpu… in esp_aes_process_dma() 434 int esp_aes_process_dma_gcm(esp_aes_context *ctx, const unsigned char *input, unsigned char *output… in esp_aes_process_dma_gcm() argument 456 if (ctx->key_in_hardware != ctx->key_bytes) { in esp_aes_process_dma_gcm() 549 static int esp_aes_validate_input(esp_aes_context *ctx, const unsigned char *input, in esp_aes_validate_input() argument 552 if (!ctx) { in esp_aes_validate_input() [all …]
|
/hal_espressif-2.7.6/components/mbedtls/port/sha/ |
D | esp_sha.c | 46 } ctx; in esp_sha() local 53 mbedtls_sha1_init(&ctx.sha1); in esp_sha() 54 mbedtls_sha1_starts_ret(&ctx.sha1); in esp_sha() 55 ret = mbedtls_sha1_update_ret(&ctx.sha1, input, ilen); in esp_sha() 57 ret = mbedtls_sha1_finish_ret(&ctx.sha1, output); in esp_sha() 59 mbedtls_sha1_free(&ctx.sha1); in esp_sha() 66 mbedtls_sha256_init(&ctx.sha256); in esp_sha() 67 mbedtls_sha256_starts_ret(&ctx.sha256, 0); in esp_sha() 68 ret = mbedtls_sha256_update_ret(&ctx.sha256, input, ilen); in esp_sha() 70 ret = mbedtls_sha256_finish_ret(&ctx.sha256, output); in esp_sha() [all …]
|
/hal_espressif-2.7.6/components/openssl/library/ |
D | ssl_lib.c | 173 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-2.7.6/components/bt/esp_ble_mesh/btc/ |
D | btc_ble_mesh_time_scene_model.c | 231 struct bt_mesh_msg_ctx *ctx, in bt_mesh_time_scene_client_cb_evt_to_btc() argument 238 if (!model || !ctx) { in bt_mesh_time_scene_client_cb_evt_to_btc() 263 params.ctx.net_idx = ctx->net_idx; in bt_mesh_time_scene_client_cb_evt_to_btc() 264 params.ctx.app_idx = ctx->app_idx; in bt_mesh_time_scene_client_cb_evt_to_btc() 265 params.ctx.addr = ctx->addr; in bt_mesh_time_scene_client_cb_evt_to_btc() 266 params.ctx.recv_ttl = ctx->recv_ttl; in bt_mesh_time_scene_client_cb_evt_to_btc() 267 params.ctx.recv_op = ctx->recv_op; in bt_mesh_time_scene_client_cb_evt_to_btc() 268 params.ctx.recv_dst = ctx->recv_dst; in bt_mesh_time_scene_client_cb_evt_to_btc() 269 params.ctx.recv_rssi = ctx->recv_rssi; in bt_mesh_time_scene_client_cb_evt_to_btc() 270 params.ctx.send_ttl = ctx->send_ttl; in bt_mesh_time_scene_client_cb_evt_to_btc() [all …]
|
D | btc_ble_mesh_lighting_model.c | 229 struct bt_mesh_msg_ctx *ctx, in bt_mesh_lighting_client_cb_evt_to_btc() argument 236 if (!model || !ctx) { in bt_mesh_lighting_client_cb_evt_to_btc() 261 params.ctx.net_idx = ctx->net_idx; in bt_mesh_lighting_client_cb_evt_to_btc() 262 params.ctx.app_idx = ctx->app_idx; in bt_mesh_lighting_client_cb_evt_to_btc() 263 params.ctx.addr = ctx->addr; in bt_mesh_lighting_client_cb_evt_to_btc() 264 params.ctx.recv_ttl = ctx->recv_ttl; in bt_mesh_lighting_client_cb_evt_to_btc() 265 params.ctx.recv_op = ctx->recv_op; in bt_mesh_lighting_client_cb_evt_to_btc() 266 params.ctx.recv_dst = ctx->recv_dst; in bt_mesh_lighting_client_cb_evt_to_btc() 267 params.ctx.recv_rssi = ctx->recv_rssi; in bt_mesh_lighting_client_cb_evt_to_btc() 268 params.ctx.send_ttl = ctx->send_ttl; in bt_mesh_lighting_client_cb_evt_to_btc() [all …]
|
/hal_espressif-2.7.6/components/esp_serial_slave_link/ |
D | essl_internal.h | 24 esp_err_t (*init)(void* ctx, uint32_t wait_ms); 26 esp_err_t (*wait_for_ready)(void *ctx, uint32_t wait_ms); 27 esp_err_t (*update_tx_buffer_num)(void *ctx, uint32_t wait_ms); 28 esp_err_t (*update_rx_data_size)(void *ctx, uint32_t wait_ms); 29 esp_err_t (*send_packet)(void *ctx, const void* start, size_t length, uint32_t wait_ms); 30 esp_err_t (*get_packet)(void *ctx, void* out_data, size_t size, uint32_t wait_ms); 31 …esp_err_t (*write_reg)(void *ctx, uint8_t addr, uint8_t value, uint8_t* value_o, uint32_t wait_ms); 32 esp_err_t (*read_reg)(void *ctx, uint8_t add, uint8_t *value_o, uint32_t wait_ms); 33 esp_err_t (*wait_int)(void *ctx, uint32_t wait_ms); 34 esp_err_t (*clear_intr)(void* ctx, uint32_t intr_mask, uint32_t wait_ms); [all …]
|
/hal_espressif-2.7.6/components/mbedtls/port/include/aes/ |
D | esp_aes.h | 88 void esp_aes_init( esp_aes_context *ctx ); 95 void esp_aes_free( esp_aes_context *ctx ); 105 void esp_aes_xts_init( esp_aes_xts_context *ctx ); 112 void esp_aes_xts_free( esp_aes_xts_context *ctx ); 123 int esp_aes_setkey( esp_aes_context *ctx, const unsigned char *key, unsigned int keybits ); 135 int esp_aes_crypt_ecb( esp_aes_context *ctx, int mode, const unsigned char input[16], unsigned char… 159 int esp_aes_crypt_cbc( esp_aes_context *ctx, 192 int esp_aes_crypt_cfb128( esp_aes_context *ctx, 224 int esp_aes_crypt_cfb8( esp_aes_context *ctx, 253 int esp_aes_crypt_ctr( esp_aes_context *ctx, [all …]
|
/hal_espressif-2.7.6/components/mbedtls/test/ |
D | test_aes.c | 64 mbedtls_aes_context ctx; variable 85 mbedtls_aes_init(&ctx); 86 mbedtls_aes_setkey_enc(&ctx, key_256, 256); 92 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_ENCRYPT, SZ, nonce, plaintext, chipertext); 97 mbedtls_aes_setkey_dec(&ctx, key_256, 256); 98 mbedtls_aes_crypt_cbc(&ctx, MBEDTLS_AES_DECRYPT, SZ, nonce, chipertext, decryptedtext); 102 mbedtls_aes_free(&ctx); 111 mbedtls_aes_context ctx; variable 134 mbedtls_aes_init(&ctx); 135 mbedtls_aes_setkey_enc(&ctx, key_256, 256); [all …]
|