{
  "id": "2014/486",
  "url": "https://opencryptology.org/2014/486",
  "original_url": "https://eprint.iacr.org/2014/486",
  "title": "Binary Elligator Squared",
  "authors": [
    "Diego F. Aranha",
    "Pierre-Alain Fouque",
    "Chen Qian",
    "Mehdi Tibouchi",
    "Jean-Christophe Zapalowicz"
  ],
  "affiliations": null,
  "abstract": "Applications of elliptic curve cryptography to anonymity, privacy and\ncensorship circumvention call for methods to represent uniformly random\npoints on elliptic curves as uniformly random bit strings, so that, for\nexample, ECC network traffic can masquerade as random traffic.\n\nAt ACM CCS 2013, Bernstein et al. proposed an efficient approach,\ncalled ``Elligator,'' to solving this problem for arbitrary elliptic\ncurve-based cryptographic protocols, based on the use of efficiently\ninvertible maps to elliptic curves. Unfortunately, such invertible maps\nare only known to exist for certain classes of curves, excluding in\nparticular curves of prime order and curves over binary fields. A variant\nof this approach, ``Elligator Squared,'' was later proposed by Tibouchi\n(FC 2014) supporting not necessarily injective encodings to elliptic\ncurves (and hence a much larger class of curves), but, although some\nrough efficiency estimates were provided, it was not clear how an actual\nimplementation of that approach would perform in practice.\n\nIn this paper, we show that Elligator Squared can indeed be implemented\nvery efficiently with a suitable choice of curve encodings. More\nprecisely, we consider the binary curve setting (which was not discussed\nin Tibouchi's paper), and implement the Elligator Squared bit string\nrepresentation algorithm based on a suitably optimized version of the\nShallue--van de Woestijne characteristic 2 encoding, which we show can\nbe computed using only multiplications, trace and half-trace\ncomputations, and a few inversions.\n\nOn the fast binary curve of Oliveira et al. (CHES 2013), our\nimplementation runs in an average of only 22850 Haswell cycles, making\nuniform bit string representations possible for a very reasonable\noverhead---much smaller even than Elligator on Edwards curves.\n\nAs a side contribution, we also compare implementations of Elligator and\nElligator Squared on a curve supported by Elligator, namely\nCurve25519. We find that generating a random point and its uniform\nbitstring representation is around 35-40% faster with Elligator for\nprotocols using a fixed base point (such as static ECDH), but 30-35%\nfaster with Elligator Squared in the case of a variable base point\n(such as ElGamal encryption). Both are significantly slower\nthan our binary curve implementation.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Binary Elligator Squared” by Diego F. Aranha, Pierre-Alain Fouque, Chen Qian, Mehdi Tibouchi, Jean-Christophe Zapalowicz, Cryptology ePrint Archive, Paper 2014/486, https://eprint.iacr.org/2014/486. 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-06-23T13:05:38Z",
    "updated": "2014-06-23T13:05:38Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2014/486.pdf",
    "sha256": "441077c7e1830fcb7b492288424e02548eccec2c9ab4691a7b1eb1177de9b2a1",
    "size": 328665,
    "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/486/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/486.pdf",
      "size": 328665,
      "sha256": "441077c7e1830fcb7b492288424e02548eccec2c9ab4691a7b1eb1177de9b2a1",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260216092807id_/https://eprint.iacr.org/2014/486.pdf",
      "captured_at": "2026-02-16T09:28:07Z",
      "size": 301728
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2014/486.pdf",
      "captured_at": "2019-02-25T16:55:32Z",
      "size": 328665
    }
  ],
  "bibtex": "@misc{cryptoeprint:2014/486,\n      author = {Diego F. Aranha and Pierre-Alain Fouque and Chen Qian and Mehdi Tibouchi and Jean-Christophe Zapalowicz},\n      title = {Binary Elligator Squared},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2014/486},\n      year = {2014},\n      url = {https://eprint.iacr.org/2014/486}\n}"
}
