Indistinguishability obfuscation explained

In cryptography, indistinguishability obfuscation (abbreviated IO or iO) is a type of software obfuscation with the defining property that obfuscating any two programs that compute the same mathematical function results in programs that cannot be distinguished from each other. Informally, such obfuscation hides the implementation of a program while still allowing users to run it.[1] Formally, iO satisfies the property that obfuscations of two circuits of the same size which implement the same function are computationally indistinguishable.

Indistinguishability obfuscation has several interesting theoretical properties. Firstly, iO is the "best-possible" obfuscation (in the sense that any secret about a program that can be hidden by any obfuscator at all can also be hidden by iO). Secondly, iO can be used to construct nearly the entire gamut of cryptographic primitives, including both mundane ones such as public-key cryptography and more exotic ones such as deniable encryption and functional encryption (which are types of cryptography that no-one previously knew how to construct), but with the notable exception of collision-resistant hash function families. For this reason, it has been referred to as "crypto-complete". Lastly, unlike many other kinds of cryptography, indistinguishability obfuscation continues to exist even if P=NP (though it would have to be constructed differently in this case), though this does not necessarily imply that iO exists unconditionally.

Though the idea of cryptographic software obfuscation has been around since 1996, indistinguishability obfuscation was first proposed by Barak et al. (2001), who proved that iO exists if P=NP is the case. For the P≠NP case (which is harder, but also more plausible), progress was slower: Garg et al. (2013) proposed a construction of iO based on a computational hardness assumption relating to multilinear maps, but this assumption was later disproven. A construction based on "well-founded assumptions" (hardness assumptions that have been well-studied by cryptographers, and thus widely assumed secure) had to wait until Jain, Lin, and Sahai (2020). (Even so, one of these assumptions used in the 2020 proposal is not secure against quantum computers.)

Currently known indistinguishability obfuscation candidates are very far from being practical. As measured by a 2017 paper, even obfuscating the toy function which outputs the logical conjunction of its thirty-two Boolean data type inputs produces a program nearly a dozen gigabytes large.

Formal definition

Let

l{iO}

be some uniform probabilistic polynomial-time algorithm. Then

l{iO}

is called an indistinguishability obfuscator if and only if it satisfies both of the following two statements:

x\in\{0,1\}n

, we have \Pr[C'(x) = C(x): C' \leftarrow\mathcal{iO}(C) ] = 1.

C0,C1

of the same size k that implement the same functionality, the distributions

\{l{iO}(C0)\}

and

\{l{iO}(C1)\}

are computationally indistinguishable. In other words, for any probabilistic polynomial-time adversary A, there is a negligible function

\varepsilon(k)

(i.e., a function that eventually grows slower than

1/p(k)

for any polynomial p) such that, for every pair of circuits

C0,C1

of the same size k that implement the same functionality, we have|\Pr[A(\mathcal{iO}(C_0))=1] - \Pr[A(\mathcal{iO}(C_1))=1]|\leq\varepsilon(k).

History

In 2001, Barak et al., showing that black-box obfuscation is impossible, also proposed the idea of an indistinguishability obfuscator, and constructed an inefficient one.[2] [3] [4] Although this notion seemed relatively weak, Goldwasser and Rothblum (2007) showed that an efficient indistinguishability obfuscator would be a best-possible obfuscator, and any best-possible obfuscator would be an indistinguishability obfuscator.[5] (However, for inefficient obfuscators, no best-possible obfuscator exists unless the polynomial hierarchy collapses to the second level.)

An open-source software implementation of an iO candidate was created in 2015.[6]

Candidate constructions

Barak et al. (2001) proved that an inefficient indistinguishability obfuscator exists for circuits; that is, the lexicographically first circuit that computes the same function. If P = NP holds, then an indistinguishability obfuscator exists, even though no other kind of cryptography would also exist.

