Concrete primitive / sm4-128

SM4-128

Standardized 128-bit block cipher (GB/T 32907-2016, ISO/IEC 18033-3, RFC 8998) with a 128-bit key and 32 rounds of a four-branch 32-bit unbalanced Feistel network using an 8-bit inverse-based S-box and a 32-bit MDS-like linear diffusion layer. Full 32-round SM4 remains intact; published linear and differential attacks reach 23–24 rounds.

Security status
intact
SM4 · Block Ciphers
Best known complexity
2^122.6 time
24/32 rounds · Data 2^122.6 · Mem 2^85
Latest breakthrough
24-round linear key-recovery attack on SM4 Liu et al. · DOI

Cryptanalysis results

3 matching claims

Best Known Cryptanalysis Results

24-round linear key-recovery attack on SM4

Goal: Key recoveryModel: Known-plaintextMethod: LinearRecord
Complexity:
2^122.6 time
24/32 rounds · Data 2^122.6 · Mem 2^85
Liu et al.
DOI
Evidence, notes & sources for 24-round linear key-recovery attack on SM4

Yu Liu, Huicong Liang, Wei Wang, Meiqin Wang · · mathematical · Linear

Goal: Key recovery

Single-key known-plaintext linear cryptanalysis using 20-round iterative linear approximations on 24 of 32 rounds

24/32 rounds · Time 2^122.6 24-round SM4 encryptions · Data 2^122.6 · Memory 2^85 · Success probability unreported

Uses 3-round iterative partial-LAT approximations to build a 20-round linear approximation of correlation 2^-60; leaves 8 of 32 rounds untouched.

Sources
Evidence breakdown
Source
peer reviewed
Citation
Unchecked
Artifact
Unverified
Peer reproduction
Not reproduced
Formal verification
Unverified

Supersedes: sm4-128-liu-chen-2013-23r-linear

23-round differential key-recovery attack on SM4 (SMS4)

Goal: Key recoveryModel: Single-key · CPAMethod: DifferentialRecord
Complexity:
2^124.3 time
23/32 rounds · Data 2^115
Su et al.
ePrint 2010/062
Evidence, notes & sources for 23-round differential key-recovery attack on SM4 (SMS4)

Bozhan Su, Wenling Wu, Wentao Zhang · · mathematical · Differential

Goal: Key recovery

Single-key chosen-plaintext differential cryptanalysis using a 19-round differential characteristic on 23 of 32 rounds

23/32 rounds · Time 2^124.3 23-round SM4 encryptions · Data 2^115 · Memory unreported · Success probability unreported

Establishes structural active S-box bounds over 5- and 6-round SMS4 sub-blocks and extends a 19-round differential to 23-round key recovery.

Sources
Evidence breakdown
Source
peer reviewed
Citation
Unchecked
Artifact
Unverified
Peer reproduction
Not reproduced
Formal verification
Unverified

Supersedes: sm4-128-kim-etal-2008-22r-diff

Revised 16-round impossible differential attack on SM4 (SMS4)

Goal: Key recoveryModel: Single-key · CPAMethod: Impossible differentialRecord
Complexity:
2^96.07 time
16/32 rounds · Data 2^117.06
Toz, Dunkelman
DOI
Evidence, notes & sources for Revised 16-round impossible differential attack on SM4 (SMS4)

Deniz Toz, Orr Dunkelman · · mathematical · Impossible differential

Goal: Key recovery

Single-key chosen-plaintext impossible differential key recovery on 16 of 32 rounds with corrected subkey filtering

16/32 rounds · Time 2^96.07 16-round SM4 encryptions · Data 2^117.06 · Memory unreported · Success probability unreported

Corrects Lu (ICICS 2007) data-generation and early-abort filtering analysis, raising data complexity to 2^117.06 chosen plaintexts while lowering time complexity to 2^96.07.

Sources
Evidence breakdown
Source
peer reviewed
Citation
Unchecked
Artifact
Unverified
Peer reproduction
Not reproduced
Formal verification
Unverified

Supersedes: sm4-128-lu-2007-16r-impdiff

Open frontiers

Extending single-key attacks beyond 24 of 32 rounds

The highest-round published single-key attacks on SM4-128 reach 24 rounds via linear cryptanalysis (2^122.6 data and time) and 23 rounds via differential cryptanalysis (2^115 data, 2^124.3 time), leaving an 8-round security margin in the full 32-round cipher. Pushing linear or differential distinguishers further is constrained by the 2^128 codebook and exhaustive-search ceilings.

New Linear Cryptanalysis of Chinese Commercial Block Cipher Standard SM4Yu Liu, Huicong Liang, Wei Wang, Meiqin WangSection 4 (24-round SM4 linear cryptanalysis complexity)
Differential Cryptanalysis of SMS4 Block CipherBozhan Su, Wenling Wu, Wentao ZhangePrint 2010/062 (23-round SM4 differential key recovery)

Bridging impossible differential attacks past 17 of 32 rounds

Impossible differential attacks on SM4-128 reach 16–17 rounds (Lu ICICS 2007, Toz–Dunkelman ICICS 2008, Zhang 2008) because the unbalanced Feistel word shift coupled with the 32-bit linear diffusion layer forces rapid branch activation across 12–14 middle rounds.

Analysis of Two Attacks on Reduced-Round Versions of the SMS4Deniz Toz, Orr DunkelmanICICS 2008, LNCS 5308, pp. 141-156 (16-round impossible differential assessment)

Documented dead ends

Uncorrected data and filtering assumptions in early 16-round impossible differential estimates

Early 16-round impossible differential estimates (Lu, ICICS 2007) undercounted data requirements (2^105 vs corrected 2^117.06) and misaccounted for early-abort key-filtering costs. Subsequent impossible differential attacks on SM4 must verify pair generation and subkey-filtering probabilities explicitly.

Scope: Impossible differential key-recovery complexity estimation on SM4-128.

Source
peer reviewed
Citation
Unchecked
Artifact
Unverified
Peer reproduction
Not reproduced
Formal verification
Unverified
Analysis of Two Attacks on Reduced-Round Versions of the SMS4Deniz Toz, Orr DunkelmanSection 3 (Re-assessment of 16-round SMS4 impossible differential attack)

Specification JSON & API

/api/v1/primitives/sm4-128.json
curl -fsSL https://cryptarena.ai/api/v1/primitives/sm4-128.json

No executable verifier is registered for this variant.

API contract & interpretation guide

Loading catalog…

↑ ↓ navigate · Enter open · Esc close · 0 results (up to 40)