Aditya Patwardhan
901f937698
Merge branch 'fix/esp_tls_use_64_bit_variable_for_time_v5.3' into 'release/v5.3'
...
fix(esp-tls): Use 64 bit variable for time instead of 32 bit (v5.3)
See merge request espressif/esp-idf!30615
2024-05-03 21:33:17 +08:00
Aditya Patwardhan
39771b6c81
fix(esp-tls): Use 64 bit variable for time instead of 32 bit
...
Use appropriate API available on respective platform for obtaining
time
Closes https://github.com/espressif/esp-idf/issues/13593
2024-05-03 09:03:05 +05:30
Aditya Patwardhan
d444ff58ec
Merge branch 'contrib/github_pr_13462' into 'master'
...
fix: Allocate HTTP header space for async httpd_req_t objects (GitHub PR)
Closes IDFGH-12445
See merge request espressif/esp-idf!29868
2024-04-22 14:17:21 +08:00
Aditya Patwardhan
0c64e48206
Merge branch 'fix/fix_host_based_security_workflow_doc' into 'master'
...
fix(docs): Fix the host based security workflow document
See merge request espressif/esp-idf!29409
2024-04-19 14:38:36 +08:00
Aditya Patwardhan
530fdacd88
fix(docs): Fix DIS_ICACHE related information in host security workflow
2024-04-19 11:29:21 +05:30
Aditya Patwardhan
1366949c8a
feat(docs): Add workflow for externally enabling NVS Encryption
...
Fix documentation for host based workflows for flash encryption and
secure boot v2
2024-04-19 11:29:21 +05:30
Aditya Patwardhan
0dcd692d59
Merge branch 'fix/fix_esp32p4_flash_encryption' into 'master'
...
fix(bootloader_support): Fix default key usage for flash encryption
See merge request espressif/esp-idf!29968
2024-04-02 19:57:38 +08:00
Aditya Patwardhan
727d99e2a7
Merge branch 'docs/update_esp32p4_security_docs' into 'master'
...
docs(security): Update security-related docs for ESP32-P4
See merge request espressif/esp-idf!29970
2024-04-02 19:50:44 +08:00
Aditya Patwardhan
51a91259d7
fix(bootloader_support): Fix default key usage for flash encryption
2024-04-02 12:27:53 +05:30
Aditya Patwardhan
fb28b42c94
Merge branch 'feature/support_ecdsa_key_using_key_manager' into 'master'
...
Feature/support ecdsa key using key manager
Closes IDF-7992
See merge request espressif/esp-idf!28908
2024-04-01 22:10:34 +08:00
Aditya Patwardhan
051048d261
Merge branch 'feature/p4_rng' into 'master'
...
feat(esp_hw_support): brought up RNG on ESP32-P4
Closes IDF-6522
See merge request espressif/esp-idf!29614
2024-04-01 20:24:36 +08:00
Aditya Patwardhan
d0a23799e8
feat(mbedtls): Added support for using ECDSA key through key manager
2024-04-01 14:37:12 +05:30
Aditya Patwardhan
f231b262b9
Merge branch 'fix/key_manager_hw_support' into 'master'
...
Fix/key manager hw support
See merge request espressif/esp-idf!29508
2024-04-01 14:34:42 +08:00
Aditya Patwardhan
7acc4d4326
fix(esp_hw_support): Fix key manager hw support
...
1) Added NULL checks for public APIs
2) Added debug prints at necessary places
3) Updated the check for already deployed HUK
2024-03-29 18:53:13 +05:30
Aditya Patwardhan
43d934ffb2
Merge branch 'feature/ota_buffer_cap_config' into 'master'
...
feat(esp_https_ota): Add config to configure memory capability for OTA buffer
Closes IDF-8836
See merge request espressif/esp-idf!27927
2024-03-29 12:51:25 +08:00
Aditya Patwardhan
2ad611ad73
fix(esp_hw_support): Fix key mgr hw support
...
1) Fix re-deployment scenario for key manager
2) Fix magic for key manager APIs
3) Fix key manager eFuse check
4) Fix key manager test case
2024-03-29 09:34:46 +05:30
Aditya Patwardhan
34f0a0d6e5
Merge branch 'fix/fix_bootloader_support_public_api_not_defined' into 'master'
...
fix(bootloader_support): Fix public APIs not being defined
See merge request espressif/esp-idf!29552
2024-03-28 18:23:49 +08:00
Aditya Patwardhan
9be1c9f03e
fix(bootloader_support): Fix API not defined for application
2024-03-28 15:05:10 +05:30
Aditya Patwardhan
4d764caba1
Merge branch 'feature/ssl_ds_example_p4_support' into 'master'
...
feat(examples): add support for ESP32-P4 in ssl_ds example
Closes IDF-7977
See merge request espressif/esp-idf!29858
2024-03-28 13:54:03 +08:00
Aditya Patwardhan
3312e50006
Merge branch 'fix/aes_gcm_coverity_reports' into 'master'
...
fix(mbedtls/aes-gcm): Fix null pointer derefernce coverity reports
See merge request espressif/esp-idf!29568
2024-03-13 14:14:08 +08:00
Aditya Patwardhan
acb733845f
Merge branch 'bugfix/update_disabling_hmac_jtag_method' into 'master'
...
fix(esp_hw_support): update hmac toggle method due to discrepency in ROM code
See merge request espressif/esp-idf!29131
2024-03-04 17:55:59 +08:00
Aditya Patwardhan
4636ef946b
fix(esp_hw_support): Update key manager locking mechanism
2024-02-29 12:00:30 +08:00
Aditya Patwardhan
3ffb811d18
fix(hal): Fix Key Manager clock changes
2024-02-29 12:00:30 +08:00
Aditya Patwardhan
d8cc9d39a2
Merge branch 'fix/esp_tls_fix_arg_check' into 'master'
...
fix(esp_tls): Fixed input argument check for public APIs
Closes IDF-8542
See merge request espressif/esp-idf!28358
2024-01-29 18:21:42 +08:00
Aditya Patwardhan
4d8436b90c
fix(esp_tls): Fixed input argument checks for public APIs
2024-01-29 01:24:41 +08:00
Aditya Patwardhan
e2d5b323ca
fix(esp_tls): Fixed client key parsing for ECC key
...
Client key parsing for ECC keys was failing as the
RNG supplied to the key parsing API was uninitialized.
This commit fixes that behaviour
2024-01-23 13:40:57 +08:00
Aditya Patwardhan
4dc2ace0b7
fix(esp_hw_support): Update key manager support
...
1) Added new Key Manager APIs
2) Added crypto locking layer for Key Manager
3) Remove support for deploying known key
4) Format key manager support
5) Fix build header error
6) Updated the key_mgr_types.h file
7) Added key manager tests
2024-01-23 10:24:39 +05:30
Aditya Patwardhan
5a1726c18c
feat(hal): Update HAL layer for Key manager
...
1)Added new clk related changes
2024-01-23 10:24:37 +05:30
Aditya Patwardhan
3eabb62850
feat(esp_hw_support): Add support for Key Manager
2024-01-23 10:24:35 +05:30
Aditya Patwardhan
f468742d25
Merge branch 'fix/typo_in_key_mgr_hal_layer' into 'master'
...
fix(hal): Fix typo in hal layer for Key Manger
See merge request espressif/esp-idf!27832
2024-01-09 12:59:22 +08:00
Aditya Patwardhan
1220c36f96
Merge branch 'fix/build_failure_when_hardware_gcm_is_disabled' into 'master'
...
fix(mbedtls/gcm): Fix build failure when config `MBEDTLS_HARDWARE_GCM` is disabled
See merge request espressif/esp-idf!28149
2024-01-08 13:35:04 +08:00
Aditya Patwardhan
c0ea892aa5
fix(hal): Fix typo in hal layer for Key Manger
...
This also fixes type in attribute added in esp_attr
2024-01-08 10:32:41 +05:30
Aditya Patwardhan
21e1a48a62
Merge branch 'bugfix/esp_srp_doc' into 'master'
...
fix(esp_srp): Use `@file` for file documentation and resolved few doc build warnings
Closes IDF-8737
See merge request espressif/esp-idf!27411
2023-12-18 19:31:05 +08:00
Aditya Patwardhan
62a0b52a91
Merge branch 'feat/add_ble_support_in_local_ctrl_example' into 'master'
...
feat(examples): Add BLE support in the esp_local_ctrl example
Closes IDFGH-1491
See merge request espressif/esp-idf!27432
2023-12-15 16:32:37 +08:00
Aditya Patwardhan
7c738c0658
Merge branch 'fix/esp_https_server_breaking_change' into 'master'
...
fix(esp_https_server): Fix a breaking change
See merge request espressif/esp-idf!27146
2023-12-11 11:46:29 +08:00
Aditya Patwardhan
56879510a5
fix(esp_https_server): Fix a breaking change
...
HTTPD_SSL_CONFIG_DEFAULT used to be a MACRO and hence used to return
a const pointer. With a recent change it started not returning a
const variable. This change reverts the function to its MACRO form.
Updated the https_server example to use static declration
2023-12-11 08:05:10 +05:30
Aditya Patwardhan
a84234c23f
feat(security): Enable Flash encryption for ESP32P4
2023-12-05 13:10:55 +05:30
Aditya Patwardhan
e09d50d244
feat(soc): Updated soc cap for flash encryption
...
1) In the ESP32-P4 SoC, we have an eFuse to disable the MSPI access
when in download mode. This commit adds relevant soc cap for esp32p4
chip.
2) Added FE related soc caps
3) Removed unwanted cap from soc_caps
4) esp_hw_support: Enable flash encryption related ll APIs for esp32p4
2023-12-05 11:03:48 +05:30
Aditya Patwardhan
77fbe13513
Merge branch 'bugfix/flash_encryption_build_failed' into 'master'
...
fix: fixed flash_encryption example build failure with certain config
Closes IDFGH-11492
See merge request espressif/esp-idf!27321
2023-11-29 10:10:40 +08:00
Aditya Patwardhan
9cf90d8a7a
Merge branch 'bugfix/fix_http_client_async_mode' into 'master'
...
fix(esp_http_client): Fix esp_http_client async mode
Closes IDFGH-11191
See merge request espressif/esp-idf!26333
2023-11-20 14:05:03 +08:00
Aditya Patwardhan
ae05f3f140
fix(mbedtls): Removed redundant menuconfig entry
2023-11-15 04:59:52 +00:00
Aditya Patwardhan
7c1d9a5813
fix(soc): esp32s3/Fix the DROM_DROM_HIGH limit
...
Previously the DROM_HIGH_ADDR for esp32s3 was 0x3D000000, which
convers only 16 MB of address range. But esp32s3 supports 32 MB
external memory. So this address should be 0x3E000000
2023-11-09 09:58:17 +05:30
Aditya Patwardhan
a0d73b5155
fix(esp_https_server): Convert HTTPD_SSL_CONFIG_DEFAULT MACRO to function
...
Previously with HTTPD_SSL_CONFIG_DEFAULT being a MACRO, the
configuration options could not be applied to it. This was casuing
error in multiple scenarios. For e.g., here user_cert_cb is a part
of httpd_ssl_config_t which this macro defines. But the type of
user_cert_cb (esp_tls_server_callback_t) is only available when it is enabled
in esp-tls. The MACRO however cannot be modified to set the defaults
based on configuration option. This fix solves the issue without
breaking the compatibility
2023-10-26 09:30:13 +00:00
Aditya Patwardhan
d4544a0d5c
fix(esp_https_server): Remove dependency on CONFIG_ESP_TLS_SERVER
...
Closes https://github.com/espressif/esp-idf/issues/12023
2023-10-26 09:30:13 +00:00
Aditya Patwardhan
5ce93aa257
fix(esp_tls): Refactor esp-tls to remove ESP_TLS_SERVER config option
2023-10-26 09:30:13 +00:00
Aditya Patwardhan
7b8a2e8119
Merge branch 'fix/https_request_example_build_with_esp_wolfssl' into 'master'
...
fix(esp-tls): Fix the https_request example build for esp-wolfssl
See merge request espressif/esp-idf!26576
2023-10-20 22:31:14 +08:00
Aditya Patwardhan
7e6f4d4e87
fix(esp-tls): Fix the https_request example build for esp-wolfssl
2023-10-20 13:43:18 +05:30
Aditya Patwardhan
58bf5ab6fb
feat(esp_rom): Added ROM headers related to Key Manager
2023-10-16 09:26:45 +05:30
Aditya Patwardhan
8edef17f1a
feat(esp_common): Added PACKED_ATTR in esp_attr.h
2023-10-16 09:26:45 +05:30
Aditya Patwardhan
ade65add54
feat(hal): Added HAL and LL layer for Key Manager
2023-10-16 09:26:37 +05:30
Aditya Patwardhan
6b4d2140ee
feat(hal): Added HAL and LL layer for HUK
2023-10-16 09:26:14 +05:30
Aditya Patwardhan
fa1da64dec
Merge branch 'feature/mbedtls_3_5_0_update' into 'master'
...
feat(mbedtls): update to 3.5.0 release
See merge request espressif/esp-idf!26331
2023-10-13 17:11:05 +08:00
Aditya Patwardhan
1d5532badc
Merge branch 'bugfix/security_check_order_in_startup' into 'master'
...
fix(startup): flip the security configuration check order
See merge request espressif/esp-idf!26280
2023-10-05 13:56:47 +08:00
Aditya Patwardhan
2b08aac741
Merge branch 'bugfix/usb/host/urb_check_revert' into 'master'
...
[USB Host] Fix transfer determination during argument checking for regular EP transfer
See merge request espressif/esp-idf!25963
2023-09-14 23:50:43 +08:00
Aditya Patwardhan
a57c8dc938
Merge branch 'contrib/github_pr_12177' into 'master'
...
mbedtls: define MBEDTLS_SSL_CID_TLS1_3_PAD_GRANULARITY for CID padding (GitHub PR)
See merge request espressif/esp-idf!25826
2023-09-09 12:27:56 +08:00
Aditya Patwardhan
4be9bc4e2e
feat(esp_http_client): Added support for OTA using ds peripheral for TLS
2023-09-04 09:00:03 +05:30
Aditya Patwardhan
e05455e592
Merge branch 'bugfix/wrong_ota_upgrade_size_log' into 'master'
...
fix(esp_https_ota): Fix wrong debug print for ota upgrade size
See merge request espressif/esp-idf!25188
2023-08-28 14:15:57 +08:00
Aditya Patwardhan
388a61c7b7
fix(security): Fixed the host-based security workflows
2023-08-22 15:05:14 +05:30
Aditya Patwardhan
e468d2220f
Merge branch 'bugfix/secure_ota_without_padding' into 'master'
...
fix(secure_ota): secure app verification issue without padding bytes
Closes IDFGH-10784
See merge request espressif/esp-idf!25156
2023-08-03 22:07:07 +08:00
Aditya Patwardhan
ef320349fe
Merge branch 'bugfix/nitpick_in_esp_http_client' into 'master'
...
fix: nitpick in esp_http_client
See merge request espressif/esp-idf!25066
2023-08-03 02:49:51 +08:00
Aditya Patwardhan
22d98c2c35
Merge branch 'esp_prov/update_deprecation_warnings' into 'master'
...
fix(esp_prov): Fixed the deprecation APIs warnings
See merge request espressif/esp-idf!24896
2023-07-28 16:24:09 +08:00
Aditya Patwardhan
6d3db47187
Merge branch 'fix/wifi_prov_mgr_retry_auth_expire' into 'master'
...
fix (wifi_prov): Retry provisioning on `WIFI_AUTH_EXPIRE` event
Closes IDFGH-10503 and IDFGH-9793
See merge request espressif/esp-idf!24548
2023-07-26 12:25:33 +08:00
Aditya Patwardhan
1a471f7bba
Merge branch 'contrib/github_pr_11775' into 'master'
...
esp_http_client: fix the residual data issue and potential out-of-bounds access (GitHub PR)
Closes IDFGH-10530
See merge request espressif/esp-idf!24543
2023-07-24 17:08:00 +08:00
Aditya Patwardhan
b8a8dfedfd
Merge branch 'feature/add_documentation_for_externally_enabling_secure_boot' into 'master'
...
docs/security: Added host based worlflow to enable secure boot externally
See merge request espressif/esp-idf!24409
2023-07-19 14:41:41 +08:00
Aditya Patwardhan
083e943704
docs(security): Added host based workflow to enable secure boot externally
...
* Styling changes for the host-based workflow document
* Fix formatting for the document for host based security wofkflows
2023-07-19 10:11:30 +05:30
Aditya Patwardhan
56f15ab017
Merge branch 'fix/mpi_incorrect_assert' into 'master'
...
fix(mbedtls): Fix incorrect assert for H/W MPI operations
Closes WIFI-5591 and IDFGH-10615
See merge request espressif/esp-idf!24737
2023-07-14 08:59:10 +08:00
Aditya Patwardhan
8b5eea8519
Merge branch 'fix/esp_tls_missing_explicit_header' into 'master'
...
fix (esp-tls): Missing explicit inclusion of header `mbedtls/x509_crt.h`
Closes IDFGH-10519
See merge request espressif/esp-idf!24544
2023-07-04 21:15:11 +08:00
Aditya Patwardhan
e2a8413486
Merge branch 'bugfix/mbedtls_dyanmic_buffer_with_dhm_build' into 'master'
...
fix(mbedtls): Build issue in dynamic buffer feature
Closes IDFGH-10526
See merge request espressif/esp-idf!24488
2023-06-29 22:03:48 +08:00
Aditya Patwardhan
360f551f48
Merge branch 'fix/mbedtls_ecdsa_veriy_restartable' into 'master'
...
mbedtls: update submodule
See merge request espressif/esp-idf!24372
2023-06-26 11:28:58 +08:00
Aditya Patwardhan
3f58defcc9
Merge branch 'contrib/github_pr_11724' into 'master'
...
esp_http_client: Fix unsigned integer overflow (GitHub PR)
Closes IDFGH-10477
See merge request espressif/esp-idf!24366
2023-06-23 12:53:22 +08:00
Aditya Patwardhan
d9b66226cd
docs/security: Separate documents under different subsection
2023-06-23 08:15:13 +05:30
Aditya Patwardhan
2a4fddb48b
docs/Security:Add references to second stage bootloader to avoid confusion bettwen
...
bootloader and 2nd stage bootloader
2023-06-22 17:18:08 +05:30
Aditya Patwardhan
253d80f560
docs/security: Move security related docs in a separate section
2023-06-17 10:04:01 +05:30
Aditya Patwardhan
b078541ca5
docs/Flash encryption: Add encrypted partitions section
2023-06-17 10:04:01 +05:30
Aditya Patwardhan
6d4a116625
docs: Added documentation about enabling the Security Features
...
externally with help of espefuse tool
flash_encryption_doc: Fix the document to also inform users about what
happens in case of host generated private key in the Flash encryption process
2023-06-17 10:04:01 +05:30
Aditya Patwardhan
5e6ad95b78
Merge branch 'docs/fix_instructions_nvs_encr_hmac' into 'master'
...
docs: Fix the instructions for setting up HMAC-based NVS encryption
See merge request espressif/esp-idf!23951
2023-06-06 14:32:43 +08:00
Aditya Patwardhan
903af13e84
Merge branch 'feat/config_to_flash_bootloader_when_sbv2_is_enabled' into 'master'
...
add config to flash bootloader by the command `idf.py flash` when secure boot v2 is enabled
See merge request espressif/esp-idf!23848
2023-05-26 18:13:05 +08:00
Aditya Patwardhan
1d3a8f2edd
docs/build-system: Update the documentation to add a note regarding
...
limitation of set_source_files_properties
2023-04-19 08:01:34 +05:30
Aditya Patwardhan
823322f988
Merge branch 'feature/update_mbedtls_v3.4.0' into 'master'
...
mbedtls: Update to release/v3.4.0
Closes IDF-7158
See merge request espressif/esp-idf!23058
2023-04-18 21:29:28 +08:00
Aditya Patwardhan
2dd280f126
esp-tls: Added getter/setter function for the conn_state.
...
* Added the setter function to set the connection sockfd value
Closes https://github.com/espressif/esp-idf/issues/10871
2023-04-13 20:03:50 +05:30
Aditya Patwardhan
7c8e8557a6
Merge branch 'bugfix/esp_tls_coverity_warning' into 'master'
...
Fix coverity warning in esp-tls component
See merge request espressif/esp-idf!22934
2023-03-31 15:22:58 +08:00
Aditya Patwardhan
780f7f2669
secure_boot_test_app: Update the test_app to use pytest framework
...
* Added custom class IdfFpgaDut in pytest from ttfw_idf.IDFFPGADUT
2023-03-28 16:10:00 +05:30
Aditya Patwardhan
85b1efc729
Merge branch 'update/update_cmn_crt_authorities_csv' into 'master'
...
Update common cert authorities csv
See merge request espressif/esp-idf!22713
2023-03-16 12:59:48 +08:00
Aditya Patwardhan
38b036e9ae
Merge branch 'bugfix/fix_esp_http_client_host_test_failures' into 'master'
...
esp-tls: Fix esp-tls component to resolve esp_http_client example failure for Linux target.
Closes IDFCI-1646 and IDFCI-1647
See merge request espressif/esp-idf!22584
2023-03-09 15:46:00 +08:00
Aditya Patwardhan
7b40852d2f
docs/flash_encryption: Update docs for esp32h2 target
2023-02-24 15:21:51 +05:30
Aditya Patwardhan
b5b7f32e46
hal/esp32h2: Enable ll layer for flash encryption
2023-02-24 15:21:51 +05:30
Aditya Patwardhan
aaf5d0670e
[bootloader_support/esp32h2] Enable flash encryption for esp32h2 target
2023-02-24 15:21:51 +05:30
Aditya Patwardhan
bd81d8f9d3
esp-tls: Add build test for server session ticket option
2023-02-24 04:45:23 +00:00
Aditya Patwardhan
0d20f8816f
esp-tls: Fix build issue when esp-tls server session tickets have been enabled.
...
Closes https://github.com/espressif/esp-idf/issues/10765
2023-02-24 04:45:23 +00:00
Aditya Patwardhan
b06a029677
esp32c6: update documentation for flash encryption
2023-02-03 16:01:06 +05:30
Aditya Patwardhan
2a46fecb36
esp32c6: Enable documentation for esp32c6 hmac and ds
2023-01-19 09:53:35 +05:30
Aditya Patwardhan
4084ab38a1
esp32c6/soc: Enable DS and HMAC capabilities for esp32c6 in soc_caps.h
2023-01-19 09:53:34 +05:30
Aditya Patwardhan
4831edc624
esp32c6/hal: Added support for HMAC and DS on esp32c6
...
* Update DS test_apps for esp32c6 SoC
2023-01-19 09:53:34 +05:30
Aditya Patwardhan
634e408ca4
Merge branch 'fix/mbedtls_port_sanity_checks_and_return_values' into 'master'
...
mbedtls/port: refactor sanity checks and their return values
Closes IDF-3810
See merge request espressif/esp-idf!21987
2023-01-17 19:21:52 +08:00
Aditya Patwardhan
be38f94c6c
esp32c6 support: Enable support for SHA and AES in esp32c6
2023-01-04 12:07:32 +05:30
Aditya Patwardhan
04a9366694
esp32c6-SHA/AES support: Added sha_ll.h and aes_ll.h files in hal layer
2023-01-04 12:07:26 +05:30
Aditya Patwardhan
11dee5d27f
Merge branch 'docs/update_esp_https_ota_docs_for_esp_events' into 'master'
...
docs: Update esp_https_ota docs to have information about OTA events
See merge request espressif/esp-idf!21531
2022-12-19 19:02:43 +08:00
Aditya Patwardhan
7955a11384
Merge branch 'feature/use_gettimeofday_instead_of_xTaskGetTickCount' into 'master'
...
esp-tls: use gettimeofday() instead of xTaskGetTickCount()
See merge request espressif/esp-idf!21300
2022-11-30 14:08:21 +08:00
Aditya Patwardhan
8d047ea910
esp_flash_encrypt: If it is supported then Enable secure download mode in release mode instead of disabling it completely.
2022-11-29 11:44:18 +05:30
Aditya Patwardhan
bb290d407d
docs/esp_http_client: fix esp-tls documentation link
2022-11-29 03:13:12 +00:00