ThePassionate opened a new pull request, #18167:
URL: https://github.com/apache/nuttx/pull/18167
## Summary
This PR includes a series of fixes and improvements for the crypto subsystem:
1. **crypto/cryptodev: asynchronous process callback memory manages its own
life cycle**
- The memory management for asynchronous process callback was incorrect.
This patch changes it so the memory manages its own life cycle, preventing
potential leaks or use-after-free issues.
2. **crypto/cryptodev: remove the release process in close**
- Removed the release process in the close function because the callback
parameters are now passed in and managed by the upper layer. This avoids double
frees and invalid access attempts.
3. **crypto: export rsa with pkcs1.5 and pss mode**
- Export RSA functionality with support for PKCS#1 v1.5 and PSS padding
modes. This allows upper layers to utilize these standard RSA schemes.
4. **crypto/cryptosoft: ensure input buffer pointer is preserved**
- Fix an issue in `cryptosoft` where the input buffer pointer was being
modified unintentionally during encryption/decryption operations. This ensures
the original buffer pointer remains valid for the caller.
## Impact
- **Is this a breaking change?** No
- **New features?** No
- **Bug fixes?** Yes (Memory management, buffer pointer fix)
- **Security patches?** No
- **Hardware Support:** N/A (Software implementation specific)
## Testing
Build verified on sim:crypto.
These changes are minor architecture-independent fixes and logic
improvements. There is no major impact on system stability or existing
functionality. Basic crypto operations have been verified to work as expected.
--
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]