{
  "id": "sm4-gcm",
  "name": "SM4-GCM (TLS_SM4_GCM_SM3)",
  "family_id": "sm4",
  "description": "SM4 in Galois/Counter Mode as used by the TLS 1.3 cipher suite TLS_SM4_GCM_SM3 of RFC 8998: a 128-bit key, a 96-bit IV, a 128-bit GHASH tag and 32 rounds of SM4. The full 32-round block cipher is intact; the security of GCM depends on never reusing a nonce under one key.",
  "status": "intact",
  "parameters": {
    "key_bits": 128,
    "iv_bits": 96,
    "tag_bits": 128,
    "block_bits": 128,
    "rounds": 32,
    "mode": "GCM",
    "standard": "RFC 8998"
  },
  "references": [
    {
      "title": "RFC 8998: ShangMi (SM) Cipher Suites for TLS 1.3",
      "url": "https://www.rfc-editor.org/rfc/rfc8998",
      "authors": [
        "Paul Yang"
      ],
      "quote_location": "Section 2 (SM4-GCM cipher suite and nonce construction)"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "sm4-gcm-joux-2006-nonce-reuse-ghash",
      "target_id": "sm4-gcm",
      "title": "GHASH key recovery after nonce reuse in SM4-GCM (Joux-style forgery)",
      "goal": "key-recovery",
      "attack_family": "nonce-reuse-forgery",
      "setting": "Forbidden nonce reuse under a single SM4-GCM key: two messages encrypted under the same 96-bit IV reveal the GHASH authentication key H and allow forgeries",
      "claim_kind": "record",
      "track": "mathematical",
      "date": "2006-01-01",
      "authors": [
        "Antoine Joux"
      ],
      "references": [
        {
          "title": "RFC 8998: ShangMi (SM) Cipher Suites for TLS 1.3",
          "url": "https://www.rfc-editor.org/rfc/rfc8998",
          "authors": [
            "Paul Yang"
          ],
          "quote_location": "Section 2 (nonce construction for TLS_SM4_GCM_SM3; the nonce-reuse hazard is inherited from GCM)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 0,
        "estimator_version": "n/a: polynomial-time GHASH key recovery after nonce reuse; gate_count_log2 0 is the schema placeholder"
      },
      "notes": "Attack is generic to GCM, applied here to SM4-GCM as used by TLS_SM4_GCM_SM3. Joux (2006) is cited by name and year only; the reference URL is the RFC, and the Joux paper has not been linked or checked. Date is a year-level approximation. The full 32-round SM4 block cipher is not affected; the attack needs nonce reuse."
    },
    {
      "id": "sm4-gcm-liu-etal-2017-24r-linear",
      "target_id": "sm4-gcm",
      "title": "24-round linear key-recovery attack on the SM4 block cipher under SM4-GCM",
      "goal": "key-recovery",
      "attack_family": "linear",
      "setting": "Single-key known-plaintext linear cryptanalysis of the 24-round reduced SM4 block cipher (the 8 remaining rounds are untouched); carried into the SM4-GCM target as a security-margin record",
      "claim_kind": "record",
      "track": "mathematical",
      "date": "2017-06-30",
      "authors": [
        "Yu Liu",
        "Huicong Liang",
        "Wei Wang",
        "Meiqin Wang"
      ],
      "references": [
        {
          "title": "New Linear Cryptanalysis of Chinese Commercial Block Cipher Standard SM4",
          "url": "https://doi.org/10.1155/2017/1461520",
          "authors": [
            "Yu Liu",
            "Huicong Liang",
            "Wei Wang",
            "Meiqin Wang"
          ],
          "doi": "10.1155/2017/1461520",
          "quote_location": "Security and Communication Networks 2017 (24-round linear attack)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "symmetric_rounds",
        "rounds_attacked": 24,
        "total_rounds": 32,
        "log2_data": 122.6,
        "log2_time": 122.6,
        "log2_memory": 85,
        "time_unit": "24-round SM4 encryptions"
      },
      "notes": "Same result as sm4-128-liu-etal-2017-24r-linear, recorded under the GCM target for the reduced-round margin. Full 32-round SM4 remains intact; the GCM tag and the nonce rule are not broken by this attack."
    }
  ],
  "frontiers": [],
  "dead_ends": []
}
