{
  "id": "2021/1666",
  "url": "https://opencryptology.org/2021/1666",
  "original_url": "https://eprint.iacr.org/2021/1666",
  "title": "Approximate Distance-Comparison-Preserving Symmetric Encryption",
  "authors": [
    "Georg Fuchsbauer",
    "Riddhi Ghosal",
    "Nathan Hauke",
    "Adam O'Neill"
  ],
  "affiliations": null,
  "abstract": "We introduce distance-comparison-preserving symmetric encryption (DCPE), a new type of property-preserving encryption  (PPE) that  preserves relative distance between plaintext vectors.  DCPE is naturally suited for  nearest-neighbor search on encrypted data. To achieve meaningful security, we divert from prior work on PPE and ask for  approximate correctness, which is natural given the prevalence of approximate nearest neighbor (ANN) search. We conduct a thorough study of what security approximate DCPE can provide and how to construct it.\n\nBased on a relation we prove between approximate DCP and approximate distance-preserving functions,  we  design our core approximate DCPE scheme we call Scale-And-Perturb ($\\mathsf{SAP}$). The encryption algorithm of $\\mathsf{SAP}$ processes data on-the-fly. To boost security, we also introduce two  preprocessing techniques: (1)  normalizing the plaintext distribution,  and (2) shuffling, wherein the component-wise encrypted dataset is randomly permuted. We prove (under suitable restrictions) that $\\mathsf{SAP}$ achieves an indistinguishability-based security notion we call Real-or-Replaced ($\\mathsf{RoR}$). In particular, our $\\mathsf{RoR}$ result  implies that our scheme prevents membership inference attacks by Yeom et al.  (CSF 2018).   Moreover, we show for i.i.d. multivariate normal plaintexts, we get security against approximate frequency-finding attacks, the main line of attacks against property-preserving encryption.  This follows from a one-wayness $(\\mathsf{OW})$ analysis. Finally, carefully combining our $\\mathsf{OW}$ and $\\mathsf{RoR}$ results, we are able characterize bit-security of $\\mathsf{SAP}$.\n\nOur overall findings are that our scheme not only has superior bit-security to OPE but resists specific attacks that even ideal order-revealing encryption (Boneh et al., EUROCRYPT 2015) does not. This suggests it could be sufficient for certain ANN applications, a subject on which we encourage further study.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Approximate Distance-Comparison-Preserving Symmetric Encryption” by Georg Fuchsbauer, Riddhi Ghosal, Nathan Hauke, Adam O'Neill, Cryptology ePrint Archive, Paper 2021/1666, https://eprint.iacr.org/2021/1666. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-12-20T13:58:32Z",
    "updated": "2021-12-20T13:58:32Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1666.pdf",
    "sha256": "bbb8ad9c90b10f4e7e4a916217c1e600fd9baadda20f41324486e7cb2375ef6e",
    "size": 1071797,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/1666/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1666.pdf",
      "size": 1071797,
      "sha256": "bbb8ad9c90b10f4e7e4a916217c1e600fd9baadda20f41324486e7cb2375ef6e",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260212205131id_/https://eprint.iacr.org/2021/1666.pdf",
      "captured_at": "2026-02-12T20:51:31Z",
      "size": 1052517
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1666.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 1071797
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1666,\n      author = {Georg Fuchsbauer and Riddhi Ghosal and Nathan Hauke and Adam O'Neill},\n      title = {Approximate Distance-Comparison-Preserving Symmetric Encryption},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1666},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1666}\n}"
}
