zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.89k stars 6.63k forks source link

mbedTLS module does not have CONFIG option for HKDF #59984

Open asousa-zg opened 1 year ago

asousa-zg commented 1 year ago

Describe the bug I want to enable mbedTLS HKDF but zephyr module does not have a CONFIG option to enable this. It is possible to add this one?

The file zephyr/modules/mbedtls/configs/config-tls-generic.h have configs for almost every mbedtls libraries but not for HKDF. The solution would be to add to zephyr/modules/mbedtls/Kconfig.tls-generic a CONFIG for HKDF.

At this moment, the current solution for me is to define my own MBEDTLS_CFG_FILE, but it would be better to have it in the zephyr.

To Reproduce Steps to reproduce the behavior:

  1. Include in one file the mbedtls_hkdf() function
  2. west build
  3. See error: _undefined reference to `mbedtlshkdf'
github-actions[bot] commented 1 year ago

Hi @asousa-trd! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

henrikbrixandersen commented 1 year ago

This sounds more like an enhancement request than a bug to me?

asousa-zg commented 1 year ago

This sounds more like an enhancement request than a bug to me?

Yes, you're right. Should I close and open it in enhancement?

henrikbrixandersen commented 1 year ago

Yes, you're right. Should I close and open it in enhancement?

No need. It was reclassified as an enhancement.

zephyrbot commented 9 months ago

Hi @d3zd3z, @ceolin,

This issue, marked as an Enhancement, was opened a while ago and did not get any traction. It was just assigned to you based on the labels. If you don't consider yourself the right person to address this issue, please re-assing it to the right person.

Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason.

@asousa-zg you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you.

Thanks!