QianHeng乾珩 PQC Docs Hub量子文档 ✦ Ask AI✦ 问问文档 ⚐ Scan⚐ 扫一扫

SM2 / SM3 / SM4 / SM9 / ZUC

China's ShangMi (商密) suite of national commercial-cryptography algorithms, summarized with their type, sizes, quantum status, and role. The public-key members (SM2, SM9) are classical and fall to Shor's algorithm. SM3, SM4, and ZUC are hash/symmetric primitives that are not directly broken by Shor the way SM2/SM9 are; quantum attacks show up mainly as a reduced security margin from Grover search and related quantum-collision algorithms, and the mitigation direction is larger keys, longer outputs, or higher-security-level variants.

At a glance

AlgorithmTypeGM/T standardISO/IEC adoptionQuantum-safe?Role
SM2Elliptic-curve public-keyGM/T 0003-2012ISO/IEC 14888-3:2018No — broken by ShorEncryption, digital signature, key exchange
SM3Cryptographic hashGM/T 0004-2012ISO/IEC 10118-3:2018Partial — Grover onlyIntegrity, HMAC, KDF, signature hashing
SM4Block cipher (symmetric)GM/T 0002-2012ISO/IEC 18033-3:2010/Amd 1:2021Partial — Grover onlyBulk data encryption (TLS, disk, VPN)
SM9Identity-based (pairing) public-keyGM/T 0044-2016ISO/IEC 14888-3:2018 (signature); 18033-5:2015/Amd 1:2021 (IBE); 11770-3 (key agreement)No — broken by ShorIdentity-based encryption, signature, key agreement
ZUCStream cipher (symmetric)GM/T 0001-2012ISO/IEC 18033-4:2011/Amd 1:2020Partial — Grover onlyMobile confidentiality & integrity (4G: 128-EEA3/128-EIA3; 5G: 128-NEA3/128-NIA3)

SM2 — elliptic-curve public key

SM2 is a 256-bit elliptic-curve cryptosystem providing public-key encryption, digital signatures, and key exchange. It is the Chinese analogue of ECDSA/ECDH and is widely deployed in TLS, PKI certificates, and electronic signatures. Its security rests on the elliptic-curve discrete logarithm problem — the same foundation as international ECC. A cryptographically relevant quantum computer running Shor's algorithm solves that problem efficiently, so SM2 is fully broken in the quantum era. Substituting SM2 for RSA gains nothing in post-quantum terms.

SM3 — cryptographic hash

SM3 produces a 256-bit digest and serves the same purposes as SHA-256: message integrity, HMAC construction, key derivation, and the hashing step inside signatures. As a hash function it is not broken by quantum computers; Grover's algorithm offers at most a quadratic speedup, reducing the effective collision/preimage margin. Against preimage attacks, 256-bit SM3 corresponds to roughly 128-bit-class security under the Grover model; but collision security cannot simply be equated with 128-bit post-quantum security, and you should distinguish preimage, second-preimage, collision, and signature-hash-binding requirements according to the specific use.

SM4 — block cipher

SM4 is a 128-bit block cipher with a 128-bit key, used for bulk symmetric encryption in TLS cipher suites, disk encryption, and VPNs — the Chinese counterpart to AES. In terms of idealized Grover search complexity, the abstract security margin of a 128-bit symmetric key can be approximately halved; long-term-confidentiality scenarios should therefore consider larger keys or higher-security-level variants. But this is a conservative security-level estimate and does not mean that a real quantum attack is already feasible. For data that must stay confidential for decades, that margin is thinner than ideal; AES-256-class strength has no 128-bit symmetric equivalent in the current SM suite, so long-lived deployments should account for this.

SM9 — identity-based cryptography

SM9 provides identity-based encryption, signatures, and key agreement, deriving keys from identity strings (such as an email address) via bilinear pairings. This removes the need for traditional certificate management. However, pairing-based cryptography is classical — its security reduces to discrete-logarithm-type problems that Shor's algorithm defeats. SM9 is therefore broken in the quantum era, like SM2.

