<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Leakage-Resilient Key Exchange and Two-Seed Extractors</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>08/10/2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10230317</idno>
					<idno type="doi">10.1007/978-3-030-56784-2_14</idno>
					<title level='j'>Micciancio D., Ristenpart T. (eds) Advances in Cryptology – CRYPTO 2020. CRYPTO 2020. Lecture Notes in Computer Science, vol 12170. Springer, Cham</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Xin Li</author><author>Fermi Ma</author><author>Willy Quach</author><author>Daniel Wichs</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Can Alice and Bob agree on a uniformly random secret key without having any truly secret randomness to begin with? Here we consider a setting where Eve can get partial leakage on the internal state of both Alice and Bob individually before the protocol starts. They then run a protocol using their states without any additional randomness and need to agree on a shared key that looks uniform to Eve, even after observing the leakage and the protocol transcript. We focus on non-interactive (one round) key exchange (NIKE), where Alice and Bob send one message each without waiting for one another.We first consider this problem in the symmetric-key setting, where the states of Alice and Bob include a shared secret as well as individual uniform randomness. However, since Eve gets leakage on these states, Alice and Bob need to perform privacy amplification to derive a fresh secret key from them. Prior solutions require Alice and Bob to sample fresh uniform randomness during the protocol, while in our setting all of their randomness was already part of their individual states a priori and was therefore subject to leakage. We show an information-theoretic solution to this problem using a novel primitive that we call a two-seed extractor, which we in turn construct by drawing a connection to communicationcomplexity lower-bounds in the number-on-forehead (NOF) model.We then turn to studying this problem in the public-key setting, where the states of Alice and Bob consist of independent uniform randomness. Unfortunately, we give a black-box separation showing that leakage-resilient NIKE in this setting cannot be proven secure via a black-box reduction under any game-based assumption when the leakage is super-logarithmic. This includes virtually all assumptions used in cryptography, and even very strong assumptions such as indistinguishability obfuscation (iO). Nevertheless, we also provide positive results that get around the above separation:]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>&#8226; We show that every key exchange protocol (e.g., Diffie-Hellman) is secure when the leakage amount is logarithmic, or potentially even greater if we assume sub-exponential security without leakage.</p><p>&#8226; We notice that the black-box separation does not extend to schemes in the common reference string (CRS) model, or to schemes with preprocessing, where Alice and Bob can individually pre-process their random coins to derive their secret state prior to leakage. We give a solution in the CRS model with preprocessing using bilinear maps. We also give solutions in just the CRS model alone (without preprocessing) or just with preprocessing (without a CRS), using iO and lossy functions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Leakage-resilient cryptography [ISW03, MR04, DP08, AGV09, ADW09, NS09, ADN + 10, GR12, . . . ] studies the security of cryptosystems when the adversary can get some partial information about the secret keys of honest users. However, in almost all cases, the schemes rely on some leak-free randomness to guarantee security. For example, leakage-resilient encryption <ref type="bibr">[AGV09,</ref><ref type="bibr">NS09]</ref> only guarantees security when the adversary gets leakage on the secret key, but requires the encryption randomness to be leak-free. In fact, leakage-resilience is closely related to cryptography with imperfect randomness (conditioned on the leakage, the randomness is no longer uniform) where it was shown that many cryptographic tasks are impossible with imperfect randomness <ref type="bibr">[DOPS04]</ref>.</p><p>In this work, we study the question of leakage-resilient key exchange, where Alice and Bob wish to agree on a nearly uniform secret key by communicating over a public channel whose contents are being observed by an adversary Eve. Before the protocol starts, Eve can additionally get partial leakage on the internal states of each of Alice and Bob individually. In particular, Eve can choose two functions f A , f B with -bit output, where is some leakage bound, and learn the output of these functions when applied on the states of Alice and Bob respectively. We assume that the state of each user includes all of the randomness that will be available to them during the protocol and they cannot sample any fresh randomness after the leakage occurs. Throughout this work, we focus on non-interactive key-exchange (NIKE) protocols (e.g., in the style of Diffie-Hellman key exchange) where Alice and Bob each non-adaptively send one message as a function of their state.</p><p>Symmetric-Key Setting. We first study leakage-resilient NIKE in the symmetric-key setting, where Alice and Bob share a uniformly random secret sk. Each of them has some additional independent randomness r A , r B and their states are state A = (sk, r A ) and state B = (sk, r B ) respectively. The adversary Eve can get bits of leakage on each of state A and state B , and therefore the secret key sk is no longer fully secure from her point of view. Alice and Bob wish to run a protocol to derive a fresh key k that looks (nearly) uniformly random to Eve. We study this problem in the information-theoretic setting.</p><p>The above problem is similar to that of privacy amplification [BB84, BBR88, Mau93, BBCM95], where Alice and Bob have a weakly random shared secret and want to agree on a (nearly) uniform key. The crucial difference is that privacy amplification allows Alice and Bob to sample fresh randomness, whereas our problem does not. In particular, the privacy amplification problem can be easily solved using a (strong) seeded randomness extractor Ext: Alice chooses a fresh random seed r A that she sends to Bob, and then both Alice and Bob set their key to be k = Ext(sk; r A ). However, this solution does not work in our setting if we think of r A as a part of Alice's state, since the adversary can then get leakage on k via leakage on state A = (sk, r A ).</p><p>Instead, we introduce a new primitive called a (strong) two-seed extractor where two seeds r A , r B are used to extract randomness k = Ext(sk; r A , r B ). We require that the extracted randomness looks uniform even to an adversary that gets partial leakage on each of the tuples (sk, r A ) and (sk, r b ) together with the seeds r A , r B . Such extractors do not seem to follow easily from standard (strong) seeded extractors or even two-source extractors. Instead, we construct two-seed extractors by drawing a new connection to communicationcomplexity lower bounds in the number-on-forehead model <ref type="bibr">[BNS92]</ref>. Using two-seed extractors, we can easily solve our problem by having Alice and Bob exchange the messages r A , r B respectively and having them agree on the new key k = Ext(sk; r A , r B ).</p><p>As our final result in this setting, we show that if Alice and Bob have a shared secret of length n, we get a scheme where the randomness r A , r B is of length O(n), we tolerate a leakage bound of = &#8486;(n), the exchanged key k is of length &#8486;(n), and the statistical distance from uniform is = 2 -&#8486;(n) . It remains an interesting open problem to optimize the constants in the scheme.</p><p>Public-Key Setting: A Negative Result. We next turn to studying leakage-resilient NIKE in the public-key setting, where the states of Alice and Bob consist of independent uniform randomness state A = r A and state B = r B with no shared key.</p><p>We begin by giving a black-box separation showing that such schemes cannot be proven secure via a black-box reduction under any "(single-stage) game-based assumption," when the leakage bound is super-logarithmic in the security parameter. Game-based assumptions are ones that can be expressed via a game between a (potentially inefficient) challenger and a stateful adversary, where any polynomial-time adversary should have at most a negligible advantage. In particular, this includes essentially all assumptions used in cryptography such as DDH and LWE, and even very strong assumptions such as the existence of indistinguishability obfuscation (iO). Our results rule out black-box reductions that treat the adversary as well as the leakage-functions as a black box, which is the case for all known positive results in leakage-resilient cryptography we are aware of. Our separation closely follows the framework of <ref type="bibr">[Wic13]</ref>, which gave similar separations for other leakage-resilient primitives (e.g., leakage-resilient injective one-way functions).</p><p>Pinpointing the above barrier allows us to look for ways to overcome it. We identify three avenues toward getting around the negative result, and follow them to get positive results.</p><p>Public-Key Setting: Small Leakage. The first and most obvious avenue is to consider small leakage, where is only logarithmic in the security parameter. Interestingly, some types of cryptosystems (e.g., one-way functions, signatures, public-key encryption, weak pseudorandom functions) are known to be automatically secure with small leakage while others (pseudorandom generators/functions, semantically secure symmetric-key encryption) are known not to be <ref type="bibr">[Pie09,</ref><ref type="bibr">DY13]</ref>. Where does leakage-resilient NIKE fit in? The work of <ref type="bibr">[DY13]</ref> gave a partial characterization of primitives that are automatically secure, but it does not appear to capture NIKE directly. Instead, we adapt the techniques of <ref type="bibr">[DY13]</ref> for our purposes and show that any NIKE protocol is automatically secure when the leakage is logarithmic. The result also extends to allowing larger leakage by assuming stronger (sub-exponential) security of the underlying NIKE.</p><p>As an example, this shows that the Diffie-Hellman key agreement is secure with small leakage: even if an adversary gets small leakage on r A and r B individually and then sees g r A , g r B , the exchanged key g r A r B is indistinguishable from uniform.</p><p>Public-Key Setting: CRS or Preprocessing. The other two avenues for overcoming the negative result require us to add some flexibility to our setting to make the black-box separation fail. We can consider schemes in the common reference string (CRS) model, where the honest parties as well as the adversary get access to a CRS generated from some specified distribution. Note that, in this setting, the leakage functions can depend on the CRS. Alternately, we can consider schemes with preprocessing, where Alice and Bob can individually preprocess their random coins to derive their secret states prior to leakage. In particular, instead of having the two states r A , r B consist of uniformly random coins, we allow r A &#8592; Gen(&#961; A ), r B &#8592; Gen(&#961; B ) to be sampled from some specified distribution using uniformly random coins &#961; A , &#961; B . We assume the adversary only gets leakage on the secret states r A , r B but not on the underlying random coins &#961; A , &#961; B used to sample them.</p><p>We construct a leakage-resilient NIKE using bilinear maps, which simultaneously requires a CRS and preprocessing. It can flexibly tolerate any polynomial leakage bound with states of size |r A |, |r B | = O( ). We prove security under either the subgroup decision assumption in composite-order bilinear groups or the decision-linear (DLIN) assumption in prime order groups. Interestingly, we rely on two-seed extractors, which solved the problem in the symmetric setting, as a crucial tool to aid our construction in the public-key setting.</p><p>We also give an alternate construction of leakage-resilient NIKE using indistinguishability obfuscation (iO) and lossy functions, which can be initialized with either just a CRS (without preprocessing) or just preprocessing (without a CRS). It can flexibly tolerate any polynomial leakage with states of size (2+o(1)) .</p><p>Other Related Work. Prior works have proposed constructions of leakage-resilient NIKE, albeit under a leak-free hardware assumption, which, in particular, gives both parties access to some (limited) leak-free randomness during the protocol execution <ref type="bibr">[CAR17a,</ref><ref type="bibr">CAR17b]</ref>. These results do not address the central goal of our work, which is for two parties to non-interactively agree on a shared key without relying on any fresh randomness after the leakage occurs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Technical Overview</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Symmetric-Key NIKE</head><p>We first consider the problem of leakage-resilient NIKE in the symmetric-key setting, where Alice and Bob start with a secret sk, and want to agree on a fresh uniform key k. We assume they each have internal randomness r A and r B , respectively. Here we want security to hold even given the protocol transcript together with leakages on the states of both Alice and Bob, state A = (sk, r A ) and state B = (sk, r B ), prior to the protocol execution. We study this problem in the information-theoretic setting.</p><p>We remark that the particular case when the messages sent by Alice and Bob consist of their entire randomness r A and r B corresponds to a natural notion of randomness extractors that we name (strong) two-seed extractors. Namely, a (strong) two-seed extractor Ext(x; r A , r B ) uses two seeds r A , r B to extract randomness from a high-entropy source x in a setting where the distinguisher gets leakages on (x, r A ) and (x, r B ), as well as the entire seeds r A and r B . Given such an extractor, Alice and Bob, sharing a secret key x = sk can send their individual randomness r A and r B respectively to each other and compute k = Ext(x; r A , r B ) as the exchanged key. Leakage resilience of this symmetric-key NIKE exactly follows from the security of the two-seed extractor described above.</p><p>We initially suspected that there should be simple solutions to the two-seed extractor problem via standard (strong) seeded extractors and/or two-source extractors. For example, we thought of applying a 2-source extractor on (r A , r B ) to derive a seed s = 2SourceExt(r A , r B ) and then plugging it into a strong seeded extractor to extract k = SeededExt(x; s). Our intuition was that the leakage would not be able to predict s and therefore could not leak any information on x that depends on s. However, we were unable to prove security of this candidate (or other simple variants). The problem is that, although the leakage cannot predict s, it can cause x to be correlated with s once r A , r B are made public. We leave it as an open problem to explore the possibility of this construction or some variant and either show it secure via a more complex argument or find counter-examples.</p><p>Instead, we construct two-seed extractors by leveraging a connection with communication complexity lower bounds in the number-on-forehead (NOF) model <ref type="bibr">[BNS92]</ref>. Such lower bounds were also recently used in the context of leakage-resilient secret sharing in <ref type="bibr">[KMS19]</ref>. At a high level, the NOF communication complexity of a boolean function f : (x 1 , &#8226; &#8226; &#8226; , x N ) &#8594; {0, 1} is the minimal transcript size required to predict f with noticeable probability, over protocols where every party can exactly see all the others parties' inputs (but not their own; imagine it is on their forehead), and where parties speak one at a time. A NOF lower bound says that no such communication protocol of transcript length is sufficient to predict the output of f on uniformly random inputs.</p><p>To see the connection with two-seed extractors, consider the case where N = 3 and think of x 1 = x, x 2 = r A , x 3 = r B . Then an NOF lower bound implies that small leakage on each of the tuples (x, r A ), (x, r B ), (r A , r B ) does not allow one to predict Ext(x; r A , r B ) def = f (x 1 , x 2 , x 2 ). However, in the setting of (strong) two-seed extractors, the adversary does not just get leakage on (r A , r B ) but rather gets the entire values r A , r B in full. We show that security is preserved in the latter setting. At a high level, if a distinguisher succeeds in the latter setting given r A , r B in full, then we could also run that distinguisher as the leakage on (r A , r B ) to distinguish in the former setting. This is not entirely accurate, since the distinguisher in the latter setting also expects to get the challenge value z which is either z = Ext(x; r A , r B ) or z uniform, while leakage on (r A , r B ) in the former setting cannot depend on z. However, we can remedy this by guessing z ahead of time and taking a statistical security loss proportional to the length of the extracted output.</p><p>Combining the above with explicit constructions of efficiently computable boolean functions f with high NOF communication complexity <ref type="bibr">[BNS92,</ref><ref type="bibr">Chu90]</ref>, we get two-seed extractors with |x| = |r A | = |r B | = n that tolerate = &#8486;(n) leakage and have security 2 -&#8486;(n) , but only extract 1 bit of output. We show a simple generic method to get output length m = &#8486;(n) by choosing m independent seeds r A = (r 1 A , . . . , r m A ), r B = (r 1 B , . . . , r m B ) and outputting Ext(x; r i A , r i B ) m i=1 . However, this leads to seed length &#8486;(n 2 ). We also give an alternate construction using the techniques of <ref type="bibr">[DEOR04]</ref> that relies on the linearity of the underlying 1-bit extractor and allows us to extract &#8486;(n) bits while preserving the seed length.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">A Black-Box Separation</head><p>In the public-key setting, we show that it is impossible to construct leakage-resilient NIKE with perfect correctness, and prove security via a black-box reduction from any single-stage game assumption (also called cryptographic games in <ref type="bibr">[HH09,</ref><ref type="bibr">Wic13]</ref>). An assumption is a single-stage game assumption if it can be written in the format of an interactive game between a (potentially inefficient) challenger and a single stateful adversary, where the challenger decides whether or not the adversary succeeded at the end of the game. The assumption states that no polynomial time adversary can succeed with better than negligible probability. (This is a more general class than falsifiable assumptions <ref type="bibr">[Nao03,</ref><ref type="bibr">GW11]</ref>, where the challenger is also required to be efficient.) Such single-stage game assumptions capture essentially all standard assumptions used in cryptography, such as the hardness of DDH, Factoring or LWE, as well as less standard assumptions such as the security of indistinguishability obfuscation iO.</p><p>However, the security definition for leakage-resilient NIKE (and most other leakage-resilient primitives) is not a single-stage game. This is because the adversary consists three separate components -the two leakage functions and the distinguisher -that cannot fully communicate together or keep arbitrary state between invocations. In particular, the distinguisher does not get to see the inputs given to the leakage functions as this would make its task trivial. It was already observed in <ref type="bibr">[Wic13]</ref> that this potentially allows us to separate some cases of leakage-resilient security from all single-stage game assumptions. However, it was only shown to hold for a few very select cases. For example, a black-box separation was given for leakage-resilient one-way permutations with sufficiently large leakage, but not for one-way functions; the latter can be easily constructed from any standard one-way function. Where does leakage-resilient NIKE fit in?</p><p>In this work, we use the framework of <ref type="bibr">[Wic13]</ref> to separate leakage-resilient NIKE from all single-stage game assumptions. In fact, our separation even rules out "unpredictable NIKE" where the adversary has to predict the entire exchanged key, rather than just distinguish it from uniform. The proof follows the "simulatable attacker paradigm". We construct an inefficient attacker A that breaks the security of the primitive using brute force. However, by constructing A carefully, we show that there also exists an efficient simulator S such that no (even inefficient) distinguisher can distinguish between black-box access to A versus S. The attacker A = (A.f A , A.f B , A.Pred) is a multi-stage attacker consisting of three separate entities which do not communicate or keep state between invocations: the two leakage functions A.f A , A.f B and the predictor A.Pred who predicts the exchanged key given the leakage and the protocol transcript. However, the simulator S = (S.f A , S.f B , S.Pred) is a single fully stateful entity and can remember any inputs given to S.f A , S.f B and use them to answer calls to S.Pred. Therefore, S is not a valid attacker on leakage-resilient NIKE. Nevertheless, if we had a black-box reduction from any single-stage assumption, then the reduction would have to break the assumption given black-box oracle access to A. However, since the reduction and the assumption challenger together cannot distinguish between black-box access to A versus S, the reduction would also break the assumption given the latter. But this means that the reduction together with S give a fully efficient attack against the assumption and therefore the assumption must be insecure to begin with!</p><p>The high level idea of how to construct A and S is simple. The leakage function A.f A gets as input Alice's randomness r A , computes the protocol message p A that Alice will send as a function of r A , and outputs a random -bit hash &#963; A = H(p A ) as the leakage. The leakage function A.f B works analogously. The predictor A.Pred(p A , p B , &#963; A , &#963; B ) gets the protocol messages p A , p B and the leakages &#963; A , &#963; B : it checks if &#963; A = H(p A ) and &#963; B = H(p B ) and if this does not hold it outputs &#8869;; otherwise, it performs a brute-force search on p A , p B to recover the exchanged key k and outputs it. We think of H as a completely random function, which is part of the description of the inefficient attacker A. The simulator S simulates the leakage queries to S.f A , S.f B by keeping a table of the inputs r A and r B that were queried so far and simulating H by choosing its outputs randomly on the fly for each new corresponding p A or p B . It simulates the predictor S.Pred(p A , p B , &#963; A , &#963; B ) by checking its table to see if it contains some values r A , r B that yield protocol messages p A , p B and on which the leakage functions outputted &#963; A , &#963; B respectively; if so, it uses these values to efficiently recover the exchanged key k and else it outputs &#8869;. If the key exchange has perfect correctness, then the only way to to distinguish between oracle access to A versus S is to "guess" some valid value &#963; A = H(p A ) or &#963; B = H(p B ) without querying the leakage functions, and the probability of this happening is 2 -. Therefore, if is super-logarithmic, then A and S are indistinguishable with polynomially many queries except with negligible probability.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Circumventing the Black-Box Separation</head><p>Unfortunately, we are not aware of any useful non-black-box techniques in the context of leakage-resilient cryptography. Therefore, to circumvent the black-box separation, we consider two options. First, we consider the case of small leakage, where is logarithmic in the security parameter. Second, we consider extensions of the basic NIKE setting that are not covered by the negative result.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.1">The Small Leakage Setting</head><p>Our black-box impossibility result holds whenever the size of the leakage is super-logarithmic in the security parameter. It also only applies to poly/negligible single-stage assumptions that require polynomial-time attackers to have negligible success probability, but does not extend to assuming stronger levels of security. We demonstrate that this dependence on leakage size is in fact "tight." In particular, we show that any NIKE that is secure in a setting without leakage is also automatically leakage-resilient when the leakage bound is logarithmic in the security parameter. This can be extended to leakage bound = &#969;(log &#955;) if the original NIKE has poly(2 )-security without leakage.</p><p>Similar results were previously known to hold for all unpredictability primitives (e.g., one-way functions, message-authentication codes, signatures, etc.), where the goal of the attacker is to win some game with non-negligible probability. In such cases, it is always possible to guess the small leakage and get a 2 loss in security. It is also known that similar positive results hold for some but not all indistinguishability primitives, where the goal of the attacker is to win some game with probability that is non-negligibly larger than 1/2. In particular, it holds for public-key encryption, CPA-secure symmetric-key encryption, and weak pseudorandom functions, but it does not hold for pseudorandom generators, pseudorandom functions, or one-time semantically secure symmetric-key encryption; in all of the latter cases even 1 bit of leakage can completely break security (see <ref type="bibr">[Pie09,</ref><ref type="bibr">DY13]</ref>). The aforementioned positive results can be proven using techniques due to [BDK + 11, DY13] showing that any indistinguishability primitive satisfying a so-called "square friendliness" property is resilient to small leakage. However, it is not a priori clear if these techniques apply to leakage-resilient NIKE.</p><p>To illustrate the difficulty, we briefly recall what it means for a generic (indistinguishability) primitive to be "square-friendly" in the sense of <ref type="bibr">[DY13]</ref>. Take an arbitrary partition of the challenger's random coins rand C into rand C = (rand fix C , rand exp C ) (e.g. for CPA-secure symmetric-key encryption, rand fix C could be the randomness of the secret key while rand exp C could be the challenge bit and the encryption randomness for chosen plaintext queries). The following "square-security" game is then defined with respect to this partition: an attacker (for the original primitive) is asked to play the standard security game twice, where in the first run the challenger samples both rand fix C and rand exp C at random as in the standard game, but in the second run, the challenger re-uses the same rand fix C coins and re-samples fresh rand exp C coins. The attacker wins the square-security game only if it obtains the same result in both runs (win-win or lose-lose); square-security holds if any efficient attacker's can only win the square-security game with probability negligibly greater than its chance of losing. <ref type="bibr">[DY13]</ref> refer to a primitive as "square-friendly" if standard security implies square security. As previously mentioned, <ref type="bibr">[DY13]</ref> prove that any square-friendly primitive with poly(2 )-security can withstand bits of leakage on rand fix C . In the NIKE setting, we would like to argue security even given leakage on r A and r B , where r A and r B and Alice and Bob's secret values. A naive attempt to invoke the [DY13] lemma might set rand fix C = (r A , r B ), but then leakage-resilience/square-friendliness cannot possibly hold since even 1 bit of leakage on rand fix C completely breaks security (simply leak the first bit of the shared key).</p><p>Instead, we take the following two-step approach. We first consider an alternate partitioning of the challenger's randomness where rand fix C = r A , and r B is now viewed as part of the experiment randomness rand exp C . Under this partitioning, the NIKE security experiment is square-friendly, but now the [DY13] lemma only implies security given leakage on r A alone.</p><p>To handle independent leakage on r A and r B , we consider yet another partitioning of the challenger's randomness. However, we start from a syntactically different NIKE security game -parameterized by leakage function f A -in which the attacker is given leakage f A (r A ) on Alice's random coins in addition to Alice and Bob's public values. By our previous argument, security of the original NIKE scheme implies security of this modified primitive provided f A has bounded-length outputs. Since we want to handle leakage on Bob's coins r B , we partition the challenger's random coins so that rand fix C = r B , and r A is now part of rand exp C . We prove that this is indeed square-friendly, so by <ref type="bibr">[DY13]</ref>, security holds with independent leakage on r A and r B .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.2">Adding Setups: CRS or Preprocessing</head><p>On an intuitive level, our black-box separation result went through because, when everything can leak, there is no meaningful place for a reduction to embed its challenge. We consider two settings with some additional setup that allows us to overcome the black-box separation, precisely by creating a place for the reduction to meaningfully embed a challenge.</p><p>The first such setting considers a NIKE scheme with a common reference string (CRS). We assume that the CRS is generated using some potentially secret, leak-free coins. The second setting considers NIKE where users preprocess their individual random coins to derive their secret state. In particular, instead of having the two secret states r A , r B consist of the uniformly random coins of Alice and Bob, we allow Alice and Bob to sample their internal secret states from some specified (secret coin) distribution by running r A &#8592; Gen(&#961; A ), r B &#8592; Gen(&#961; B ) on their secret random coins &#961; A , &#961; B respectively. The secret coins &#961; A , &#961; B are discarded afterwards, and Alice and Bob can run the NIKE protocol using only their preprocessed states r A , r B . We assume the adversary only gets leakage on the preprocessed states r A , r B but not on the underlying random coins &#961; A , &#961; B used to sample them. The above two settings give the reduction an opportunity to embed its challenge in either the CRS or in the states r A , r B without having to explain the underlying randomness.</p><p>Construction from Bilinear Maps. We first begin by constructing leakage-resilient NIKE in a model with both a CRS and preprocessing. We give two constructions. A simpler one under the subgroup decision assumption on composite-order groups with a bilinear map, and a slightly more complex one under the decision-linear assumption (DLIN) in prime-order groups with a bilinear map. We give a high-level overview of the first result.</p><p>The idea is inspired by "dual-system encryption" [Wat09, LW10, LRW11, . . . ]. In a nutshell, dual-system encryption allows us to switch regular ciphertexts and secret keys to so-called semi-functional counterparts, which individually look legitimate, but when "paired" together result in some randomness that is not dictated by the public key. In our case, we will switch the two states r A , r B to be semi-functional so that when Alice and Bob run the NIKE with these values, the exchanged key k has true entropy even given the corresponding protocol messages p A , p B . To convert such a key into a uniformly random one, we additionally apply a twoseed extractor on it, where Alice and Bob each supply one seed.</p><p>In more detail, our construction uses a source group G which is a cyclic of composite order N = p 1 p 2 , so that it can be decomposed using the Chinese Remainder Theorem into G G p1 &#215; G p2 , where G p1 and G p2 are cyclic of prime order p 1 and p 2 respectively. In our construction, everything happens in the subgroup G p1 . The CRS consists of two elements g &#8592; G p1 , h = g x &#8712; G p1 where x &#8592; Z N . The secret states of Alice and Bob are pairs of group elements</p><p>The key exchange protocol consists of Alice sending p A = g a and Bob sending p B = g b . The exchanged key is set to k = e(g, h) ab which can be computed by Alice as e(p B , h a ) and by Bob as e(p A , h b ). Note that, both the CRS and secret states of Alice and Bob in the above construction, are sampled from some distributions using secret coins (namely the group G, and the exponents x, a and b) that we assume do not leak.</p><p>To argue leakage-resilience, we switch the secret states r A , r B to being sampled from the whole group G rather than the subgroup G p1 . Namely, the whole execution of the NIKE is indistinguishable from sampling</p><p>and setting r A = (u a , v a ) and r B = (u b , v b ), while still keeping the CRS elements g &#8592; G p1 and h = g x &#8712; G p1 in the subgroup. Indistinguishability follows from a standard subgroup decision assumption, even if the adversary gets to see the entire secret states r A , r B in full.</p><p>With the above change, even if an adversary sees the CRS (g, h = g x ) and the protocol transcript (p A = u a , p B = u b ), the value of x mod p 2 is uniformly random since h = g x only reveals x mod p 1 . Therefore the exchanged key k = e(u b , v a ) = e(u a , v b ) = e(u, v) ab = e(u, u) xab also has log p 2 bits of entropy conditioned on the above. This means that given bits of leakage on each of r A , r B , the exchanged key k has log p 2 -2 bits of entropy. As mentioned previously, we can upgrade this to a scheme where the exchanged key is indistinguishable from uniform under leakage, by adding the two seeds of a two-seed extractor to the states of Alice and Bob respectively, and having them exchange these seeds during the protocol and use them to extract randomness from k as their final exchanged key.</p><p>To allow for a larger leakage bound , we can either choose a larger prime p 2 , or we can execute many copies of this protocol in parallel. Overall, the scheme can flexibly tolerate any polynomial leakage bound while keeping the size of Alice's and Bob's secret states bounded by O( ).</p><p>Constructions from Indistinguishability Obfuscation. We also give a construction from indistinguishability obfuscation (iO) and lossy functions (which can be instantiated from either DDH or LWE <ref type="bibr">[PW08]</ref>). This construction can be initialized with either just a CRS (without preprocessing) or just preprocessing (without a CRS). Let us start with the CRS version of the scheme. The idea starts with the construction of (multiparty) NIKE from iO due to Boneh and Zhandry <ref type="bibr">[BZ14]</ref>. Each party has randomness r and sets its protocol message to p = G(r) where G is some function that we specify later. The CRS includes an obfuscated program that has a hard-coded PRF F : it takes as input two protocol messages p A , p B and r, and checks that either p A = G(r) or p B = G(r); if so it outputs an evaluation of the PRF F (p A , p B ) and else it outputs &#8869;. It is easy to see that this gives correctness.</p><p>To argue security, we will set G to be a function whose description is a part of the CRS and can be indistinguishably created in either lossy or injective mode. We puncture the PRF F on the point (p A , p B ) and program a random output k. But instead of hard-coding k directly, we hard-code k &#8853; r A and k &#8853; r B ; i.e., two one-time pad encryptions of k under r A and r B respectively. This allows the obfuscated program to decrypt k given either r A or r B and so preserves correctness. But now we can switch G to lossy mode and argue that even given the obfuscated program with the hard-coded ciphertexts, the protocol transcript, and the leakages on r A , r B , the exchanged key k has high entropy. We can then convert this into a uniformly random exchanged key by additionally applying a two-seed extractor on top. (Our actual construction does something slightly more complicated to avoid two-seed extractors and gets better parameters via standard seeded extractors.)</p><p>The above can also be converted into a scheme with preprocessing and without a CRS. In this case, Alice creates the obfuscated program as part of the preprocessed state and sends it as her protocol message. Furthermore, instead of putting the description of G in the CRS, we will have each of Alice and Bob sample different functions G 1 , G 2 that they send as part of their messages and are used as inputs to the obfuscated program; the obfuscated program also adds them to the input on which it evaluates the PRF</p><p>Open Problem: Imperfect Correctness? We note that our black-box separation result could also potentially be circumvented by NIKE schemes with imperfect correctness. We leave it as an interesting open problem whether one could leverage imperfect correctness to construct a leakage-resilient NIKE (without a CRS or preprocessing) that could provably withstand large leakage under some single-stage assumptions (e.g., even under iO).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Preliminaries</head><p>Basic Notation. For an integer N , we let [N ] := {1, 2, . . . , N }. For a set S we let x &#8592; S denote sampling x uniformly at random from S. For a distribution D we let x &#8592; D denote sampling x according to the distribution. We will denote the security parameter by &#955;. We say a function f (&#955;) is negligible, denoted</p><p>Information Theory. For two random variables X, Y with support supp(X) and supp(Y ) respectively, we define their statistical distance SD(X, Y ) as</p><p>For two random variables X, Y with statistical distance SD(X, Y ) &#8804; , we will sometimes use the shorthand</p><p>We will occasionally denote this as X &#8776; S Y .</p><p>The min-entropy H &#8734; (X) of a random variable X is defined as</p><p>A random variable X with min-entropy k is referred to as a k-source. When X is supported over {0, 1} n , we refer to it as an (n, k)-source. We denote the uniform distribution over {0, 1} n by U n .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Definition 3.1 (Strong Seeded Extractors). An efficient function</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Background on Bilinear Maps</head><p>We review some definitions pertaining to bilinear maps, adapted from <ref type="bibr">[LW10]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.1">Composite-Order Bilinear Groups</head><p>Let G(1 &#955; ) be a group generator, which outputs the description of a pairing-friendly group G = (G, G T , N = p 1 p 2 , e), where G and G T are cyclic groups of order N , and p 1 , p 2 are distinct primes of bit-size &#8486;(&#955;), and e : G &#215; G &#8594; G T is an efficiently computable bilinear map, that satisfies:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">(Non-degeneracy):</head><p>There exists g &#8712; G such that e(g, g) &#8712; G T has order N .</p><p>We will assume that the descriptions of G and G T include respective generators. We also assume that the random coins of G reveal the factorization N = p 1 p 2 . 1 We will denote by G p1 and G p2 the subgroups of G of order p 1 and p 2 , respectively. Observe that any g &#8712; G p1 and any h &#8712; G p2 are "orthogonal" with respect to e, i.e. e(g, h) is the identity element in G T . Assumption 3.2. Let G(1 &#955; ) be a group generator. We define the following distributions:</p><p>We say that G satisfies Assumption 3.2 if for all PPT adversaries A:</p><p>1 More generally, the ability to sample uniformly from Gp 1 given the random coins of G would suffice for our purposes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.2">Prime-Order Bilinear Groups</head><p>Similarly to Section 3.1.1, let G(1 &#955; ) be a (prime-order) group generator, which outputs the description of a pairing-friendly group G = (G, G T , p, e), where G and G T are cyclic groups of prime order p &#8805; 2 &#8486;(&#955;) , and e : G &#215; G &#8594; G T is an efficiently computable bilinear map, that satisfies bilinearity and non-degeneracy.</p><p>Assumption 3.3 (Decision Linear Assumption (DLIN) <ref type="bibr">[BBS04]</ref>). Let G be a (prime-order) group generator. We define the following distribution:</p><p>We say that G satisfies the DLIN assumption if for all PPT adversaries A:</p><p>For a group generator g &#8712; G of order p, we will denote for any scalar a &#8712; Z p , [a] g := g a . This notation generalizes to vectors and matrices over Z p . In particular, given [A] g and [B] g and C, where A, B, C &#8712; Z n&#215;n p , one can efficiently compute [AC] g , [CA] g and e(g, g) AB .</p><p>In our constructions, we will actually use the following assumption, that is known to follow from DLIN [NS09]: Assumption 3.4 (Matrix 2-linear assumption <ref type="bibr">[NS09]</ref>). Let G be a (prime-order) group generator. Let Rk n&#215;m i (Z p ) be the set of matrices of dimension n &#215; m of rank i over Z p . We say that the Matrix 2-linear assumption holds if for all PPT adversaries A:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Indistinguishability Obfuscation</head><p>The following definition is taken verbatim from [GGH + 13].</p><p>Definition 3.5 (Indistinguishability Obfuscation (iO)). A uniform PPT machine iO is called an indistinguishability obfuscator for a circuit class {C &#955; } if the following conditions are satisfied:</p><p>&#8226; For all security parameters &#955; &#8712; N, for all C &#8712; C &#955; , for all inputs x, we have that</p><p>&#8226; For any (not necessarily uniform) PPT distinguisher D, there exists a negligible function such that the following holds: For all security parameters &#955; &#8712; N, for all pairs of circuits</p><p>Definition 3.6 (iO for P/poly). For any &#955; &#8712; N, let {C &#955; } denote the class of all circuits of size at most &#955;.</p><p>Then iO is an indistinguishability obfuscator for P/poly if it is an indistinguishability obfuscator for {C &#955; } for all &#955; &#8712; N.</p><p>We currently do not know how to build iO from any standard cryptographic assumption, but there are a number of unbroken candidate iO constructions in the literature [BGMZ18, CVW18, GJK18, AJL + 19, BDGM20].</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Puncturable PRFs</head><p>Definition 3.7 (Puncturable PRFs [BW13, KPTZ13, BGI14]). A puncturable PRF pPRF over input space X and output space Y consists of efficient algorithms pPRF = (KeyGen, Puncture, Eval) with the following syntax:</p><p>&#8226; KeyGen(1 &#955; ): on input a security parameter, outputs a PRF key k.</p><p>&#8226; Puncture(k, x): on input a PRF key k and an input x, outputs a punctured key k{x}.</p><p>&#8226; Eval k (x) is a deterministic algorithm parameterized by a PRF key k, which takes as input x and outputs some y.</p><p>We require the following properties from a puncturable PRF:</p><p>Functionality Preservation under Puncturing. We have for all k &#8592; pPRF.KeyGen, x and k{x} &#8592; pPRF.Puncture(k, x):</p><p>Pseudorandomness on Punctured Points. For all x &#8712; X and any PPT adversary A, we have:</p><p>where k &#8592; pPRF.KeyGen(1 &#955; ), k{x} &#8592; pPRF.Puncture(k, x), and y &#8592; Y.</p><p>We have (explicit) constructions of puncturable PRFs from one-way functions [GGM86, BW13, KPTZ13, BGI14]. &#8226; Inj(1 &#955; ) is a randomized algorithm which outputs an injective function evaluation key ek.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Lossy Functions</head><p>&#8226; Lossy(1 &#955; ) is a randomized algorithm which outputs a lossy function evaluation key ek.</p><p>&#8226; Eval ek (x) is a deterministic algorithm parameterized by an evaluation key ek which takes as input</p><p>x &#8712; {0, 1} n and outputs some y &#8712; {0, 1} m .</p><p>We require a lossy function to satisfy the following properties:</p><p>&#8226; The function Eval ek (&#8226;) where ek &#8592; LF.Inj(1 &#955; ) is injective with probability 1 -negl(&#955;).</p><p>&#8226; The function Eval ek (&#8226;) where ek &#8592; LF.Lossy(1 &#955; ) has image size at most 2 n-k with probability 1-negl(&#955;).</p><p>In particular x &#8592; {0, 1} n has at least k bits of min-entropy given Eval ek (x).</p><p>&#8226; The evaluation keys ek inj &#8592; LF.Inj(1 &#955; ) and ek los &#8592; LF.Lossy(1 &#955; ) are computationally indistinguishable.</p><p>Instantiations from Standard Assumptions. <ref type="bibr">[AKPW13]</ref> show that under the LWE ,q,&#967; , where is the LWE dimension, &#967; is a &#946;-bounded error distribution and q &#8805; poly(n, &#946;, , p) for parameters n, p and some fixed polynomial, there exists a (n log q, ( + &#955;) log q, n log p) lossy (trapdoor) function.</p><p>From DDH, we can use the following construction of a lossy function [FGK + 13] for our purposes: an injective evaluation key is a matrix of group elements [A] g where A is full rank, and a lossy evaluation key is a matrix of group elements [A] g where A is of rank 1. To evaluate on an input x &#8712; Z n p where p is the order of the ambient group G, we compute [A &#8226; x] g . In particular we do not need x have small coefficients as we do not need any trapdoor property of the lossy function. This gives a (n log p, (n -1) log p, n|g|)-lossy function, where |g| denotes the size of the bit-representation of a group element.</p><p>4 Leakage-Resilient NIKE in the Symmetric-Key Setting</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Definitions</head><p>We first define leakage-resilient NIKE in the symmetric setting, where both parties share a common secret key with sufficiently high min-entropy. Definition 4.1 (Symmetric-Key Leakage-Resilient NIKE). A symmetric-key NIKE protocol sk-NIKE with secret key space SK, private state space R, public message space P and output key space K consists of the algorithms:</p><p>&#8226; Publish(sk, r) is a deterministic algorithm which takes as input a secret key sk &#8712; SK, a private state r &#8712; R and outputs a public message p &#8712; P.</p><p>&#8226; SharedKey(sk, r, p) takes as input a secret key sk &#8712; SK, a private state r &#8712; R and a public message p &#8712; P, and outputs a key K &#8712; K.</p><p>We require sk-NIKE to satisfy the following properties.</p><p>Perfect Correctness. An sk-NIKE = (Publish, SharedKey) protocol is perfectly correct if for all secret keys sk &#8712; SK and all private states r A , r B &#8712; R:</p><p>where p A = Publish(sk, r A ) and p B = Publish(sk, r B ).</p><p>Information-Theoretic Leakage Resilience. We say that a symmetric-key NIKE protocol is (k, , )secure if for any distribution L such that H &#8734; (L) &#8805; k and all (potentially inefficiently computable) functions f A , f B : SK &#215; R &#8594; {0, 1} , we have:</p><p>where sk &#8592; L, r A , r B &#8592; R, p A = Publish(sk, r A ), p B = Publish(sk, r B ), K 0 = SharedKey(sk, p A , r B ), and</p><p>Definition 4.2 (Leakage Rate). For a (k, , )-secure symmetric-key NIKE, we define its leakage rate as max r&#8712;R |r| .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Two-Seed Extractors</head><p>We consider a new type of extractor called a two-seed extractor which suffices to construct leakage-resilient symmetric-key NIKE.</p><p>Definition 4.3 (Two-Seed Extractors). A (k, 2 )-two-seed extractor Ext(X; R, S) : {0, 1} n &#215; {0, 1} d1 &#215; {0, 1} d2 &#8594; {0, 1} m with error is an efficient function such that for all (potentially inefficient) leakage functions f : {0, 1} n &#215; {0, 1} d1 &#8594; {0, 1} a , g : {0, 1} n &#215; {0, 1} d2 &#8594; {0, 1} b with a + b = 2 , and any (n, k)source X, we have:</p><p>where R, S are independent uniform random bits of length d 1 and d 2 respectively.</p><p>Remark 4.4. Our definition of a two-seed extractor corresponds to strong two-seed extractors in the sense that the output is close to uniform even given the two seeds R and S. For simplicity, when we say a two-seed extractor in this paper, we always mean a strong two-seed extractor. Without the "strong" condition, a two-seed extractor is implied by any two source extractor on R and S.</p><p>Remark 4.5. For all applications in this paper, we only need two-seed extractors for full entropy k = n. However such a construction also trivially implies a two-seed extractor for min-entropy k where the error becomes 2 n-k .</p><p>Claim 4.6. Any (k, 2 )-two-seed extractor Ext with error induces a symmetric-key NIKE that is (k, , )secure.</p><p>Proof. Let Ext be a (k, 2 )-two-seed extractor Ext : {0, 1} n &#215; {0, 1} d1 &#215; {0, 1} d2 &#8594; {0, 1} m with leakage size 2 and error . We can construct an sk-NIKE as follows. Let the secret key space SK be {0, 1} n , let both the private state space R and the public message space P be {0, 1} min(d1,d2) , and let the key space K be {0, 1} m . Suppose without loss of generality that d 1 &#8805; d 2 . Define Publish(sk, r) = r &#8712; {0, 1} d2 and SharedKey(sk, r, p) = Ext(sk, (r 0 d1-d2 ), p). Then any (potentially unbounded) distinguisher for sk-NIKE is a distinguisher for Ext with the same advantage .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Construction</head><p>We show how to construct two-seed extractors from what we call BCP extractors, which are first studied implicitly in <ref type="bibr">[BNS92]</ref> and then explicitly defined in <ref type="bibr">[KMS19]</ref>.<ref type="foot">foot_0</ref> Looking ahead, we will build both twoseed extractors and symmetric-key NIKE that satisfy slightly stronger security definitions than standard leakage-resilience (Definition 4.8 and Definition 4.9). We first recall the definition of a bounded collusion protocol, following <ref type="bibr">[KMS19]</ref>.</p><p>Definition 4.7 (Bounded Collusion Protocol (BCP) <ref type="bibr">[KMS19]</ref>). An (interactive, potentially randomized) communication protocol &#960; among N parties is called a (p, N, &#181;)-bounded collusion protocol (BCP) if:</p><p>&#8226; the N parties start the protocol with input X 1 , . . . , X N , and the transcript &#964; is empty at the beginning of the protocol;</p><p>&#8226; there is a function Next(&#964; ) &#8594; S takes as input a (partial) transcript &#964; , and outputs either a set S &#8834; [N ] with |S| &#8804; p along with a function g, or &#8869;;</p><p>&#8226; at each round with current transcript &#964; , the protocol computes Next(&#964; ). If Next(&#964; ) = (S, f ), the message g({X i } i&#8712;S ) is appended to the current transcript &#964; ; otherwise the protocol stops and outputs &#964; as the final transcript.</p><p>&#8226; the final transcript &#964; has size at most &#181;.</p><p>We say that a (p, N, &#181;)-BCP &#960; -computes a (deterministic) boolean function f : (X 1 , . . . , X N ) &#8594; b &#8712; {0, 1} if there exists a (potentially unbounded) predictor P, given a BCP transcript &#964; of &#960;, that computes b with probability 1/2 + (over the randomness of {X i } i , &#960; and P).</p><p>In this section, we will actually build a two-seed extractor with a stronger security property than Definition 4.3; namely, it remains secure against leakages computed as 3-party BCP transcripts over inputs X, R, S. This results in a symmetric-key NIKE that is secure against the same type of leakage, by directly adapting Claim 4.6. Definition 4.8 (Two-Seed Extractors with BCP Leakage Resilience). A (k, 2 )-two-seed extractor Ext(X; R, S) : {0, 1} n &#215; {0, 1} d1 &#215; {0, 1} d2 &#8594; {0, 1} m with error is an efficient function such that for all (1, 2, 2 )-BCP protocol &#960; : ({0, 1} n &#215; {0, 1} d1 ) &#215; ({0, 1} n &#215; {0, 1} d2 &#8594; {0, 1} 2 and any (n, k)-source X, we have:</p><p>where R, S are independent uniform random bits of length d 1 and d 2 respectively. Definition 4.9 (Symmetric-Key NIKE with BCP Leakage Resilience). We say that a symmetric-key NIKE sk-NIKE = (Publish, SharedKey) is (k, , )-secure against interactive leakages if for any distribution L such that H &#8734; (L) &#8805; k all (1, 2, 2 )-BCP protocol &#960;((sk, r A ), (sk, r B )) (Definition 4.7), we have: (p A , p B , &#960;((sk, r A ), (sk, r B )), K 0 ) &#8776; (p A , p B , &#960;((sk, r A ), (sk, r B )), K 1 ), where sk &#8592; L, r A , r B &#8592; R, p A = Publish(sk, r A ), p B = Publish(sk, r B ), K 0 = SharedKey(sk, p A , r B ), and K 1 &#8592; K. Definition 4.10 (BCP Extractor). Let X 1 , &#8226; &#8226; &#8226; , X N be N independent (n, k)-sources. Let &#960; be a (possibly randomized) (p, N, &#181;)-BCP and &#960;(X 1 , &#8226; &#8226; &#8226; , X N ) be the transcript. A deterministic function Ext : ({0, 1} n ) N &#8594; {0, 1} m is an (n, k, p, N, &#181;)-BCP extractor with error if</p><p>Definition 4.11. The -distributional communication complexity of a Boolean function f : ({0, 1} n ) N &#8594; {0, 1}, C (f ) in a (p, N ) bounded collusion model, is the minimum number &#181; of any (p, N, &#181;)-BCP that -computes f . Using the standard argument that unpredictability is the same as indistinguishability for any 1-bit random variable, we have the following theorem.</p><p>Theorem 4.12. A Boolean function f : ({0, 1} n ) N &#8594; {0, 1} with C (f ) &#8805; &#181; + 1 gives an (n, n, p, N, &#181;)-BCP extractor with error , and vice versa.</p><p>Next we show that any (n, k, p, N, &#181; + 1)-BCP extractor with sufficiently small error must be strong in any subset of p sources if the transcript size is at most &#181;. Theorem 4.13. Suppose Ext : ({0, 1} n ) N &#8594; {0, 1} m is an (n, k, p, N, &#181; + 1)-BCP extractor with error . Then for any (p, N, &#181;)-BCP transcript &#960;(X 1 , &#8226; &#8226; &#8226; , X N ) and any subset S &#8834; [N ] with |S| = p, we have</p><p>where X S = {X i , i &#8712; S}.</p><p>Proof. Assume that there exists a set S &#8834; [N ], a transcript &#960;(X 1 , &#8226; &#8226; &#8226; , X N ) of a (p, N, &#181;)-BCP, and a distinguisher D such that</p><p>Let V be a uniformly random m-bit string, and consider the following (p, N, &#181; + 1)-BCP where the transcript is (&#960;</p><p>and outputs a uniformly random bit otherwise. We have</p><p>However, note that the new protocol is a (p, N, &#181; + 1)-BCP, thus we have 2 -m &#8804; . This means that &#8804; 2 m &#8226; .</p><p>In the case of p = N -1, BCP extractors with one bit of output are equivalent to hard functions in the number-on-forehead (NOF) communication model. The communication in the NOF model is exactly an (N -1, N, &#181;)-BCP, and thus we can use the results in <ref type="bibr">[BNS92]</ref> on hard functions in the NOF model. Specifically, <ref type="bibr">[BNS92]</ref> showed two explicit functions that are hard in the NOF model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Generalized Inner Product (GIP) : GIP</head><p>iff the number of positions where all the x i 's have 1 is odd.</p><p>x i is a quadratic residue mod p.</p><p>Theorem 4.14. In the NOF model with N parties, we have 1. <ref type="bibr">[BNS92]</ref> For any n-bit long prime number p, C (QR) = &#8486;( n 2 N + log ). 2. [Chu90] C (GIP) = &#8486;( n 2 N + log ). Using this theorem together with Theorem 4.12, we obtain explicit, efficient BCP extractors, which are also two-seed extractors by Theorem 4.13 with N = 3: Theorem 4.15. There exist explicit constructions of (n, )-two-seed extractors Ext : {0, 1} n &#215; {0, 1} n &#215; {0, 1} n &#8594; {0, 1}, with leakage size = &#8486;(n) and error = 2 -&#8486;(n) .</p><p>We would like to get more output bits. Below we show two different methods to achieve this. The first method is quite general and applies to any two-seed extractor, while the second method achieves better seed length but only applied to the GIP extractor.</p><p>Construction 1: Take any two-seed extractor Ext which outputs one bit, choose m independent copies of seeds (R 1 , &#8226; &#8226; &#8226; R m ) and another independent copy of seed S.</p><p>We have the following lemma.</p><p>Lemma 4.16. If Ext is a (k, + m)-two-seed extractor with error , then Construction 1 gives a (k, )-twoseed extractor with error m .</p><p>. We show that for any i,</p><p>To see this, first fix all the R j 's except R i . Note that after this fixing, (R i , S) are still independent and uniform. Further note that conditioned on this fixing, L 1 becomes a deterministic function of X and R i , while L 2 is a deterministic function of X and S. Now Z -i can be viewed as an extra deterministic leakage from (X, S) with size m -1 and therefore the total size of leakage is at most m + .</p><p>Thus we have</p><p>Now a standard hybrid argument implies that</p><p>This gives the following theorem.</p><p>Theorem 4.17. There exist explicit constructions of (n, )-two-seed extractors Ext : {0, 1} n &#215; {0, 1} mn &#215; {0, 1} n &#8594; {0, 1} m with leakage size = &#8486;(n), error = 2 -&#8486;(n) and output length m = &#8486;(n). One seed has length mn and the other has length n.</p><p>Next we show a construction that uses smaller seed length. First we recall the following lemma from <ref type="bibr">[DEOR04]</ref>.</p><p>Lemma 4.18. [DEOR04] For any number n, there exists an explicit construction of n matrices A 1 , &#8226; &#8226; &#8226; , A n , where each A i is an n &#215; n matrix over F 2 , such that for any S &#8838; [n] with S = &#8709;, we have that i&#8712;S A i has full rank.</p><p>We can now describe our second construction.</p><p>Construction 2: Let Ext be the two-seed extractor constructed from GIP 3,n . For some m &lt; n, let A 1 , &#8226; &#8226; &#8226; , A m be the first m matrices from Lemma 4.18. Let the seed be (R,</p><p>To analyze the lemma we will use a standard XOR lemma.</p><p>Lemma 4.19. <ref type="bibr">[Gol11]</ref> For any m-bit random variable T , we have:</p><p>where T &#8226; a denotes the inner product of T and a over F 2 .</p><p>We have the following lemma.</p><p>Lemma 4.20. Construction 2 gives an (n, )-two-seed extractor with leakage size = &#8486;(n) and error = 2 m-&#8486;(n) .</p><p>Proof. Let the leakage be L 1 = f (X, R) and L 2 = g(X, S). For any a &#8712; {0, 1} m with a = 0 m , let S a &#8838; [m] denote the set of indices of a where the corresponding bit is 1. Then S a = &#8709;. Observe that</p><p>where = 2 -&#8486;(n) . By Markov's inequality, with probability 1 -&#8730; over the fixing of (L 1 , L 2 , R, S), we have that Z &#8226; a is &#8730; -close to uniform. By a union bound, with probability 1 -2 m &#8730; over the fixing of (L 1 , L 2 , R, S), we have that for all a &#8712; {0, 1} m with a = 0 m , Z &#8226; a is &#8730; -close to uniform. When this happens, by Lemma 4.19 we have that</p><p>Thus overall we have that</p><p>where</p><p>This yields the following theorem.</p><p>Theorem 4.21. There exist explicit constructions of (n, )-two-seed extractors Ext : {0, 1} n &#215; {0, 1} n &#215; {0, 1} n &#8594; {0, 1} m with leakage size = &#8486;(n), error = 2 -&#8486;(n) and output length m = &#8486;(n). Each seed has length n.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Definitions for Leakage-Resilient NIKE in the Public-Key Setting</head><p>We define NIKE in the public-key setting.</p><p>Definition 5.1 (Non-Interactive Key Exchange). A Non-Interactive Key Exchange NIKE over parameter space C, state space R, public message space P and key space K consists of the following efficient algorithms:</p><p>&#8226; Setup(1 &#955; ) is a randomized algorithm that takes as input the security parameter 1 &#955; and outputs public parameters params &#8712; C.</p><p>&#8226; Gen(params) is a randomized algorithm that takes as input public parameters params &#8712; C and outputs a state r &#8712; R.</p><p>&#8226; Publish(params, r) is a deterministic algorithm that takes as input public parameters params &#8712; C and a state r &#8712; R and outputs a public message p &#8712; P.</p><p>&#8226; SharedKey(params, r, p) is a deterministic algorithm that takes as input public parameters params &#8712; C, a state r &#8712; R and a public message p &#8712; P, and outputs a key K &#8712; K.</p><p>For notational simplicity, we will omit the input params from these algorithms in the rest of the paper. We require a NIKE protocol to satisfy the two following properties:</p><p>Perfect Correctness. We say that NIKE is perfectly correct if, over the randomness of Setup and Gen:</p><p>where params &#8592; Setup(1 &#955; ), r A &#8592; Gen(params), p A = Publish(r A ), r B &#8592; Gen(params), p B = Publish(r B ).</p><p>Security Against -bit Leakage. We say that a NIKE protocol is secure against -bit leakage if for all PPT distinguishers D, and for all efficiently computable leakage functions f A , f B : C &#215; R &#8594; {0, 1} , we have (where we omit also params as an input to the distinguisher D and the leakage functions f A , f B in the rest of the paper):</p><p>where params &#8592; Setup(1 &#955; ), r A &#8592; Gen(params), p A = Publish(r A ), r B &#8592; Gen(params), p B = Publish(r B ), K 0 = SharedKey(r A , p B ), and K 1 &#8592; K.</p><p>Default Definition versus Variants. We define several variants of NIKE depending on whether the Setup algorithm and the Gen algorithm just output uniformly random coins or sample from some more complex distribution. By default, we will only allow them to output uniformly random coins, which means that the leakage can depend on all of the random coins used by the scheme and there is no reliance on leak-free randomness. In particular, we say that a NIKE scheme is:</p><p>&#8226; a plain NIKE (default), if both Setup(1 &#955; ) and Gen(params) just output (some specified number of) uniformly random bits. In particular Setup(1 &#955; ; &#961; S ) = &#961; S and Gen(params; &#961; G ) = &#961; G . In this case, we will often exclude the algorithms Setup, Gen from the description of NIKE.</p><p>&#8226; a NIKE in the common reference string model, if the algorithm Setup(1 &#955; ) can be arbitrary (sample from an arbitrary distribution). Note that this means that we rely on leak-free randomness to run the Setup algorithm.</p><p>&#8226; a NIKE in the preprocessing model, if the algorithm Gen(params) can be arbitrary (sample from an arbitrary distribution). Note that this means we rely on leak-free randomness to generate the states r A , r B of each party before the protocol starts (but we do not rely on any additional leak-free randomness during the protocol execution).</p><p>&#8226; a NIKE in the common reference string and preprocessinf model, if both the algorithms Setup, Gen can be arbitrary (sample from an arbitrary distribution).</p><p>As in the symmetric-key setting, we will also consider an alternative (and stronger) notion of leakage resilience against BCP leakage (refer to Definition 4.7 for the definition of a Bounded Collusion Protocol (BCP)).</p><p>We say that a BCP protocol &#960; is efficient if Next is computable in polynomial time, and all functions g output by Next are computable in polynomial time.</p><p>In the following, the total leakage L is now the transcript of an efficient BCP protocol &#960;((params, r A ), (params, r B )). In particular, each message of the transcript might depend on the transcript produced so far. Definition 5.2 (Security Against BCP Leakage). We say that NIKE = (Setup, Gen, Publish, SharedKey) is (k, )-secure against interactive leakage if for all PPT distinguishers D and all efficient (1, 2, 2 )-BCP protocols &#960;((params, r A ), (params, r B )) (Definition 4.7), we have:</p><p>where params &#8592; Setup(1 &#955; ), r A &#8592; Gen(params), p A = Publish(r A ), r B &#8592; Gen(params), p B = Publish(r B ), K 0 = SharedKey(r A , p B ), K 1 &#8592; K, and L is the transcript produced by &#960;(params, r A , r B ).</p><p>Similarly, we will omit params as in input of &#928; in the rest of the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">A Black-Box Separation</head><p>In this section, we show a broad black-box separation result, which rules out any efficient black-box reduction from any single-stage assumption to the leakage-resilience of plain NIKE with sufficiently large leakage.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1">Single-Stage Assumptions</head><p>Roughly following <ref type="bibr">[HH09,</ref><ref type="bibr">Wic13]</ref>, we define single-stage (game-based) assumptions (also called cryptographic games). For comparison, single-stage assumptions differ from falsifiable assumptions [Nao03, GW11] as challengers can be potentially unbounded.</p><p>Definition 6.1 (Single-Stage Assumption). A single-stage assumption consists of an interactive (potentially inefficient, stateful) challenger C and a constant c &#8712; [0, 1). On security parameter &#955;, the challenger C(1 &#955; ) interacts with a (stateful) machine A(1 &#955; ) called the adversary and may output a special symbol win. If this occurs, we say that A(1 &#955; ) wins C(1 &#955; ). The assumption associated with the tuple (C, c) states that for any PPT adversary A, we have</p><p>where the probability is over the random coins of C and A.</p><p>Which assumptions are not single-stage? The definition above seems to cover all most common cryptographic assumptions, so one can naturally ask which assumptions our black-box impossibility does not cover. An example of a multi-stage assumption is the leakage resilience of NIKE itself (defined in Section 5)! In particular, one can equivalently define leakage-resilience as a two-stage game, where the adversary is split into two distinct entities: a leaker that produces the leakages f A (r A ), f B (r B ), and a distinguisher that uses this leakage to distinguish the final key from uniform. Unlike the leaker, the distinguisher in that game does not see the secret states r A , r B , and the only state kept by the adversary between the two stages are the leakages f A (r A ) and f B (r B ).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">Separating Leakage-Resilient NIKE from Single-Stage Assumptions</head><p>Next, we recall the notion of black-box reductions.</p><p>Definition 6.2 (Black-Box Reduction). A black-box reduction showing the leakage-resilience (for -bit leakage) of NIKE based on a single-stage assumption (C, c) is an efficient oracle-access machine R(&#8226;) such that, for every (possibly inefficient, non-uniform) distinguisher D to the NIKE with (possibily inefficient, non-uniform) leakage functions f A , f B : R &#8594; {0, 1} , the machine R D,f A ,f B breaks the assumption (C, c).</p><p>We are ready to state our black-box impossibility result.</p><p>Theorem 6.3 (Black-Box Separation). Let = &#969;(log &#955;). Let NIKE = (Publish, SharedKey) be a candidate plain NIKE satisfying perfect correctness. Then for any single-stage assumption (C, c), one of the following must hold:</p><p>&#8226; There is no black-box security reduction showing the leakage resilience of NIKE against -bit leakages based on the assumption (C, c).</p><p>Proof. Our proof strategy closely follows the ideas of <ref type="bibr">[Wic13]</ref>. Looking ahead, our inefficient distinguisher against NIKE is a simulatable attacker in the sense of [Wic13, Definition 4.1]. Let (C, c) be a single-stage assumption, and let R be a black-box reduction from the security of NIKE against -bit leakage to the assumption (C, c). In other words, for any (potentially inefficient, non-uniform) distinguisher D with non-negligible advantage along with (potentially inefficient, non-uniform) leakage functions f A , f B : R &#8594; {0, 1} , the machine R D,f A ,f B breaks (C, c) with non-negligible advantage.</p><p>Let H : P &#8594; {0, 1} be a random function. We first define a family of inefficient distinguishers D (H) along with (inefficient) leakage functions f A (H) , f B (H) as follows.</p><p>&#8226; f A (H) takes as input a state r A &#8712; R. It has the function H hard-coded (say as a truth table). It computes p A = Publish(r A ) and outputs &#963; A = H(p A ).</p><p>&#8226; f B (H) takes as input a state r B &#8712; R. It has the function H hard-coded (say as a truth table). It computes p B = Publish(r B ) and outputs &#963; B = H(p B ).</p><p>If this equality holds, brute-force search for any r A &#8712; R such that Publish(r A ) = p A ; output 1 if K = SharedKey(r A , p B ) and 0 otherwise.</p><p>Otherwise output a random bit b &#8712; {0, 1}.</p><p>guisher with leakage size and advantage 1 -1/|K|.</p><p>Proof. By perfect correctness of NIKE, for any p B in the image of Publish and any r A , r A such that Publish(r A ) = Publish(r A ), we have SharedKey(r A , p B ) = SharedKey(r A , p B ).</p><p>In particular, on input p A , p B , f A (H) (r A ), f B (H) (r B ), K 0 where p A = Publish(r A ) and K 0 = SharedKey(r A , p B ), the distinguisher D (H) always outputs 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Similarly, on input p</head><p>and only if K = SharedKey(r A , p B ) (for any r A such that p A = Publish(r A )), which happens with probability 1/|K|.</p><p>We now consider the following efficient algorithm D Sim along with efficient leakage functions f * A , f * B . These three algorithms share a look-up table T of entries in R &#215; {0, 1} indexed by elements in P; we will write T [p &#8712; P] = (r, &#963;) &#8712; R &#215; {0, 1} . We stress that D Sim is not a distinguisher against NIKE because of this shared state T . We first note that the (transcripts of the) outputs of the calls to f A (H) , f B (H) and f * A , f * B are identically distributed. We then distinguish two cases: &#8226; Otherwise for every call to D that does not result in a random output bit, R D,f A ,f B has previously queried both f A on r A such that Publish(r A ) = p A and f B on r B such that Publish(r B ) = p B . In particular p B is in the image of Publish, and by perfect correctness, both D Sim and D (H) compute the same value SharedKey(r A , p B ). Therefore the two resulting distributions are identically distributed.</p><p>By Claim 6.5, we have in particular: </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3">Circumventing the Impossibility Result</head><p>The black-box impossibility result of Theorem 6.3 suggests several natural avenues to avoid it. We mention below several such options, some of which lead to positive results in subsequent sections of the paper.</p><p>Small Leakage. Our impossibility result only covers super-logarithmically-sized leakages, and assumptions asserting security against PPT adversary with negligible advantage. One natural way around this is to restrict security to small leakages and/or to use stronger assumptions. In Section 7, we show that any standard NIKE is actually directly secure against O(log &#955;)-bit leakages, and, more generally, that any -secure standard NIKE (where the advantage of any PPT distinguisher is at most ) is ( &#8226; 2 O( ) )-secure with -bit leakage.</p><p>Multi-Stage Assumptions and Non-Black-Box Reductions. Our impossibility result only covers single-stage assumptions under black-box reductions. All the constructions we are aware of for leakage resilience use black-box reductions, and essentially all standard cryptographic assumptions are phrased as single-stage game-based assumptions.</p><p>Imperfect Correctness. We crucially use in several steps of our proof that the NIKE is perfectly correct, to ensure that both D (H) is an (inefficient) distinguisher for NIKE, and that D (H) and D Sim compute the same shared key. However we do not see a way to leverage this gap alone to build a secure construction.</p><p>The Common Reference String Model. On a more constructive side, an interesting way to get around Theorem 6.3 is to further rely on trusted setup. A common setting is to assume the availability of a common reference string (CRS), where the randomness used to generate the CRS cannot leak. The reason our blackbox impossibility result does not apply in that case is somewhat subtle: the reduction R can call (D, f A , f B ) using a malformed CRS (not in the image of Setup), where perfect correctness might not hold. As a matter of fact, our black-box impossibility result does extend to the common random string model. In Section 9, we build a leakage-resilient NIKE in the CRS model from iO.</p><p>The Preprocessing Model. A very similar workaround is to consider what we call the preprocessing model, where parties generate their secret states r using some leak-free randomness. In the preprocessing model, our impossibility result does not apply for the same reason it does not apply in the CRS setting. This preprocessing could either be performed by the parties themselves during an earlier leak-free preprocessing stage, or it could be generated by a trusted third party. In Section 8, we build a leakage-resilient NIKE in the CRS model with preprocessing from bilinear maps; in Section 9 we build a leakage-resilient NIKE in the pure preprocessing model from iO and lossy functions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">NIKE with Bounded Leakage</head><p>In this section, we show that any secure non-interactive key exchange (NIKE) protocol remains secure under small amounts of independent leakage on Alice and Bob's secret randomness. Recall that in our setting, a NIKE distinguisher is given leakage f A (r A ) and f B (r B ) on Alice and Bob's secret randomness r A , r B . We show that if f A and f B are both efficiently computable functions with -bit output, then leakage increases the attacker's advantage by at most a (multiplicative) 2 O( ) factor. An immediate corollary is that any secure NIKE scheme remains secure under O(log(&#955;)) bits of (efficiently computable) independent leakage on Alice and Bob's randomness. This can be extended to = &#969;(log &#955;) by complexity leveraging: if no poly(&#955;)-time distinguisher for the original NIKE scheme attains advantage 2 -&#8486;( ) , then the NIKE remains secure under bits of leakage.</p><p>Furthermore, Theorem 7.1 also holds for NIKEs in the common reference string model, where the public parameters of the NIKE are generated using leak-free random coins (that can be discarded after setup). Our proof directly extends to that setting. We develop on that extension in Remark 7.7.</p><p>We prove Theorem 7.1 by invoking a connection between the notion of "square-friendliness" and leakageresilience [BDK + 11, DRV12, DY13]; we refer the reader to Section 2.3.1 for a review of this notion and the intuition for our approach.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.1">Leakage Resilience of Square-Friendly Primitives</head><p>We briefly recall the notions of square security and square-friendly (indistinguishability) primitives due to <ref type="bibr">[DY13]</ref>.</p><p>Consider the security game for any indistinguishability primitive, i.e. an interaction between a randomized challenger C and a distinguisher D, where D "wins" the game if it correctly guesses the challenger's bit b. Let rand C denote the random coins of C in the experiment. The corresponding square-security game can be defined with respect to any partition of these coins as rand C = (rand fix C , rand exp C ) as follows. The distinguishers D considered in the square-security game are the same as those considered in the standard game, but D is now challenged to play two runs of the original security game. In the first run, the challenger freshly samples rand fix C , rand exp C , and in the second run the challenger re-uses the same rand fix C and re-samples fresh rand exp C coins. D is defined to win the square-security game if it either wins both runs or loses both runs of the underlying security game. Formally, define Adv D (rand fix C ) to be the (signed) advantage of D in the standard security game for a fixed choice of rand fix C :</p><p>Then the advantage of D in the square-security game is:</p><p>Leakage Resilience.</p><p>[DY13], building on [BDK + 11, DRV12] showed the following relationship between square-security and leakage resilience:</p><p>Theorem 7.2 (Square Security Implies Bounded Leakage Resilience <ref type="bibr">[DY13]</ref>). Let D be a distinguisher for the security game of an indistinguishability application. Let X be a distribution over {0, 1} m with collisionentropy at least m -for some .<ref type="foot">foot_2</ref> Then:</p><p>We will interpret Theorem 7.2 as a statement about leakage-resilience (since bits of leakage can only result in bits of entropy loss). <ref type="bibr">[DY13]</ref> call a security game square-friendly if standard security implies square security; by Theorem 7.2, any primitive with a square-friendly security game is automatically leakage-resilient for log-size leakage on rand fix C .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.2">Proof of Theorem 7.1</head><p>As described in Section 2.3.1, our proof strategy for Theorem 7.1 applies the "double-run" trick of [BDK + 11, DY13] to two distinct security games. The first game is the standard NIKE security experiment, but where rand fix C = r A ; square security of this game implies that the original NIKE scheme is secure against leakage on Alice's secret (but not Bob's). The second game is a slight modification of the standard NIKE security experiment, and is parameterized by a choice of the leakage function f A . In this game, rand fix C = r B , and the NIKE distinguisher additionally receives leakage f A (r A ) on Alice's secret r A (which is now considered part of rand exp C ). We use the "double-run" trick to argue that both of these games are square-friendly, meaning that for both games, standard security implies square security. Taken together with Theorem 7.2, these statements imply that the original NIKE is leakage-resilient given bounded-size leakage on Alice's and Bob's secret values.</p><p>We start by defining Game 1. This is the standard NIKE security experiment, written with an explicit partition of the challenger's randomness rand C = (rand fix C , rand exp C ). Security Game 1. &#8226; The distinguisher D answers with a bit b .</p><p>&#8226; The game outputs 1 (and the adversary wins) if b = b , and 0 otherwise. </p><p>Next, we consider a modified NIKE security game, parameterized by a leakage function f A . We highlight the difference between the previous security game in red.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Security Game 2.</head><p>&#8226; This game is parameterized by a leakage function f A : R &#8594; {0, 1} . The random coins of the challenger are partitioned so that rand fix C = r B and rand exp C = (b, r A , K * ).</p><p>&#8226; The distinguisher D answers with a bit b .</p><p>&#8226; The game outputs 1 (and the adversary wins) if b = b , and 0 otherwise.</p><p>These games are defined so that Game 2 is secure (for any choice of f A ) as long as Game 1 is secure against attackers who get bits of leakage on r A . The following lemma is an immediate corollary of Lemma 7.3 and Theorem 7.2. Lemma 7.4. Suppose a time-T distinguisher for Game 2 achieves standard advantage , using a leakage function f A of output size . Then there exists a time-2T distinguisher for Game 1 with square advantage 2 /2 -1 .</p><p>Proof. Let D be a time-T distinguisher for Game 2 achieving advantage . By Theorem 7.2, the square advantage of D in Game 1 (which from the attacker's point of view is identical to Game 2 without the leakage f A ) is at least 2 /2 . By Lemma 7.3, there exists an attacker B running in time 2T achieving advantage 2 /2 -1 .</p><p>Next we prove that Game 2 is square-friendly.</p><p>Lemma 7.5. Suppose Game 2 is parameterized by an L-time computable function f A . If a time-T distinguisher for Game 2 achieves square advantage , then there exists a time-(2T + L) distinguisher for Game 2 with (standard) advantage 2 .</p><p>Proof. The proof is essentially identical to the one of Lemma 7.3. Given D, a time-T distinguisher for Game 2 with square advantage , we exhibit a time-(2T + L) distinguisher B for Game 2 with (standard) advantage 2 as follows. B receives a message (params, p A , p B , f A (r A ), K) from its challenger. Next it plays the role of the challenger and runs D, but on a message consistent with the same rand fix C coins as its challenger but with a fresh choice of rand ). After it receives D's guess, it determines if D won the experiment. Now B runs D again, but on the original message (params, p A , p B , f A (r A ), K) that B received from its challenger. If D won the first run, then B forwards D's guess in the second run as its own guess. But if D lost in the first run, B flips D's guess in the second run before sending it to its challenger. As in the proof of Lemma 7.3, B wins with probability 1/2 + 2 .</p><p>An analogue of Lemma 7.4 holds for Game 2 as well: Lemma 7.6. Suppose a time-T distinguisher for Game 2 given bits of leakage on r B (in addition to f A (r A )) achieves standard advantage . Then there exists a time-T distinguisher for Game 2 (who does not receive any leakage on r B ) achieving square advantage 2 /2 . Together, Lemma 7.6, Lemma 7.5, Lemma 7.4 and Lemma 7.3 give Theorem 7.1.</p><p>Remark 7.7 (Bounded leakage in the common reference string model). As mentioned in the beginning of the section, Theorem 7.1 extends to NIKEs in the common reference string model. Our proof directly extends to that setting, up to the following syntactical changes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8">Constructions from Bilinear Maps</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8.1">Construction in Composite-Order Groups</head><p>In this section we leverage bilinear maps to build leakage-resilent NIKE in the CRS model with preprocessing. We first provide a construction using composite-order bilinear groups.</p><p>Construction 8.1. Let sk-NIKE = (sk-NIKE.Publish, sk-NIKE.SharedKey) be a leakage-resilient symmetric key NIKE (Definition 4.1) over secret key space SK, internal randomness space R, public message space P and output key space K. We will assume that sk-NIKE.Publish does not take any secret key sk as input; all our constructions from two-seed extractors in Section 4 satisfy this property.</p><p>Let G be a group generator for a composite-order group (defined in Section 3.1.1). We will assume that there is a natural bijection G T SK.</p><p>We construct NIKE = (Setup, Gen, Publish, SharedKey) as follows:</p><p>&#8226; Setup(1 &#955; ): on input the security parameter, generate G = (G, G T , N = p 1 p 2 , e) &#8592; G(1 &#955; ) of order N = p 1 p 2 where p 1 and p 2 are primes. Let u be a generator of G.</p><p>Sample &#945;, x &#8592; Z N and use p 2 (given by the random coins used to run G) to compute g = u &#945;&#8226;p2 &#8712; G p1 and h = g x &#8712; G p1 .</p><p>Output params = (G, g, h).</p><p>&#8226; Gen(params): on input params, sample &#961; &#8592; R. Sample a &#8592; Z N , and output the state r = (&#961;, (g a , h a )) &#8712; R &#215; G 2 .</p><p>&#8226; Publish(r): on input a state r = (&#961;, (X, Y )) &#8712; R&#215;G 2 , output the public message p = (sk-NIKE.Publish(&#961;), X).</p><p>&#8226; SharedKey(r, p): on input a state r = (&#961;, (X, Y )) &#8712; R &#215; G 2 and a public message p = (P, Z) &#8712; P &#215; G, compute: sk = e(Y, Z), that we identify as an element of SK, and output: K = sk-NIKE.SharedKey(sk, &#961;, P ). Proof. Let D be an efficient algorithm which breaks the leakage resilience of NIKE with leakage functions f A , f B . We proceed via a sequence of hybrid games.</p><p>Hybrid 0. This is the real security experiment: D is given as input (params, p A , p B , f</p><p>where b is the challenger's bit.</p><p>Hybrid 1. We change how we compute params, r A , r B given to the distinguisher. We now sample g &#8592; G p1 , x, y &#8592; Z N , v &#8592; G p1 , and set:</p><p>The resulting input distributions to the distinguisher D in Hybrid 0 and Hybrid 1 are statistically close. Indeed, g is uniform in G p1 in both cases, and for a &#8592; Z N , g a is uniform in G p1 , except when g = 1 G which happens with negligible probability 1/p 1 . If this is not the case, then h a can be computed as (g a ) x . Similarly, g y is in this case uniformly distributed in G p1 , and therefore follows the same distribution as (g a ) y where y &#8592; Z N , except if (g a ) = 1 G , which happens with probability 1/p 1 over the randomness of a &#8592; Z N . Overall, the statistical distance between the distributions is at most 2/p 1 which is negligible.</p><p>Parameters. In the above, we interpret elements from G T as elements in SK, and in the analysis we assume that uniform elements in G T map to uniform elements in SK. Doing so defines the input bit-size n of the symmetric-key NIKE. Starting with an sk-NIKE resilient to -bit leakages, we obtain a NIKE resilient against ( -(log p 1 )/2)-bit leakages. Combined with Theorem 4.21 and Claim 4.6, and assuming that the leakage size (n) supported by the symmetric-key NIKE is greater than &#8776; log N/4 where N is the order of the group G, we obtain a NIKE with public message size n, leakage resilience against &#8486;(n)-bits leakages, and therefore constant leakage rate.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_0"><p>In<ref type="bibr">[KMS19]</ref>, these are referred to as "extractors for cylinder-intersection sources."</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_1"><p>In all of this section, we refer to running time of distinguishers up to additive poly(&#955;) terms.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_2"><p>The same statement holds using standard Shannon entropy instead.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_3"><p>Technically, rand fix C would need to include &#961; Setup as well. Looking ahead, this is because our reduction uses a value p A provided by a challenger, which depends on params.</p></note>
		</body>
		</text>
</TEI>
