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

   ## Summary
   
   * risc-v/espressif/sha: Update common source code functions
     - Updates the common source code for the SHA accelerator used by 
Espressif's RISC-Vs SoCs. This enables newer SoCs to be supported in the future 
while maintaining backwards compatibility.
   
   ## Impact
   
   Impact on user: No.
   
   Impact on build: No.
   
   Impact on hardware: Not yet: newer Espressif SoCs can be supported on NuttX 
following this change.
   
   Impact on documentation: No.
   
   Impact on security: No.
   
   Impact on compatibility: No. It's totally backwards compatible.
   
   ## Testing
   
   Testing can be performed using any of the `crypto` defconfigs available for 
any of Espressif's RISC-V-based devices (ESP32-C3, ESP32-C6, or ESP32-H2). The 
behavior of the SHA accelerator didn't change, and this PR's results are the 
same as before it. This can be verified:
   
   ### Building
   
   #### ESP32-C3
   
   ```
   make -j distclean && ./tools/configure.sh esp32c3-generic:crypto && make 
flash ESPTOOL_PORT=/dev/ttyUSB0 && picocom -b 115200 /dev/ttyUSB0
   ```
   
   #### ESP32-C6
   
   ```
   make -j distclean && ./tools/configure.sh esp32c6-devkitc:crypto && make 
flash ESPTOOL_PORT=/dev/ttyUSB0 && picocom -b 115200 /dev/ttyUSB0
   ```
   
   #### ESP32-H2
   
   ```
   make -j distclean && ./tools/configure.sh esp32h2-devkit:crypto && make 
flash ESPTOOL_PORT=/dev/ttyUSB0 && picocom -b 115200 /dev/ttyUSB0
   ```
   
   ### Running
   
   Run the `hmac` application on NSH and verify its SHA-related output.
   
   ### Results
   
   ```
   nsh> hmac
   syshamc md5 failed
   9294727a3638bb1c13f48ef8158bfc9d
   00000000000000000000000000000000
   match md5 failed
   syshamc md5 failed
   750c783e6ab0b503eaa86e310a5db738
   00000000000000000000000000000000
   match md5 failed
   syshamc md5 failed
   CIOCGSESSIONhmac mismatchCIOCGSESSIONhmac 
mismatchCIOCGSESSIONhm56be34521d144c88dbb8c733f0e8b3f6
   00000000000000000000000000000000
   match md5 failed
   hmac sha1 success
   hmac sha1 success
   hmac sha1 success
   hmac sha256 success
   hmac sha256 success
   hmac sha256 success
   ```


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