Hash family

SM3

China's national 256-bit hash standard, structurally similar to SHA-256

standard 1 variant GB/T 32905-2016; GM/T 0004-2012; ISO/IEC 10118-3:2018

Overview

SM3 is the cryptographic hash function standardised by the Chinese State Cryptography Administration. It produces a 256-bit digest and is mandated alongside SM2 signatures and SM4 encryption in Chinese commercial cryptography.

SM3 is a Merkle–Damgård hash over 512-bit blocks with a 256-bit state of eight 32-bit words, very close in outline to SHA-256. It differs in its message expansion, which produces 132 words using a permutation function P1, and in its compression function, which uses 64 rounds whose boolean functions change after the first 16 rounds and which adds extra rotations for diffusion.

The algorithm was published in 2010, standardised as GM/T 0004-2012 and GB/T 32905-2016, and added to ISO/IEC 10118-3 in 2018. It is used in Chinese TLS profiles (TLCP and the SM cipher suites of TLS 1.3 in RFC 8998) and in national PKI deployments. Hardware support for SM3 is available in some ARM processors.

History

2010–2018
  1. SM3 published

  2. Specified in GM/T 0004-2012

  3. Specified in GB/T 32905-2016

  4. Specified in ISO/IEC 10118-3:2018

Security notes

No practical attacks on full SM3 are known; published work breaks reduced-round versions only. It offers security comparable to SHA-256 and is appropriate where Chinese standards compliance is required.

Typical uses

Chinese commercial cryptography complianceSM2 signatures and certificatesTLS with SM cipher suites

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
SM3
sm3
standard out 32 GB/T 32905-2016, GM/T 0004-2012, ISO/IEC 10118-3:2018 safe

Frequently asked questions

Which SM3 variants does NextSSL include?

NextSSL registers 1 SM3 variant: sm3.