{
  "id": "2016/1025",
  "url": "https://opencryptology.org/2016/1025",
  "original_url": "https://eprint.iacr.org/2016/1025",
  "title": "An Algorithm for Counting the Number of $2^n$-Periodic Binary Sequences with Fixed $k$-Error Linear Complexity",
  "authors": [
    "Wenlun Pan",
    "Zhenzhen Bao",
    "Dongdai Lin",
    "Feng Liu"
  ],
  "affiliations": null,
  "abstract": "The linear complexity and $k$-error linear complexity of sequences are important measures of the strength of key-streams generated by stream ciphers. The counting function of a sequence complexity measure gives the number of sequences with given complexity measure value and it is useful to determine the expected value and variance of a given complexity measure of a family of sequences. Fu et al. studied the distribution of $2^n$-periodic binary sequences with 1-error linear complexity in their SETA 2006 paper and peoples have strenuously promoted the solving of this problem from $k=2$ to $k=4$ step by step. Unfortunately, it still remains difficult to obtain the solutions for larger $k$ and the counting functions become extremely complex when $k$ become large. In this paper, we define an equivalent relation on error sequences. We use a concept of \\textit{cube fragment} as basic modules to construct classes of error sequences with specific structures. Error sequences with the same specific structures can be represented by a single \\textit{symbolic representation}. We introduce concepts of \\textit{trace},  \\textit{weight trace} and \\textit{orbit} of sets to build quantitative relations between different classes. Based on these quantitative relations, we propose an algorithm to  automatically generate symbolic representations of classes of error sequences, calculate \\textit{coefficients} from one class to another and compute \\textit{multiplicity} of classes defined based on specific equivalence on error sequences. This algorithm can efficiently get the number of sequences with given $k$-error linear complexity. The time complexity of this algorithm is $O(2^{k\\log k})$ in the worst case which does not depend on the period $2^n$.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“An Algorithm for Counting the Number of $2^n$-Periodic Binary Sequences with Fixed $k$-Error Linear Complexity” by Wenlun Pan, Zhenzhen Bao, Dongdai Lin, Feng Liu, Cryptology ePrint Archive, Paper 2016/1025, https://eprint.iacr.org/2016/1025. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2016-11-01T02:06:23Z",
    "updated": "2016-11-01T02:06:23Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2016/1025.pdf",
    "sha256": "2ab1117c9b913615df2eb76b97214043b91094cb1b4efdd31a52eef9cc6c4628",
    "size": 370461,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:24:56Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2016/1025/versions/20190225T172456Z.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/1025.pdf",
      "size": 370461,
      "sha256": "2ab1117c9b913615df2eb76b97214043b91094cb1b4efdd31a52eef9cc6c4628",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260110094403id_/https://eprint.iacr.org/2016/1025.pdf",
      "captured_at": "2026-01-10T09:44:03Z",
      "size": 321806
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/1025.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "size": 370461
    }
  ],
  "bibtex": "@misc{cryptoeprint:2016/1025,\n      author = {Wenlun Pan and Zhenzhen Bao and Dongdai Lin and Feng Liu},\n      title = {An Algorithm for Counting the Number of $2^n$-Periodic Binary Sequences with Fixed $k$-Error Linear Complexity},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2016/1025},\n      year = {2016},\n      url = {https://eprint.iacr.org/2016/1025}\n}"
}
