PruteanuVlad opened a new pull request, #17382:
URL: https://github.com/apache/nuttx/pull/17382

   ## Summary
   
   This add support for using the cryptographic accelerator within the ESP32 
for HMAC-SHA operations. The supported algorithms are: SHA1 and SHA512.
   The existing support for hardware accelerated HMAC-SHA on ESP32C3 was used 
as a starting point for the code.
   
   **Modified files:**
   arch/xtensa/src/esp32/esp32_crypto.c - handles the HMAC calculations, SHA 
operations are handed over to already existing implementation
   
   ## Impact
   
   Impact on user: this PR adds support for the hardware accelerated HMAC-SHA 
on ESP32, improving platform support
   Impact on build process: none
   Impact on hardware: this PR adds support for the hardware accelerated 
HMAC-SHA on ESP32, improving platform support
   Impact on documentation: none
   Impact on security: none, since code that uses HMAC-SHA algorithms will 
continue to use the existing software implementation by default. Otherwise, 
this implementation has been appropriately tested, see testing section.
   Impact on compatibility: none
   
   ## Testing
   
   Development was done using ESP32 DevkitC.
   Building was done on Ubuntu 24.04 VM.
   For testing, I ran the official crypto hmac test: 
https://github.com/apache/nuttx-apps/blob/master/testing/drivers/crypto/hmac.c, 
output shown below.
   nsh> hmac
   hmac sha1 success
   hmac sha1 success
   hmac sha1 success
   hmac sha256 success
   hmac sha256 success
   hmac sha256 success
   
   The huge block test wasn't ran due to memory constraints.


-- 
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]

Reply via email to