ZUC — stream cipher

ZUC (祖冲之, named for the mathematician Zu Chongzhi) is a 128-bit stream cipher adopted by 3GPP for mobile networks, where it underpins the 128-EEA3 confidentiality and 128-EIA3 integrity algorithms in 4G LTE — renamed 128-NEA3 / 128-NIA3 in 5G NR. As a symmetric primitive it is not broken directly by Shor; under an idealized Grover model the abstract security margin of a 128-bit key can be approximated as halved (a conservative estimate, not a claim that a real attack is feasible). If you are weighing 5G long-lifecycle security, you should also consider the ZUC-256 / 256-bit direction rather than looking only at 128-bit ZUC.

Summary: who falls, who survives

  • Broken by Shor (need PQC replacement): SM2, SM9 — the asymmetric/public-key algorithms.
  • Weakened by Grover (increase sizes): SM3, SM4, ZUC — the hash and symmetric algorithms.

This is the identical pattern seen in the international suite, and it is why China needs post-quantum cryptography too. For the full threat model see quantum-threat.html; for the Chinese regulatory and migration context see china-overview.html.

Standards & references

  • SM2 — GM/T 0003-2012; adopted in ISO/IEC 14888-3:2018.
  • SM3 — GM/T 0004-2012; adopted in ISO/IEC 10118-3:2018.
  • SM4 — GM/T 0002-2012; adopted in ISO/IEC 18033-3:2010/Amd 1:2021.
  • SM9 — GM/T 0044-2016; signature adopted in ISO/IEC 14888-3:2018, identity-based encryption in ISO/IEC 18033-5:2015/Amd 1:2021 (SM9 mechanism), and key agreement in ISO/IEC 11770-3.
  • ZUC — GM/T 0001-2012; adopted in ISO/IEC 18033-4:2011/Amd 1:2020.
Note
The clean mental model: public-key SM (SM2, SM9) dies to Shor; symmetric/hash SM (SM3, SM4, ZUC) is merely dented by Grover and survives with larger parameters — exactly mirroring RSA/ECC versus AES/SHA.

SM2 SM3 SM4 SM9 与 ZUC

中国商密(ShangMi)国家商用密码算法套件概览,列出各算法的类型、长度、抗量子状态与用途。公钥成员(SM2、SM9)属经典算法,会被 Shor 算法攻破。SM3、SM4、ZUC 属于杂凑/对称原语,不会像 SM2/SM9 那样被 Shor 算法直接攻破。量子攻击主要体现为 Grover 搜索及相关量子碰撞算法带来的安全裕度下降;缓解方向是采用更大的密钥、输出长度或更高安全级别变体。

速览

算法类型GM/T 标准ISO/IEC 采纳是否抗量子用途
SM2椭圆曲线公钥GM/T 0003-2012ISO/IEC 14888-3:2018——被 Shor 攻破加密、数字签名、密钥交换
SM3密码杂凑GM/T 0004-2012ISO/IEC 10118-3:2018部分——仅 Grover完整性、HMAC、KDF、签名杂凑
SM4分组密码(对称)GM/T 0002-2012ISO/IEC 18033-3:2010/Amd 1:2021部分——仅 Grover批量数据加密(TLS、磁盘、VPN)
SM9标识密码(双线性对)公钥GM/T 0044-2016ISO/IEC 14888-3:2018(签名)、18033-5:2015/Amd 1:2021(标识加密)、11770-3(密钥协商)——被 Shor 攻破标识加密、签名、密钥协商
ZUC序列密码(对称)GM/T 0001-2012ISO/IEC 18033-4:2011/Amd 1:2020部分——仅 Grover移动网络机密性与完整性(4G:128-EEA3/128-EIA3;5G:128-NEA3/128-NIA3)

SM2 椭圆曲线公钥

