Skip to content

arch/risc-v/espressif: Add SHA accelerator features#18536

Merged
xiaoxiang781216 merged 4 commits intoapache:masterfrom
eren-terzioglu:feature/esp_sha_support
Mar 16, 2026
Merged

arch/risc-v/espressif: Add SHA accelerator features#18536
xiaoxiang781216 merged 4 commits intoapache:masterfrom
eren-terzioglu:feature/esp_sha_support

Conversation

@eren-terzioglu
Copy link
Contributor

@eren-terzioglu eren-terzioglu commented Mar 13, 2026

Summary

Add missing SHA features for Espressif devices

  • boards/xtensa/esp32[-s2|-s3]: Add SHA accelerator features

Add SHA accelerator board features for esp32[-s2|-s3]

  • boards/risc-v/esp32[-c3|c6|-h2]: Add SHA accelerator features

Add SHA accelerator board features for esp32[-c3|-c6|-h2]

  • arch/xtensa/espressif: Add SHA accelerator features

Add SHA accelerator features for esp32[-s2|-s3]

  • arch/risc-v/espressif: Add SHA accelerator features

Add SHA accelerator features for esp32[-c3|-c6|-h2]

Impact

Impact on user: Yes, SHA accelerator can be used without HMAC

Impact on build: No

Impact on hardware: No

Impact on documentation: No

Impact on security: No

Impact on compatibility: No

Testing

esp32s3-devkit:crypto and esp32c6-devkitc:crypto configs used with TESTING_CRYPTO_HASH option enabled. Due to the test structure unrelated tests closed by commenting (md5 and sha512 for esp32c6; md5 for esp32s3)

Building

make -j distclean && ./tools/configure.sh esp32c6-devkitc:crypto && kconfig-tweak -e CONFIG_TESTING_CRYPTO_HASH && make -j && make download ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BAUD=921600 ESPTOOL_BINDIR=./

Running

hash command run

Results

For esp32c6:

...
nsh> hash
hash sha1 success
hash sha1 success
hash sha1 success
hash sha256 success
hash sha256 success
hash sha256 success
nsh>

For esp32s3:

...
nsh> hash
hash sha1 success
hash sha1 success
hash sha1 success
hash sha256 success
hash sha256 success
hash sha256 success
hash sha512 success
hash sha512 success
hash sha512 success
nsh>

@github-actions github-actions bot added Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Arch: xtensa Issues related to the Xtensa architecture Size: M The size of the change in this PR is medium Board: risc-v Board: xtensa labels Mar 13, 2026
@eren-terzioglu eren-terzioglu changed the title Feature/esp sha support arch/risc-v/espressif: Add SHA accelerator features Mar 13, 2026
@eren-terzioglu eren-terzioglu force-pushed the feature/esp_sha_support branch from a0f3780 to 9e8e8bc Compare March 13, 2026 13:48
Add SHA accelerator features for esp32[-c3|-c6|-h2]

Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
Add SHA accelerator features for esp32[-s2|-s3]

Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
Add SHA accelerator board features for esp32[-c3|-c6|-h2]

Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
Add SHA accelerator board features for esp32[-s2|-s3]

Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
@eren-terzioglu
Copy link
Contributor Author

Seems issue is something unrelated:

2026-03-13T14:32:57.5251480Z ====================================================================================
2026-03-13T14:32:57.5268577Z Cmake in present: sim/rtptools
2026-03-13T14:32:57.5269211Z Configuration/Tool: sim/rtptools
2026-03-13T14:32:57.5326690Z 2026-03-13 14:32:57
2026-03-13T14:32:57.5327406Z ------------------------------------------------------------------------------------
2026-03-13T14:32:57.5327750Z   Cleaning...
2026-03-13T14:32:57.6389720Z   Configuring...
2026-03-13T14:33:00.6283227Z   Select HOST_LINUX=y
2026-03-13T14:33:00.6285091Z   Select HOST_X86_64=y
2026-03-13T14:33:02.1997821Z    TOOLS_DIR path is "/github/workspace/sources/nuttx"
2026-03-13T14:33:02.1998468Z    HOST = Linux
2026-03-13T14:33:05.3195501Z   Building NuttX...
2026-03-13T14:33:45.9170076Z ====================================================================================
2026-03-13T14:33:45.9189692Z Configuration/Tool: sim/rust
2026-03-13T14:33:45.9250558Z 2026-03-13 14:33:45
2026-03-13T14:33:45.9251487Z ------------------------------------------------------------------------------------
2026-03-13T14:33:45.9252053Z   Cleaning...
2026-03-13T14:33:45.9252382Z   Configuring...
2026-03-13T14:33:48.8491315Z   Building NuttX...
2026-03-13T14:34:00.6361777Z warning: failed to connect to jobserver from environment variable `MAKEFLAGS="ks -j4 --jobserver-auth=3,4 --no-print-directory -- APPDIR=/github/workspace/sources/apps EXTRAFLAGS=-Wno-cpp\\ -Werror"`: cannot open file descriptor 3 from the jobserver environment variable value: Bad file descriptor (os error 9)
2026-03-13T14:34:00.6363960Z   |
2026-03-13T14:34:00.6364345Z   = note: the build environment is likely misconfigured
2026-03-13T14:34:00.6364692Z 
2026-03-13T14:34:15.6440384Z   [1/1] Normalize sim/rust
2026-03-13T14:34:20.9297280Z ====================================================================================

@xiaoxiang781216 xiaoxiang781216 merged commit 6a4418b into apache:master Mar 16, 2026
54 of 77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Arch: xtensa Issues related to the Xtensa architecture Board: risc-v Board: xtensa Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants