eclipse-threadx / netxduo

Eclipse ThreadX - NetXDuo is an advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/index.md
MIT License
230 stars 131 forks source link

Fix key_size_in_bits shift direction in _nx_crypto_method_hkdf_init #265

Open sjscymru opened 3 months ago

sjscymru commented 3 months ago

This change fixes an error in the shift direction when setting the nx_crypto_hkdf_ikm_length in the _nx_crypto_method_hkdf_init function.

The parameter key_size_in_bits should be shifted to the right to set the correct length in bytes.