{
  "id": "2020/1070",
  "url": "https://opencryptology.org/2020/1070",
  "original_url": "https://eprint.iacr.org/2020/1070",
  "title": "Efficient indifferentiable hashing to elliptic curves $y^2 = x^3 + b$ provided that $b$ is a quadratic residue",
  "authors": [
    "Dmitrii Koshelev"
  ],
  "affiliations": null,
  "abstract": "Let $\\mathbb{F}_{\\!q}$ be a finite field and $E_b\\!: y^2 = x^3 + b$ be an ordinary elliptic $\\mathbb{F}_{\\!q}$-curve of $j$-invariant $0$ such that $\\sqrt{b} \\in \\mathbb{F}_{\\!q}$. In particular, this condition is fulfilled for the curve BLS12-381 and for one of sextic twists of the curve BW6-761 (in both cases $b=4$). These curves are very popular in pairing-based cryptography. The article provides an efficient constant-time encoding $h\\!: \\mathbb{F}_{\\!q} \\to E_b(\\mathbb{F}_{\\!q})$ of an absolutely new type for which $q/6 \\leqslant \\#\\mathrm{Im}(h)$. We prove that at least for $q \\equiv 4 \\ (\\mathrm{mod} \\ 9)$ the hash function $H\\!: \\{0,1\\}^* \\to E_b(\\mathbb{F}_{\\!q})$ induced by $h$ is indifferentiable from a random oracle. The main idea of our encoding consists in extracting in $\\mathbb{F}_{\\!q}$ (for $q \\equiv 1 \\ (\\mathrm{mod} \\ 3)$) a cubic root instead of a square root as in the well known (universal) SWU encoding and in its simplified analogue. Besides, the new hashing can be implemented without quadratic and cubic residuosity tests (as well as without inversions) in $\\mathbb{F}_{\\!q}$. Thus in addition to the protection against timing attacks, $H$ is much more efficient than the SWU hash function, which generally requires to perform $4$ quadratic residuosity tests in $\\mathbb{F}_{\\!q}$. For instance, in the case of BW6-761 this allows to avoid approximately $4 \\!\\cdot\\! 761 \\approx 3000$ field multiplications.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient indifferentiable hashing to elliptic curves $y^2 = x^3 + b$ provided that $b$ is a quadratic residue” by Dmitrii Koshelev, Cryptology ePrint Archive, Paper 2020/1070, https://eprint.iacr.org/2020/1070. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2020-09-09T06:42:33Z",
    "updated": "2021-06-18T10:28:47Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/1070.pdf",
    "sha256": "8fe7092a0fe7b3ead498b9e6e4422583feeb178a1bb1f7d7e59edd5712dd6b70",
    "size": 301603,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2020/1070/versions/20240114T061314Z.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/1070.pdf",
      "size": 301603,
      "sha256": "8fe7092a0fe7b3ead498b9e6e4422583feeb178a1bb1f7d7e59edd5712dd6b70",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2020/1070/versions/20200930T231509Z.pdf",
      "captured_at": "2020-09-30T23:15:09Z",
      "label": "copy captured 2020-09-30",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20200930231509id_/https://eprint.iacr.org/2020/1070.pdf",
      "size": 250733,
      "sha256": "c16e425f182350e15146690725fa0a06db20e43054ce1a88f06d28086c308c9a",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260417223821id_/https://eprint.iacr.org/2020/1070.pdf",
      "captured_at": "2026-04-17T22:38:21Z",
      "size": 282887
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/1070.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "size": 301603
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/1070,\n      author = {Dmitrii Koshelev},\n      title = {Efficient indifferentiable hashing to elliptic curves $y^2 = x^3 + b$ provided that $b$ is a quadratic residue},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/1070},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/1070}\n}"
}
