Commit Graph

205 Commits

Author SHA1 Message Date
Mahavir Jain 8c331c9b5e
Merge pull request #21 from MacDue/forgot_fixes
esp_encrypted_img: fix doc comments and readme formatting
2022-03-09 19:00:11 +05:30
MacDue ed520f9a51 esp_encrypted_img: fix doc comments and readme formatting 2022-03-09 12:58:17 +00:00
Mahavir Jain 6ce72eb948
Merge pull request #17 from MacDue/encrypted_img_fixes
Some fixes/enhancements for esp_encrypted_img
2022-03-09 17:29:04 +05:30
Tomas Rezucha 15a8cd2348 Use checkout v3 and python 3.7-buster 2022-03-08 14:11:54 +00:00
MacDue d7334f04a2 pre-commit: format code 2022-03-08 11:11:36 +00:00
MacDue 3863d888d4 esp_encrypted_img: bump major 2022-03-08 11:00:21 +00:00
MacDue 0d45d9c58a Use has_include to detect esp_random.h 2022-03-08 10:48:45 +00:00
MacDue 2a328b2126 libsodium: bump stable version 2022-03-08 10:33:40 +00:00
MacDue dcd228a753 Fix esp_random includes on idf:latest 2022-03-08 10:33:11 +00:00
MacDue 695aaf6c2f esp_encrypted_img: pre-commit format code 2022-03-08 09:33:12 +00:00
MacDue fedc88522b esp_encrypted_img: use 'wb' file mode instead of 'ab' in encrypt tool
'ab' appends to the file if it already exists, which results in
invalid app images.
2022-03-08 09:33:12 +00:00
MacDue f2b4213b91 esp_encrypted_img: add test for free after decryption canceled 2022-03-08 09:33:12 +00:00
MacDue c89f4af6f9 esp_encrypted_img: fix handle pointer in tests 2022-03-08 09:33:12 +00:00
MacDue 3bb65a9687 esp_encrypted_img: bump patch version 2022-03-08 09:33:12 +00:00
MacDue 8fbf13dee9 esp_encrypted_img: avoid possible leak of rsa_pem
It's possible esp_encrypted_img_decrypt_end() could be called
without any decryption done. E.g. If firmware was going to
be installed there was a network failure that cancelled it.

So rsa_pem should be free'd there too.

Note: freeing a NULL pointer is a no-op
2022-03-08 09:33:12 +00:00
MacDue 724c95488c esp_encrypted_img: remove unnecessary additional allocations
This moves the gcm_key and iv to the esp_encrypted_img_handle,
which is only an additional 48 bytes, and avoids a bunch
of extra error checking & deallocation logic.

