{
  "id": "2023/643",
  "url": "https://opencryptology.org/2023/643",
  "original_url": "https://eprint.iacr.org/2023/643",
  "title": "Privacy-Preserving Regular Expression Matching using Nondeterministic Finite Automata",
  "authors": [
    "Ning Luo",
    "Chenkai Weng",
    "Jaspal Singh",
    "Gefei Tan",
    "Ruzica Piskac",
    "Mariana Raykova"
  ],
  "affiliations": null,
  "abstract": "Motivated by the privacy requirements in network intrusion detection and DNS policy checking, we have developed a suite of protocols and algorithms for regular expression matching with enhanced privacy:\n\n-  A new regular expression matching algorithm that is oblivious to the input strings, of which the complexity is only $O(mn)$ where $m$ and $n$ are the length of strings and the regular expression respectively. It is achieved by exploiting the structure of the Thompson nondeterministic automata. \n-  A zero-knowledge proof of regular expression pattern matching in which a prover generates a proof to demonstrate that a public regular expression matches her input string without revealing the string itself. \n-Two secure-regex protocols that ensure the privacy of both the string and regular expression. The first protocol is based on the oblivious stack and reduces the complexity of the state-of-the-art from $O(mn^2)$ to $O(mn\\log n)$. The second protocol relies on the oblivious transfer and performs better empirically when the size of regular expressions is smaller than $2^{12}$.\n\nWe also evaluated our protocols in the context of encrypted DNS policy checking and intrusion detection and achieved 4.5X improvements over the state-of-the-art. These results also indicate the practicality of our approach in real-world applications.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Privacy-Preserving Regular Expression Matching using Nondeterministic Finite Automata” by Ning Luo, Chenkai Weng, Jaspal Singh, Gefei Tan, Ruzica Piskac, Mariana Raykova, Cryptology ePrint Archive, Paper 2023/643, https://eprint.iacr.org/2023/643. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-05-05T19:04:57Z",
    "updated": "2023-05-05T19:04:57Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/643.pdf",
    "sha256": "fc2cb59c1cc3c58267779e7525eed7ed9070c63d982e4d5134a2ef4069e9711a",
    "size": 737443,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:41Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/643/versions/20240114T061341Z.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/643.pdf",
      "size": 737443,
      "sha256": "fc2cb59c1cc3c58267779e7525eed7ed9070c63d982e4d5134a2ef4069e9711a",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260421011245id_/https://eprint.iacr.org/2023/643.pdf",
      "captured_at": "2026-04-21T01:12:45Z",
      "size": 721878
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/643.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "size": 737443
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/643,\n      author = {Ning Luo and Chenkai Weng and Jaspal Singh and Gefei Tan and Ruzica Piskac and Mariana Raykova},\n      title = {Privacy-Preserving Regular Expression Matching using Nondeterministic Finite Automata},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/643},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/643}\n}"
}