A candidate construction of iO with provable security under concrete hardness assumptions relating to multilinear maps was published by Garg et al. (2013), but this assumption was later invalidated.[7] [8] (Previously, Garg, Gentry, and Halevi (2012) had constructed a candidate version of a multilinear map based on heuristic assumptions.[9])

Starting from 2016, Lin began to explore constructions of iO based on less strict versions of multilinear maps, constructing a candidate based on maps of degree up to 30, and eventually a candidate based on maps of degree up to 3. Finally, in 2020, Jain, Lin, and Sahai proposed a construction of iO based on the symmetric external Diffie-Helman, learning with errors, and learning plus noise assumptions,[10] as well as the existence of a super-linear stretch pseudorandom generator in the function class NC0. (The existence of pseudorandom generators in NC0 (even with sub-linear stretch) was a long-standing open problem until 2006.[11]) It is possible that this construction could be broken with quantum computing, but there is an alternative construction that may be secure even against that (although the latter relies on less established security assumptions).

Practicality

There have been attempts to implement and benchmark iO candidates. In 2017, an obfuscation of the function

x1\wedgex2\wedge...\wedgex32

at a security level of 80 bits took 23.5 minutes to produce and measured 11.6 GB, with an evaluation time of 77 ms. Additionally, an obfuscation of the Advanced Encryption Standard encryption circuit at a security level of 128 bits would measure 18 PB and have an evaluation time of about 272 years.

Existence

It is useful to divide the question of the existence of iO by using Russell Impagliazzo's "five worlds",[12] which are five different hypothetical situations about average-case complexity:[13]

Potential applications

Indistinguishability obfuscators, if they exist, could be used for an enormous range of cryptographic applications, so much so that it has been referred to as a "central hub" for cryptography, the "crown jewel of cryptography", or "crypto-complete". Concretely, an indistinguishability obfuscator (with the additional assumption of the existence of one-way functions) could be used to construct the following kinds of cryptography:

Additionally, if iO and one-way functions exist, then problems in the PPAD complexity class are provably hard.[19]

However, indistinguishability obfuscation cannot be used to construct every possible cryptographic protocol: for example, no black-box construction can convert an indistinguishability obfuscator to a collision-resistant hash function family, even with a trapdoor permutation, except with an exponential loss of security.[20]

See also