SM2 是 256 位椭圆曲线密码体制,提供公钥加密、数字签名与密钥交换,是 ECDSA/ECDH 的中国对应方案,广泛部署于 TLS、PKI 证书与电子签名。其安全性建立在椭圆曲线离散对数难题之上,与国际 ECC 同源。运行 Shor 算法的密码学相关量子计算机能高效求解该难题,因此 SM2 在量子时代被彻底攻破。用 SM2 替换 RSA 在后量子层面毫无收益。

SM3 密码杂凑

SM3 生成 256 位摘要,用途与 SHA-256 相同:消息完整性、HMAC 构造、密钥派生以及签名中的杂凑步骤。作为杂凑函数,它不会被量子计算机攻破;Grover 算法至多带来平方级加速,削弱碰撞/原像安全裕度。对原像攻击,256 位 SM3 在 Grover 模型下约对应 128 位量级安全;但碰撞安全不能简单等同为 128 位后量子安全,应按具体用途区分原像、二次原像、碰撞和签名哈希绑定需求。

SM4 分组密码

SM4 是密钥与分组均为 128 位的分组密码,用于 TLS 密码套件、磁盘加密与 VPN 中的批量对称加密,是 AES 的中国对应方案。从理想化 Grover 搜索复杂度看,128 位对称密钥的抽象安全裕度可近似折半;因此长期保密场景应考虑更大密钥或更高安全级别变体。但这是一种保守安全级别估计,不等于现实量子攻击已经可行。对于需保密数十年的数据而言,这一裕度偏薄;当前商密套件中并无对应 AES-256 级别的 256 位对称算法,因此长生命周期部署须就此加以考量。

SM9 标识密码

SM9 提供标识加密、签名与密钥协商,通过双线性对从标识字符串(如电子邮箱地址)派生密钥,从而省去传统证书管理。然而基于配对的密码学属于经典体制,其安全性可归约到 Shor 算法能够攻破的离散对数类问题。因此 SM9 与 SM2 一样,在量子时代被攻破。

ZUC 序列密码

ZUC(祖冲之,得名于数学家祖冲之)是 128 位序列密码,被 3GPP 采纳用于移动网络,构成 4G LTE 中的 128-EEA3 机密性算法与 128-EIA3 完整性算法,在 5G NR 中重命名为 128-NEA3 / 128-NIA3。作为对称原语,它不会被 Shor 直接攻破;在理想化 Grover 模型下,128 位密钥的抽象安全裕度可近似折半(这是保守估计,不等于现实攻击可行)。若讨论 5G 长生命周期安全,也应关注 ZUC-256/256-bit 方向,而不是只看 128-bit ZUC。

小结 谁被攻破 谁能存活

  • 被 Shor 攻破(需后量子替换):SM2、SM9——非对称/公钥算法。
  • 被 Grover 削弱(增大长度即可):SM3、SM4、ZUC——杂凑与对称算法。

这与国际套件的格局完全一致,也正是中国同样需要后量子密码的原因。完整威胁模型参见 quantum-threat.html;中国的监管与迁移背景参见 china-overview.html

标准与参考

  • SM2:GM/T 0003-2012,已被 ISO/IEC 14888-3:2018 采纳。
  • SM3:GM/T 0004-2012,已被 ISO/IEC 10118-3:2018 采纳。
  • SM4:GM/T 0002-2012,已被 ISO/IEC 18033-3:2010/Amd 1:2021 采纳。
  • SM9:GM/T 0044-2016,签名被 ISO/IEC 14888-3:2018 采纳,标识加密收录于 ISO/IEC 18033-5:2015/Amd 1:2021(SM9 机制),密钥协商收录于 ISO/IEC 11770-3。
  • ZUC:GM/T 0001-2012,已被 ISO/IEC 18033-4:2011/Amd 1:2020 采纳。
说明
清晰的记忆模型:公钥类商密(SM2、SM9)败于 Shor;对称/杂凑类商密(SM3、SM4、ZUC)仅被 Grover 削弱,增大参数即可存活——与 RSA/ECC 对 AES/SHA 的格局完全对应。
⚑ Report an error⚑ 纠错与校正