Expander Graphs are Non-Malleable Codes
Abstract
Any -regular graph on vertices with spectral expansion satisfying yields a -non-malleable code for single-bit messages in the split-state model.
1 Introduction
A split-state non-malleable code [DPW10] for single-bit messages consists of randomized encoding and decoding algorithms . A message is encoded as a pair of strings , such that . An adversary then specifies an arbitrary pair of functions . The code is said to be non-malleable if, intuitively, the message obtained as is “unrelated” to the original message . In particular, to be -non-malleable, it is enough [DKO13] to guarantee that when the message is chosen uniformly at random and encoded into , the probability that is at most . Since their introduction in 2010 [DPW10], split-state non-malleable codes have been the subject of intense study within theoretical computer science [DPW10, DKO13, ADL14, CZ14, CGL16, Li17].
In this work, we show that expander graphs immediately give rise to split-state non-malleable codes for single-bit messages. Specifically, we show that any -regular graph on nodes with spectral expansion satisfying yields a -non-malleable code for single-bit messages in the split-state model. Our proof is elementary, requiring a little more than two (fullsize) pages to prove, having at its heart two nested applications of the Expander Mixing Lemma. Furthermore, we only need expanders of high degree (e.g., ), which can be constructed and analyzed easily (see, e.g., [Tre] or the appendix), yielding -non-malleable codes.
Comparison with Previous Work.
Until our work, all known proofs of security for explicit split-state non-malleable codes have required complex mathematical proofs, and all known such proofs either directly or indirectly used the mathematics behind constructions of two-source extractors [DKO13, ADL14, CZ14, CGL16, Li17]. In fact, after constructing the first non-malleable code in the split-state model Dziembowski, Kazana, and Obremski wrote: “This brings a natural question if we could show some relationship between the extractors and the non-malleable codes in the split-state model. Unfortunately, there is no obvious way of formalizing the conjecture that non-malleable codes need to be based on extractors” [DKO13]. We thus simultaneously find the first simple, elementary solution to the problem of designing single-bit non-malleable codes (our proof being approximately one-third the length of the proof of security of the single-bit non-malleable code of [DKO13]) and answer in the negative the implicit conjecture of [DKO13]; it is not necessary to base constructions of non-malleable codes on the theory of extractors.
Our construction of non-malleable codes from expander graphs thus opens up a new line of attack in the study of split-state non-malleable codes. It is important to keep in mind that current constructions of non-malleable codes supporting messages of arbitrary length use many ideas pioneered in the construction of [DKO13], in particular the use of extractors. While we do not yet know how to generalize our results beyond single-bit messages, we speculate that further investigation building upon our work will reveal a deeper connection and more powerful simple constructions based on expanders.
It should be noted that two-source extractors are well-known to exhibit expansion properties; however, in all previous proofs, much more than mere expansion was used to argue non-malleability. Indeed previous proofs apply extractors repeatedly; for instance the proof of [DKO13] uses the extractor property several times (e.g., in equation (22) and using equation (43) in [DKO13]). Previous proofs also highlight the nontriviality and care that is required in applying extractors correctly to yield a valid proof of non-malleability (e.g., the paragraph beginning with “There are two problems with the above argument.” found below equation (36) of [DKO13]). With respect to the expansion properties of two-source extractors, it is not surprising that 1-bit non-malleable codes will have some sort of expansion properties. Our contribution is the converse: that good expansion is sufficient for the construction of non-malleable codes.
2 Preliminaries
We shall assume familiarity with the basics of codes and non-malleable codes. A cursory review of relevant definitions can be found in the appendix.
Notation 1 (Graphs).
A graph consists of vertices and edges . In this exposition every graph is undirected and always denotes the number of vertices of the graph in question.
- •
For any we denote by the set of neighbors of in .
- •
For any two subsets we denote by the set of (directed) edges from to in . I.e. .
Definition 1 (Spectral Expander).
Let be a -regular graph, be its adjacency matrix, and be the eigenvalues of . We say that is a spectral expander if .
Theorem 2 (Expander Mixing Lemma).
Suppose that is a spectral expander. Then for every pair of subsets we have
Our results will rely on the following characterization of 1-bit non-malleable codes by Dziembowski, Kazana, and Obremski found in [DKO13].
Theorem 3.
Let be a coding scheme with and . Further, let be a set of functions . Then is -non-malleable with respect to if and only if for every ,
where the probability is over the uniform choice of and the randomness of .
3 Results
We first formally introduce our candidate code and then prove that it is a non-malleable code.
3.1 Candidate Code
From a graph we can very naturally construct a coding scheme as follows.
Definition 4 (Graph Code).
Let be a graph. The associated graph code, , consists of the functions
which are randomized and deterministic, respectively, and given by
3.2 Non-Malleability of Expander Graph Codes
Finally, arriving at the core of the matter, we first establish the following lemma casting the expression of Theorem 3 in terms of graph properties.
Proposition 5.
Let be a graph, functions be given, and satisfy . For the probability that flips a random bit encoded by , write
where the probability is taken over the randomness of and the sampling of . Then
Proof.
For denote by the probability
taken over the randomness of . It is clear that and that by definition
First, for we see that the number of non-edges that are mapped by to any given is given by . There are non-edges in so it follows that
Second, for the number of edges of that are mapped to non-edges by is given by . Since there are edges of to choose from when encoding the bit ,
Now, observing that the number of (directed) edges in the graph is and that and are both partitions of , we get
Putting it all together,
∎
We proceed immediately with the main theorem, which concludes the exposition. In order to keep this presentation short and to the point, more elaborate calculations, which save a few -factors, have been placed in the appendix as Theorem 9.
Theorem 6.
Let be -regular with spectral expansion satisfying . Then is an -non-malleable code in the split-state model.
Proof.
Let be given. By Theorem 3 and Proposition 5 we just need to show that
is bounded by . Define the sets
for write
and observe that .
Consider the case when . Simply bounding the terms of the form by using that each vertex has only neighbours, we get
Thus, . By symmetry, . It only remains to show that . To this end, partition and , respectively, as
for . Now, focusing on each pair and , we write
and apply first the mixing lemma then the Cauchy-Schwartz inequality to get
We use the fact that , apply the mixing lemma to the last factor, and wield Jensen’s inequality on the arising square root to obtain
By symmetry of and , . Thus,
∎
Acknowledgements
A significant effort was made to simplify our proof as much as possible, which eventually resulted in the approximately 2-page proof of our main result presented here; we thank Anders Aamand and Jakob Bæk Tejs Knudsen for suggestions and insights regarding the main theorem that helped simplify and improve the results presented. Furthermore, we thank Aayush Jain, Yuval Ishai, and Dakshita Khurana for early discussions regarding simple constructions of split-state non-malleable codes not based on expander graphs.
Research supported in part from a DARPA/ARL SAFEWARE award, NSF Frontier Award 1413955, and NSF grant 1619348, BSF grant 2012378, a Xerox Faculty Research Award, a Google Faculty Research Award, an equipment grant from Intel, and an Okawa Foundation Research Grant. This material is based upon work supported by the Defense Advanced Research Projects Agency through the ARL under Contract W911NF-15-C- 0205. The views expressed are those of the authors and do not reflect the official policy or position of the Department of Defense, the National Science Foundation, or the U.S. Government.
Research supported in part by grant 16582, Basic Algorithms Research Copenhagen (BARC), from the VILLUM Foundation.
References
- [ADL14] Divesh Aggarwal, Yevgeniy Dodis, and Shachar Lovett. Non-malleable codes from additive combinatorics. In Symposium on Theory of Computing, STOC, 2014.
- [CGL16] Eshan Chattopadhyay, Vipul Goyal, and Xin Li. Non-malleable extractors and codes, with their many tampered extensions. In Symposium on Theory of Computing, STOC, 2016.
- [CZ14] Eshan Chattopadhyay and David Zuckerman. Non-malleable codes against constant split-state tampering. In Foundations of Computer Science, FOCS, 2014.
- [DKO13] Stefan Dziembowski, Tomasz Kazana, and Maciej Obremski. Non-malleable codes from two-source extractors. In CRYPTO, 2013.
- [DPW10] Stefan Dziembowski, Krzysztof Pietrzak, and Daniel Wichs. Non-malleable codes. In ICS, 2010.
- [Li17] Xin Li. Improved non-malleable extractors, non-malleable codes and independent source extractors. In Symposium on Theory of Computing, STOC, 2017.
- [Tre] Luca Trevisan. Luca trevisan’s ‘in theory’ blog. https://lucatrevisan.wordpress.com/2011/02/28/cs359g-lecture-16-constructions-of-expanders/. Accessed: 2018-09-27.
Appendix A Definitions for Split-State Non-Malleable Codes
Here, we recall the basic definition of a split-state non-malleable code due to [DPW10].
Definition 7 (Coding scheme).
We define a coding scheme to be a pair of functions . The encoding function is randomized while the decoding function is deterministic. Further, for all the pair satisfies
where the probability is taken over the randomness of .
Definition 8 (Split State Non-Malleable Code).
A coding scheme , and , is -non-malleable in the split state model if for every pair of functions and writing there exists a distribution supported on such that for every the two random variables defined by the experiments
have statistical distance at most .
Appendix B Deliver Us from Log Factors
A more thorough analysis of the sums in the proof of Theorem 6 allows us to get slightly better bounds. The technicalities are of little interest to the big picture and were hence omitted in the body of the paper. The addition consists of an alternative ending to the proof of Theorem 6.
Theorem 9.
Let be -regular with spectral expansion satisfying . Then is an -non-malleable code in the split-state model.
Proof.
At the very end of the proof of Theorem 6, we arrived at
Applying Jensen’s inequality, we get
| (1) |
with the functions hidden by the -notation being independent of .
First, write
Using the Cauchy-Schwartz inequality in the second inequality,
since the are disjoint subsets of . In conclusion,
Second, let and write . We now bound the sum using (2). Write
Then
where the third inequality is established using Hölder’s inequalty.
It now follows that
By symmetry of and ,
which completes the proof. ∎
Appendix C Instantiating Our Construction
Using our results to instantiate an efficient, secure split-state non-malleable code, we require a family of graphs , where each is -regular with spectral expansion , satisfying the following:
- 1.
The function is negligible.
- 2.
We have
- 3.
Both sampling an edge and sampling a non-edge can be done in time polynomial in .
- 4.
Determining membership of a pair in can be done deterministically in time polynomial in .
Given such a family of graphs it is clear that the corresponding graph code is an efficiently computable non-malleable code.
C.1 Instantiation with High-Degree Cayley Graphs
Explicit constructions of such families of graphs do indeed exist. We shall here give an example from [Tre] from the class of graphs known as Cayley graphs. The construction is as follows.
Definition 10.
For a prime and let the graph have vertex set and edge set
i.e. are connected by an edge if and only if there exists such that .
It is worth nothing that the graph is is -regular and that it is undirected as is connected to if and only if is connected to .
Now, let and for each let be some -bit prime. We consider the family of graphs for our instantiation. In the following, we shall check the criteria from the beginning of the section point by point.
- 1.
The family of graphs has great expander properties.
Theorem 11 (Trevisan [Tre]).
For , the graph is a -spectral expander.
This fact allows us to note that for our particular choice of graphs, , which in fact is and the representation size is bits.
- 2.
We have such that indeed,
- 3.
Sampling an edge is simply a question of picking uniformly at random and then outputting the edge .
To pick a non-edge, simply sample two random vertices uniformly at random and check (with the procedure to be specified below) whether . Since for the probability of hitting an edge with such a random choice is , the expected number of repetitions is constant and hence the procedure takes expected polynomial time.
- 4.
To test membership of some in , perform the following operation: Compute and write . It is now trival to check whether is of the form .