Notes and References

  1. News: Klarreich . Erica . Erica Klarreich . 2014-02-03 . Cryptography Breakthrough Could Make Software Unhackable . Quanta Magazine . 2019-02-15 . 2022-04-14 . https://web.archive.org/web/20220414061648/https://www.wired.com/2014/02/cryptography-breakthrough/ . live .
  2. Web site: Klarreich. Erica. 2014-01-30. Perfecting the Art of Sensible Nonsense. 2021-08-22. Quanta Magazine. en. 2021-08-06. https://web.archive.org/web/20210806002418/https://www.quantamagazine.org/in-cryptography-advances-in-program-obfuscation-20140130/. live.
  3. Barak. Boaz. Goldreich. Oded. Impagliazzo. Russell. Rudich. Steven. Sahai. Amit. Vadhan. Salil. Yang. Ke. 2012-05-03. On the (im)possibility of obfuscating programs. Journal of the ACM. 59. 2. 6:1–6:48. 10.1145/2160158.2160159. 2409597. 0004-5411. 2024-06-30. 2023-02-25. https://web.archive.org/web/20230225203000/https://dash.harvard.edu/bitstream/handle/1/12644697/9034637.pdf. live.
  4. Web site: Pellet--Mary. Alice. 26 May 2020. Co6GC: Program Obfuscation COSIC. live. https://web.archive.org/web/20201111005432/https://www.esat.kuleuven.be/cosic/blog/program-obfuscation/. 11 November 2020. 22 August 2021. www.esat.kuleuven.be.
  5. Book: Goldwasser. Shafi. Shafi Goldwasser. Rothblum. Guy N.. Theory of Cryptography. On Best-Possible Obfuscation. 2007. Vadhan. Salil P.. https://link.springer.com/chapter/10.1007/978-3-540-70936-7_11. Lecture Notes in Computer Science. 4392. en. Berlin, Heidelberg. Springer. 194–213. 10.1007/978-3-540-70936-7_11. 978-3-540-70936-7. 1721.1/129413. free. 2021-08-22. 2022-01-19. https://web.archive.org/web/20220119065725/https://link.springer.com/chapter/10.1007%2F978-3-540-70936-7_11. live.
  6. Book: Banescu . Sebastian . Ochoa . Martín . Kunze . Nils . Pretschner . Alexander . Engineering Secure Software and Systems . Idea: Benchmarking Indistinguishability Obfuscation – A Candidate Implementation . 2015 . Piessens . Frank . Caballero . Juan . Bielova . Nataliia . https://www.cqse.eu/fileadmin/content/news/publications/2015-idea-benchmarking-indistinguishability-obfuscation-a-candidate-implementation.pdf . Lecture Notes in Computer Science . en . Cham . Springer International Publishing . 8978 . 149–156 . 10.1007/978-3-319-15618-7_12 . 978-3-319-15618-7 . 2021-08-22 . 2021-08-22 . https://web.archive.org/web/20210822025910/https://www.cqse.eu/fileadmin/content/news/publications/2015-idea-benchmarking-indistinguishability-obfuscation-a-candidate-implementation.pdf . live .
  7. Garg . Sanjam . Gentry . Craig . Halevi . Shai . Raykova . Mariana . Sahai . Amit . Waters . Brent . 2013 . Candidate Indistinguishability Obfuscation and Functional Encryption for all Circuits . 2013 IEEE 54th Annual Symposium on Foundations of Computer Science . 40–49 . IEEE . 10.1109/focs.2013.13. 978-0-7695-5135-7 .
  8. News: Klarreich . Erica . Erica Klarreich . 2020-10-10 . Computer Scientists Achieve 'Crown Jewel' of Cryptography . Quanta Magazine . 2020-11-10 . 2022-05-07 . https://web.archive.org/web/20220507013835/https://www.quantamagazine.org/computer-scientists-achieve-crown-jewel-of-cryptography-20201110/ . live .
  9. Web site: Barak. Boaz. 29 December 2020. New Developments in Indistinguishability Obfuscation (iO) Simons Institute for the Theory of Computing. 22 August 2021. simons.berkeley.edu. en. 22 August 2021. https://web.archive.org/web/20210822025918/https://simons.berkeley.edu/news/new-developments-indistinguishability-obfuscation-io. live.
  10. Jain. Aayush. Lin. Huijia. Huijia (Rachel) Lin. Sahai. Amit. 2020. Indistinguishability Obfuscation from Well-Founded Assumptions. Cryptology ePrint Archive. 2008.09317. 2020-11-16. 2022-03-03. https://web.archive.org/web/20220303200221/https://eprint.iacr.org/2020/1003. live.
  11. Applebaum . B . Ishai . Y . Kushilevitz . E . Cryptography in NC0 . SIAM Journal on Computing . 2006 . 36 . 4 . 845–888 . 10.1137/S0097539705446950 . 2020-11-11 . 2021-11-30 . https://web.archive.org/web/20211130194319/http://www.eng.tau.ac.il/~bennyap/pubs/nc0-full.pdf . dead .
  12. Book: Impagliazzo . Russell . Proceedings of Structure in Complexity Theory. Tenth Annual IEEE Conference . A personal view of average-case complexity . 19–22 June 1995 . 134–147 . 10.1109/SCT.1995.514853 . 0-8186-7052-5 . 2154064 . https://ieeexplore.ieee.org/document/514853 . 27 July 2022 . 27 July 2022 . https://web.archive.org/web/20220727153101/https://ieeexplore.ieee.org/document/514853/ . live .
  13. Moran. Tal. Rosen. Alon. 7 October 2013. There is no Indistinguishability Obfuscation in Pessiland. IACR Cryptology ePrint Archive. 15 January 2022. 19 January 2022. https://web.archive.org/web/20220119062601/https://eprint.iacr.org/2013/643.pdf. live.
  14. Bitansky. Nir. Nishimaki. Ryo. Passelègue. Alain. Wichs. Daniel. 30 August 2017. From Cryptomania to Obfustopia through Secret-Key Functional Encryption. IACR Cryptology ePrint Archive. 15 January 2022. 20 January 2022. https://web.archive.org/web/20220120203308/https://eprint.iacr.org/2016/558.pdf. live.
  15. Book: Garg. Sanjam. Pandey. Omkant. Srinivasan. Akshayaram. Zhandry. Mark. Advances in Cryptology – EUROCRYPT 2017. Breaking the Sub-Exponential Barrier in Obfustopia. 2017. Coron. Jean-Sébastien. Nielsen. Jesper Buus. https://link.springer.com/chapter/10.1007/978-3-319-56617-7_6. Lecture Notes in Computer Science. 10212. en. Cham. Springer International Publishing. 156–181. 10.1007/978-3-319-56617-7_6. 978-3-319-56617-7. 2022-01-15. 2022-01-15. https://web.archive.org/web/20220115210326/https://link.springer.com/chapter/10.1007/978-3-319-56617-7_6. live.
  16. Book: Koppula. Venkata. Lewko. Allison Bishop. Waters. Brent. Proceedings of the forty-seventh annual ACM symposium on Theory of Computing. Indistinguishability Obfuscation for Turing Machines with Unbounded Memory. 2015-06-14. https://eprint.iacr.org/2014/925.pdf. STOC '15. Portland, Oregon, USA. Association for Computing Machinery. 419–428. 10.1145/2746539.2746614. 978-1-4503-3536-2. 1368494. 2021-09-11. 2021-09-11. https://web.archive.org/web/20210911211015/https://eprint.iacr.org/2014/925.pdf. live.
  17. Book: Ananth. Prabhanjan. Jain. Abhishek. Sahai. Amit. Advances in Cryptology – CRYPTO 2017. Indistinguishability Obfuscation for Turing Machines: Constant Overhead and Amortization. 2017. Katz. Jonathan. Shacham. Hovav. https://eprint.iacr.org/2015/1023.pdf. Lecture Notes in Computer Science. 10402. en. Cham. Springer International Publishing. 252–279. 10.1007/978-3-319-63715-0_9. 978-3-319-63715-0. 2021-09-11. 2021-09-11. https://web.archive.org/web/20210911211004/https://eprint.iacr.org/2015/1023.pdf. live.
  18. Sahai. Amit. Waters. Brent. 2013. How to Use Indistinguishability Obfuscation: Deniable Encryption, and More. Cryptology ePrint Archive. 2021-03-14. 2022-02-03. https://web.archive.org/web/20220203232604/https://eprint.iacr.org/2013/454. live.
  19. Book: Bitansky. Nir. Paneth. Omer. Rosen. Alon. 2015 IEEE 56th Annual Symposium on Foundations of Computer Science. On the Cryptographic Hardness of Finding a Nash Equilibrium. October 2015. https://ieeexplore.ieee.org/document/7354468. 1480–1498. 10.1109/FOCS.2015.94. 978-1-4673-8191-8. 217890992. 2024-06-30. 2024-06-10. https://web.archive.org/web/20240610203415/https://ieeexplore.ieee.org/document/7354468/. live.
  20. Asharov. Gilad. Segev. Gil. 2015. Limits on the Power of Indistinguishability Obfuscation and Functional Encryption. Cryptology ePrint Archive. 2021-03-14. 2022-01-21. https://web.archive.org/web/20220121020431/https://eprint.iacr.org/2015/341. live.