feat(sha): add SM3 hardware support

Enable hardware SM3 digest support on ESP32-H4, ESP32-S31 and ESP32-C5
via the SHA peripheral (mode 14).
This commit is contained in:
nilesh.kale
2026-09-04 11:24:39 +08:00
committed by Ashish Sharma
parent 320f344cd6
commit 7f413c914d
10 changed files with 21 additions and 0 deletions
+3
View File
@@ -44,6 +44,9 @@ inline static size_t state_length(esp_sha_type type)
return SHA1_STATE_LEN_WORDS;
case SHA2_224:
case SHA2_256:
#if SOC_SHA_SUPPORT_SM3
case SM3:
#endif
return SHA256_STATE_LEN_WORDS;
#if SOC_SHA_SUPPORT_SHA384
case SHA2_384: