-
Notifications
You must be signed in to change notification settings - Fork 24
[toup] zephyr: crypto: port crypto mbedtls wrapper #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[toup] zephyr: crypto: port crypto mbedtls wrapper #9
Conversation
2cf7634 to
61fb224
Compare
|
Hi @jukkar @krish2718 |
62e8001 to
b5cc730
Compare
|
Update as previous comments. |
Add crypto_mbedtls_alt.c and tls_mbedtls_alt.c, which have more functionality for enterprise and DPP. Can be used by crypto backend CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT. Add supp_psa_api.c to use PSA apis for HW acceleration in mbedtls 3.x. Add wpa_supp_els_pkc_mbedtls_config.h as an example for mbedtls user config for enterprise. Porting from https://github.com/gstrauss/hostap/blob/mbedtls/src/crypto/crypto_mbedtls.c Signed-off-by: Fengming Ye <[email protected]>
b5cc730 to
3884bb7
Compare
|
Are we good with the copyright concerns now? |
Yes, looks much better now, thanks for the fixes. |
|
@krish2718 please take a look |
|
LGTM, except for last commit, can you please elaborate on |
Sry I didn't catch your point. The last commit is to fix warnings below: modules/lib/hostap/src/common/dpp.c:3293:37: warning: unsigned conversion from 'int' to 'enum dpp_status_error' changes value from '256' to '0' [-Woverflow] |
My bad not the last commit, it's this 00c11d0 revert. |
Oh this is because except from some printfs %ld changed to %lld. There are more %ld unchanged. And I don't want to change much DPP original code for this. I have doubt that if %ld is changed to %lld, won't it cause type warning on Linux? On the other hand, why would os_time_t defined in unsigned long has warnings as Linux is using unsigned long? BTW my local build has no warning with these commits. |
The fixes weren't upstreamed but this all depends on the host machine that you are building for.
This was warning from coverity, and it should be signed 64bit to capture full times resolution. I need to dig my mailbox for the warnings, but I would suggest to remove this commit from the PR and we can handle it separately as it needs a discussion. Rest of the commits are good to go. WDYT?
Yeah, might be toolchain dependent and which flags are enabled by default. |
Fix build warnings from hostap original code when DPP enabled. Signed-off-by: Fengming Ye <[email protected]>
3884bb7 to
2b7b93d
Compare
Okay I removed this commit. |
Port crypto mbedtls wrapper for enterprise and DPP.
Porting from
https://github.com/gstrauss/hostap/blob/mbedtls/src/crypto/crypto_mbedtls.c