got_auth is also allocated on the stack since it's only 16 bytes
2022-03-08 09:33:12 +00:00
MacDue a087052578 esp_encrypted_img: esp_decrypt_handle_t params not esp_decrypt_handle_t*
Replaces esp_decrypt_handle_t* parameters with esp_encrypted_handle_t,
esp_encrypted_handle_t is a void*, esp_decrypt_handle_t* is void**
which is incorrect and produces compiler errors when used in C++.
2022-03-08 09:33:12 +00:00
Tomas Rezucha d99c3eafc3
Merge pull request #13 from espressif/feature/ci/test_app
Run Test Application on target
2022-03-08 10:25:27 +01:00
Tomas Rezucha 06bd5dcbe3 ci: Publish test results 2022-03-03 12:37:39 +01:00
Tomas Rezucha 2019d71fd4 ci: Run Test App on target 2022-03-03 12:37:39 +01:00
Tomas Rezucha feb0f628a3 ci: Upload build artifacts
The artifacts will be used you 'run_test' action
2022-03-03 12:37:39 +01:00
Mahavir Jain bdd4088007
Merge pull request #15 from hmalpani/bugfix/fix_unused_variable
esp_encrypted_img: fix for unused variable error during build
2022-02-24 19:22:06 +05:30
Harshit Malpani e8efc29976 esp_encrypted_img: fix for unused variable error during build 2022-02-24 19:16:57 +05:30
Mahavir Jain 8490a5f677
Merge pull request #14 from hmalpani/feature/mbedtls_3.1_support
pre_encrypted_img: Updated component to support mbedtls-3.1 APIs
2022-02-24 13:49:52 +05:30
Harshit Malpani 894e3d71f6 esp_encrypted_img: Updated component to support mbedtls 3.1 APIs 2022-02-24 12:37:39 +05:30
Mahavir Jain 1e806eec84
Merge pull request #11 from hmalpani/feature/add_coap_to_component_manager
Add libcoap to Component Manager
2022-02-23 12:26:24 +05:30
Aditya Patwardhan b90b4caa8a mbedtls-3.X: Add patch in port/coap_mbedtls.c 2022-02-22 18:07:33 +05:30
Harshit Malpani db60efdfb6 Add libcoap to Component Manager 2022-02-17 19:50:30 +05:30
Tomas Rezucha 3e2b836926
Merge pull request #12 from espressif/feature/ci/pre-commit-gh-action
Add pre-commit GH action
2022-02-17 15:08:46 +01:00
Tomas Rezucha 2cfa07b678 Add pre-commit GH action 2022-02-17 14:58:44 +01:00
Tomas Rezucha e651ec16c5 Format code 2022-02-17 14:56:45 +01:00
Mahavir Jain 5362db237b
Merge pull request #10 from hmalpani/feature/add_esp_encrypted_img_component
Add esp_encrypted_img to component manager
2022-02-15 12:50:45 +05:30
Harshit Malpani 1d9f9b05c6 Add esp_encrypted_img to component manager 2022-02-15 12:01:47 +05:30
Mahavir Jain 80fa57ec6f
Merge pull request #8 from hmalpani/feature/upgrade_expat_component
expat: upgrade to v2.4.3 release
2022-01-28 17:03:19 +05:30
Harshit Malpani 3f3aa2886c expat: upgrade to v2.4.3 release
Detailed Changelog: https://github.com/libexpat/libexpat/blob/R_2_4_3/expat/Changes
2022-01-28 15:56:05 +05:30
Tomas Rezucha 2b53f35752
Merge pull request #6 from espressif/feature/ci/multiple-test-builds
Extend test_app builds
2022-01-20 11:17:40 +01:00
Tomas Rezucha 6c797558dc ci: Build test_app for multiple idf versions and targets 2022-01-20 11:06:53 +01:00
Mahavir Jain 1cdc5cac39
Merge pull request #5 from espressif/feature/add_expat_component
Feature: Add expat component
2022-01-16 11:21:04 +05:30
Mahavir Jain baf88cf7d9 Add entry for expat to test_app CMakeList
- Modify partition table to increase application size
- Update flash size to 4MB in sdkconfig.defaults
2022-01-13 18:12:10 +05:30
Mahavir Jain a7d99a2c21 Add expat to upload components list 2022-01-11 22:50:17 +05:30
Mahavir Jain 19a83d5b85 Add expat to component manager 2022-01-11 22:49:34 +05:30
Tomas Rezucha 3595c02061
Merge pull request #4 from espressif/feature/add_nghttp_sh2lib_components
Feature: Add nghttp and sh2lib components
2022-01-05 14:10:34 +01:00
Mahavir Jain adbb75e03e Add nghttp/sh2lib to upload components list 2022-01-05 12:44:00 +05:30
Mahavir Jain db333009a2 nghttp: fix version string in autogenerated header in port dir 2022-01-05 12:44:00 +05:30
Mahavir Jain 76865fa41c Add sh2lib (HTTP2 + TLS abstraction) component 2022-01-05 12:44:00 +05:30
Mahavir Jain 7ba75e760e Add nghttp2 - HTTP/2 C Library component 2022-01-05 12:43:56 +05:30
Tomas Rezucha b0a2dcf22a
Merge pull request #3 from espressif/misc/tests_and_actions
Setup GitHub actions
2021-12-10 13:56:37 +01:00
Tomas Rezucha e8ced5143a ci: Add build_test and upload_components actions 2021-12-10 13:55:54 +01:00
Tomas Rezucha 348b9ae4fd misc: Add pre-commit and editor config 2021-12-10 09:09:52 +01:00
Tomas Rezucha c8ddfb84ff test: Add test_app 2021-12-10 09:09:26 +01:00