ThePassionate opened a new pull request, #18064: URL: https://github.com/apache/nuttx/pull/18064
# crypto: add ECC support and software ECDSA helpers ## Summary This PR adds a lightweight ECC implementation to the NuttX crypto subsystem, enables ECDSA operations in the software backend, and addresses related build/static-analysis issues. It also updates the Crypto API documentation with a brief ECC/ECDSA note. ### Changes Made - Add ECC implementation and public API (`crypto/ecc.c`, `include/crypto/ecc.h`) - Integrate ECC into the crypto build (`crypto/Makefile`, `crypto/CMakeLists.txt`) - Support exporting generated public keys in both compressed (`ECC_BYTES + 1`) and uncompressed (X/Y) forms - Add software ECDSA command support in `crypto/cryptosoft.c` - Fix a `uint`-related build warning and resolve static-analysis findings for uninitialized ECC parameters - Document ECC/ECDSA briefly in `Documentation/components/crypto.rst` ### Impact - **Functionality**: provides ECC/ECDSA primitives (key generation, ECDH, sign/verify) for consumers that use the new APIs - **Code Quality**: eliminates warnings and static-analysis findings in the ECC path - **Compatibility**: additive only; no changes to existing interfaces or default behavior ### Testing The change set is additive and self-contained; it does not alter existing behavior or core execution paths unless the new ECC/ECDSA interfaces are explicitly used. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
