{
  "id": "2014/971",
  "url": "https://opencryptology.org/2014/971",
  "original_url": "https://eprint.iacr.org/2014/971",
  "title": "Key recovery attacks on Grain family using BSW sampling and certain weaknesses of the filtering function",
  "authors": [
    "Y. Wei",
    "E. Pasalic",
    "F. Zhang",
    "W. Wu"
  ],
  "affiliations": null,
  "abstract": "A novel internal state recovery attack on the whole Grain family of ciphers is proposed in this work. It  basically uses  the ideas of BSW sampling along with employing a  weak placement  of the tap positions  of the driving LFSRs. The  currently best known complexity trade-offs are obtained, and due to the structure of Grain family these attacks are also key recovery attacks.  It is shown that  the internal state of Grain-v1 can be recovered with the time complexity of about $2^{66}$ operations using a memory of about $2^{58.91}$ bits, assuming availability of $2^{45}$ keystream sequences each of length $2^{49}$ bits generated for different initial values. Moreover, for Grain-128 or Grain-128a, the  attack requires about $2^{105}$  operations using a memory of about $2^{82.59}$ bits, assuming availability of $2^{75}$ keystream sequences each of length $2^{76}$ bits generated for different initial values. These results further show that the whole Grain family, due to the choice of tap positions mainly, does not provide enough security margins against  internal state recovery attacks. A simple modification of the selection of  the tap positions, as a countermeasure against the attacks described here, is given.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Key recovery attacks on Grain family using BSW sampling and certain weaknesses of the filtering function” by Y. Wei, E. Pasalic, F. Zhang, W. Wu, Cryptology ePrint Archive, Paper 2014/971, https://eprint.iacr.org/2014/971. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2014-11-28T06:57:52Z",
    "updated": "2014-11-28T06:57:52Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2014/971.pdf",
    "sha256": "31fa79561039783f5508c1f11a893e9c76ad914d7605c697aa8566f252982fad",
    "size": 154669,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:55:32Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2014/971/versions/20190225T165532Z.pdf",
      "captured_at": "2019-02-25T16:55:32Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2014/971.pdf",
      "size": 154669,
      "sha256": "31fa79561039783f5508c1f11a893e9c76ad914d7605c697aa8566f252982fad",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251230025913id_/https://eprint.iacr.org/2014/971.pdf",
      "captured_at": "2025-12-30T02:59:13Z",
      "size": 137322
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2014/971.pdf",
      "captured_at": "2019-02-25T16:55:32Z",
      "size": 154669
    }
  ],
  "bibtex": "@misc{cryptoeprint:2014/971,\n      author = {Y. Wei and E. Pasalic and F. Zhang and W. Wu},\n      title = {Key recovery attacks on Grain family using BSW sampling and certain weaknesses of the filtering function},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2014/971},\n      year = {2014},\n      url = {https://eprint.iacr.org/2014/971}\n}"
}
