mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
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:
committed by
Ashish Sharma
parent
320f344cd6
commit
7f413c914d
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user