Hi all,

Given TLS 1.3 has added two new cipher suites in RFC 8998 (https://datatracker.ietf.org/doc/html/rfc8998), it would be useful to add these algorithms and ciphersuites in Mbedtls.

CipherSuite TLS_SM4_GCM_SM3 = { 0x00, 0xC6 };
CipherSuite TLS_SM4_CCM_SM3 = { 0x00, 0xC7 };


There are some posts in this topic, https://github.com/Mbed-TLS/mbedtls/pull/4091, https://github.com/Mbed-TLS/mbedtls/pull/1620.  But SM2/3/4 have not been added in recent versions(e.g., 3.6).

I have implemented SM3, SM4 as standalone code(https://github.com/zliucd/cryptoshark), and want to port the code to Mbedtls while supporting SM2. However, to fully support the two new cipher suites, we need to add lots of other code.  The first step is to add SM2, SM3 and SM as standalone ciphers.

Thanks for any comments.
Zhi