{
  "id": "2012/698",
  "url": "https://opencryptology.org/2012/698",
  "original_url": "https://eprint.iacr.org/2012/698",
  "title": "5PM: Secure Pattern Matching",
  "authors": [
    "Joshua Baron",
    "Karim El Defrawy",
    "Kirill Minkovich",
    "Rafail Ostrovsky",
    "Eric Tressler"
  ],
  "affiliations": null,
  "abstract": "In this paper we consider the problem of secure pattern matching  that allows\nsingle-character wildcards and substring matching in the malicious (stand-alone) setting.\nOur protocol, called 5PM, is executed between\ntwo parties:  Server, holding a text of length $n$, and\nClient, holding a pattern of length $m$ to be matched\nagainst the text, where our notion of matching is more general and includes non-binary alphabets, non-binary Hamming distance and non-binary substring matching.\n\n\n5PM is the first secure expressive pattern matching protocol designed to optimize round complexity by carefully specifying the entire protocol round by round.  In the malicious model, 5PM requires $O((m+n)k^2)$ bandwidth and $O(m+n)$ encryptions, where $m$ is the pattern length and $n$ is the text length. Further, 5PM can  hide pattern size with no asymptotic additional costs in either computation or bandwidth.  Finally, 5PM requires only two rounds of communication\nin the honest-but-curious model and eight rounds in the malicious model.  Our techniques   reduce\npattern matching and generalized Hamming distance problems to a novel linear algebra formulation that allows for generic solutions based on any additively homomorphic encryption. We believe our efficient algebraic techniques are of independent interest.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“5PM: Secure Pattern Matching” by Joshua Baron, Karim El Defrawy, Kirill Minkovich, Rafail Ostrovsky, Eric Tressler, Cryptology ePrint Archive, Paper 2012/698, https://eprint.iacr.org/2012/698. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2012-12-14T20:08:39Z",
    "updated": "2013-07-01T21:27:57Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2012/698.pdf",
    "sha256": "5d29608b1be36c6169eca3a4113a0f22152dc24a8a671ea320c9cf3743c2cdac",
    "size": 668584,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:37:15Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2012/698/versions/20190225T163715Z.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/698.pdf",
      "size": 668584,
      "sha256": "5d29608b1be36c6169eca3a4113a0f22152dc24a8a671ea320c9cf3743c2cdac",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2012/698/versions/20130108T015134Z.pdf",
      "captured_at": "2013-01-08T01:51:34Z",
      "label": "copy captured 2013-01-08",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20130108015134id_/http://eprint.iacr.org/2012/698.pdf",
      "size": 666341,
      "sha256": "202d54109bf55fd69e7ef469e9fa19de1521a6f3e29130ecd0326413571421e5",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251231032716id_/https://eprint.iacr.org/2012/698.pdf",
      "captured_at": "2025-12-31T03:27:16Z",
      "size": 659351
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/698.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "size": 668584
    }
  ],
  "bibtex": "@misc{cryptoeprint:2012/698,\n      author = {Joshua Baron and Karim El Defrawy and Kirill Minkovich and Rafail Ostrovsky and Eric Tressler},\n      title = {5PM: Secure Pattern Matching},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2012/698},\n      year = {2012},\n      url = {https://eprint.iacr.org/2012/698}\n}"
}
