encyclopegia.org

SM4 (cipher)

ShāngMì 4 (SM4, 商密4) (formerly SMS4) is a block cipher, standardised for commercial cryptography in China.[src] It is used in the Chinese National Standard for Wireless LAN WAPI (WLAN Authentication and Privacy Infrastructure), and with Transport Layer Security.[src] SM4 was a cipher proposed for the IEEE 802.11i standard, but it has so far been rejected.[src] One of the reasons for the rejection has been opposition to the WAPI fast-track proposal by the IEEE.[src] SM4 was published as in 2012 and in 2021.[src] The SM4 algorithm was drafted by Data Assurance & Communication Security Center, Chinese Academy of Sciences (CAS), and Commercial Cryptography Testing Center, National Cryptography Administration.[src] It is mainly developed by Lü Shuwang ( ).[src] The algorithm was declassified in January, 2006, and it became a national standard (GB/T 32907-2016) in August 2016.[src]

ShāngMì 4 (SM4, 商密4) (formerly SMS4) is a block cipher, standardised for commercial cryptography in China.[src] It is used in the Chinese National Standard for Wireless LAN WAPI (WLAN Authentication and Privacy Infrastructure), and with Transport Layer Security.[src] SM4 was a cipher proposed for the IEEE 802.11i standard, but it has so far been rejected.[src] One of the reasons for the rejection has been opposition to the WAPI fast-track proposal by the IEEE.[src] SM4 was published as in 2012 and in 2021.[src] The SM4 algorithm was drafted by Data Assurance & Communication Security Center, Chinese Academy of Sciences (CAS), and Commercial Cryptography Testing Center, National Cryptography Administration.[src] It is mainly developed by Lü Shuwang ( ).[src] The algorithm was declassified in January, 2006, and it became a national standard (GB/T 32907-2016) in August 2016.[src] ==Cipher detail== The SM4 cipher has a key size and a block size of 128 bits each.[src] Encryption or decryption of one block of data is composed of 32 rounds.[src] A non-linear key schedule is used to produce the round keys and the decryption uses the same round keys as for encryption, except that they are in reversed order.[src] ===Keys and key parameters=== The length of encryption keys is 128 bits, represented as MK=(MK_0,\ MK_1,\ MK_2,\ MK_3) , in which MK_i\ (i=0,\ 1,\ 2,\ 3) is a 32-bit word.[src] The round keys are represented by (rk_0,\ rk_1,\ \ldots,\ rk_{31}) , where each rk_i(i=0,\ \ldots,\ 31) is a 32-bit word.[src] It is generated by the encryption key and the following parameters: FK=(FK_0,\ FK_1,\ FK_2,\ FK_3) CK=(CK_0,\ CK_1,\ \ldots,\ CK_{31}) FK_i and CK_i are 32-bit words used to generate the round keys.[src] ===Round=== Each round are computed from the four previous round outputs X_i, X_{i+1}, X_{i+2}, X_{i+3} such that: X_{i+4} = X_i \oplus F(X_{i+1} \oplus X_{i+2} \oplus X_{i+3} \oplus rk_i) Where F is a substitution function composed of a non-linear transform, the S-box and linear transform L ===S-box=== SM4's S-box is fixed for 8-bit input and 8-bit output, noted as Sbox().[src] As with Advanced Encryption Standard (AES), the S-box is based on the multiplicative inverse over .[src] The affine transforms and polynomial bases are different from that of AES, but due to affine isomorphism it can be calculated efficiently given an AES S-Box.[src] ==History== On March 21, 2012, the Chinese government published the industrial standard "GM/T 0002-2012 SM4 Block Cipher Algorithm", officially renaming SMS4 to SM4.[src] A description of SM4 in English is available as an Internet Draft.[src] It contains a reference implementation in ANSI C.[src] SM4 is part of the ARMv8.4-A expansion to the ARM architecture.[src] SM4 support for the RISC-V architecture was ratified in 2021 as the Zksed extension.[src] SM4 is supported by Intel processors, starting from Arrow Lake S, Lunar Lake, Diamond Rapids and Clearwater Forest.[src] ==References== ==External links== Linear and Differential Cryptanalysis of Reduced SMS4 Block Cipher Example of SMS4 implemented as a Spreadsheet Page of Lu Shu-wang (吕述望) (in Chinese) The GmSSL Project (OpenSSL fork with GuoMi algorithms) [https://www.iso.org/standard/81564.html] (ISO/IEC 18033-3:2010/Amd 1:2021 Information technology — Security techniques — Encryption algorithms — Part 3: Block ciphers — Amendment 1: SM4 )[src]

32 sentences · 32 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"SM4 (cipher)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/sm4-cipher. Accessed 29 November 2026.

Chicago

"SM4 (cipher)." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/sm4-cipher.

APA

encyclopegia.org. (2026). SM4 (cipher). Retrieved November 29, 2026, from https://encyclopegia.org/wiki/sm4-cipher

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date2012Wikipedia
publication date2012Wikipedia

Related articles

Vigenère cipher

stub · references available

Bacon's cipher

stub · references available

Feistel cipher

stub · references available

Product cipher

stub · references available

cipher feedback mode

stub · references available

Cipher of Peter I

stub · references available

Cipher

stub · references available

Cloak and Cipher

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1369667138 · 0.5 · snapshot enwiki-001369667138

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.