{
  "id": "2009/109",
  "url": "https://opencryptology.org/2009/109",
  "original_url": "https://eprint.iacr.org/2009/109",
  "title": "Cryptanalysis of Stream Cipher Grain Family",
  "authors": [
    "Haina Zhang",
    "Xiaoyun Wang"
  ],
  "affiliations": null,
  "abstract": "Grain v1 is one of the 7 final candidates of ECRYPT\neStream project, which involves in the 80-bit secret key. Grain-128\nis a variant version with 128-bit secret key, and Grain v0 is the\noriginal version in the first evaluation phase. Firstly, we describe\na distinguishing attack against the Grain family with weak Key-IVs.\nUtilizing the second Walsh spectra of the nonlinear functions, we\nshow that there are $2^{64}$/$2^{64}$/$2^{96}$ weak Key-IVs among\ntotal $2^{144}$/$2^{144}$/$2^{224}$ Key-IVs, and to distinguish a\nweak Key-IV needs about $2^{12.6}$/$2^{44.2}$/$2^{86}$ keystream\nbits and  $2^{15.8}$/$2^{47.5}$/ $2^{104.2}$ operations for Grain\nv0, Grain v1 and Grain-128 respectively. Secondly, we apply\nalgebraic attacks to the Grain family with a weak Key-IV, and can\nrecover the secret key in about 2 seconds and 150 keystream bits for\nGrain v0 and Grain v1, and reveal the key of Grain-128 with about\n100 keystream bits and $2^{93.8}$ operations. Furthermore, we\ndiscuss the period of the keystream with a weak Key-IV for any\nGrain-like structure which can lead in self-sliding attack.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Cryptanalysis of Stream Cipher Grain Family” by Haina Zhang, Xiaoyun Wang, Cryptology ePrint Archive, Paper 2009/109, https://eprint.iacr.org/2009/109. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2009-03-11T01:52:11Z",
    "updated": "2009-03-11T01:52:11Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2009/109.pdf",
    "sha256": "48007813671e67114cee4351a3782cffb622f480205fa111e23e59a3d8a10864",
    "size": 183527,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:20:12Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2009/109/versions/20190225T162012Z.pdf",
      "captured_at": "2019-02-25T16:20:12Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2009/109.pdf",
      "size": 183527,
      "sha256": "48007813671e67114cee4351a3782cffb622f480205fa111e23e59a3d8a10864",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260102191454id_/https://eprint.iacr.org/2009/109.pdf",
      "captured_at": "2026-01-02T19:14:54Z",
      "size": 166935
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2009/109.pdf",
      "captured_at": "2019-02-25T16:20:12Z",
      "size": 183527
    }
  ],
  "bibtex": "@misc{cryptoeprint:2009/109,\n      author = {Haina Zhang and Xiaoyun Wang},\n      title = {Cryptanalysis of Stream Cipher Grain Family},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2009/109},\n      year = {2009},\n      url = {https://eprint.iacr.org/2009/109}\n}"
}
