pbarada opened a new pull request, #19294:
URL: https://github.com/apache/nuttx/pull/19294
## Summary
Since already have support for SHA2-224, extend cryptodev/cryptosoft to
support HMAC version of SHA2-224.
## Impact
- User experience: No adaptation required. This fix extends existing
behavior.
- Build: No impact.
- Hardware: No impact.
- Documentation: Add mention of SHA2_224_HMAC crypto method.
- Security: No impact.
- Compatibility: Backward compatible - adds functionality.
## Testing
Build Host:
- OS: Ubuntu 24.04.4 LTS
- Compiler: arm-none-eabi-gcc 13.2.1
Target:
- Architecture: ARM (STM32H753ZI)
- Board: Nucleo-h753zi
- Configuration: nucleo-h753zi:crypto configuration followed by changing
configuration:
-- Enable CRYPTO_SW_AES
-- Disable CRYPTO_CRYPTODEV_HARDWARE
-- Enable CRYPTO_CRYPTODEV_SOTWARE_CRYPTO
-- Enable TESTING_CRYPTO_HMAC
Runtime testing:
Modified version of nuttx-apps/testing/drivers/crypto/hmac.c to add
SHA2_224_HMAC test results (generated by openssl) to run same HMAC testcase
data through SHA2_224_HMAC crypto method (PR coming in nuttx-apps repository to
submit these changes after this PR is merged).
From target console:
```
NuttShell (NSH) NuttX-13.0.0-RC0
nsh> uname -a
NuttX 13.0.0-RC0 7a4f270492-dirty Jul 3 2026 16:50:50 arm nucleo-h753zi
nsh> hmac
hmac md5 success
hmac md5 success
hmac md5 success
hmac md5 success
hmac md5 success
hmac sha1 success
hmac sha1 success
hmac sha1 success
hmac sha1 success
hmac sha1 success
hmac sha224 success
hmac sha224 success
hmac sha224 success
hmac sha224 success
hmac sha224 success
hmac sha256 success
hmac sha256 success
hmac sha256 success
hmac sha256 success
hmac sha256 success
nsh>
```
--
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]