• No se han encontrado resultados

ANTECEDENTES LOCALES

V. MARCO TEÓRICO

3. TEORÍA DE ENFERMERÍA QUE SUSTENTA EL CASO

0.5 : (eve_state’=1) & (eve_bas’=1); [evemeasure] (eve_state=1) -> (eve_state’=2);

[eveget] (eve_state=2) & (eve_bas=ch_bas)

-> (eve_state’=3) & (eve_bit’=ch_bit) & (nc’=nc+1); [eveget] (eve_state=2) & (eve_bas!=ch_bas)

-> LUCKY : (eve_state’=3) & (eve_bit’=ch_bit) & (nc’=nc+1) + (1-LUCKY) : (eve_state’=3) & (eve_bit’=1-ch_bit);

[eveput] (eve_state=3) -> (eve_state’=0); endmodule

The variable nc counts the number of times that Eve’s measurement result (whether she chooses the correct basis, or is “lucky”) is correct, i.e. when ˜di=di.

4.1.2 Model of BB84 with Random-Substitute Eavesdropping

We have seen that, in a random–substitute attack, Eve flips a coin to determine the values of ˆdi and ˆbi, which she uses when preparing a substitute, in the state Ψ(di, ˆˆ bi)E, for each photon she measures. This behaviour is reflected in an amended version of moduleChannel, shown below.

// Eve replaces 0 with probability REPLACE on channel and 1 with // probability (1-REPLACE). She uses the same probabilities to // replace the channel basis.

const double REPLACE = 0.5; module Channel

ch_state : [0..6]; ch_bas : [0..1]; ch_bit : [0..1];

[aliceput] (ch_state=0) -> (ch_state’=1) & (ch_bas’=al_bas) & (ch_bit’=al_bit); [evemeasure] (ch_state=1) & (ch_bas=eve_bas) -> (ch_state’=2);

[evemeasure] (ch_state=1) & (ch_bas!=eve_bas)

-> LUCKY : (ch_state’=2) & (ch_bit’=ch_bit) + (1-LUCKY) : (ch_state’=2) & (ch_bit’=1-ch_bit); [eveget] (ch_state=2) -> (ch_state’=3);

[eveput] (ch_state=3) -> REPLACE : (ch_state’=4) & (ch_bit’=0) + (1-REPLACE) : (ch_state’=4) & (ch_bit’=1); [eveputbasis] (ch_state=4) -> REPLACE : (ch_state’=5) & (ch_bas’=0)

+ (1-REPLACE) : (ch_state’=5) & (ch_bas’=1); [bobget] (ch_state=5) -> (ch_state’=0);

endmodule

4.2 Desired Properties of BB84 and Verification Results All quantum key distribution protocols must satisfy the following requirements:

1. The presence of an eavesdropper must be made manifest to the protocol users.

2. The protocol must ensure that the eavesdropper does not obtain the bits in the key ulti- mately shared by the two users.

68 ❦ Chapter 4. Analysis of BB84 using PRISM and SPIN Determining to what extent a particular protocol satisfies these requirements using model checking allows us to compute the probabilities Pdet and P1/2, and it is our objective to do this

here for BB84. Specifically, defining a suitablepctlformula for each requirement is all that is necessary to obtain these probabilities for the twoprismmodels,σ1(N,PL)andσ2(N,PL). IfΦ1 is a formula corresponding to the event that an eavesdropper is detected, then

Pdetk =Prfσk(N,PL)j=Φ1g with k2 f1, 2g (4.1)

is the probability of this event in modelσk(N,PL).

Similarly, we can define apctlformulaΦ2which holds whenever the eavesdropper is able to make more than N2 measurements correctly. Thus we can write

P1/2k =Prfσk(N,PL)j=Φ2g (4.2)

for the probability of this particular event. Once we have defined the formulaeΦ1andΦ2, we

will be in a position to conduct verification withprismand thence to compute the probabilities (4.1) and (4.2) for various values ofNandPL.

We have seen that, in bothprismmodels of BB84, an eavesdropper is detected as soon as:

bob_state=7

It is, therefore, simple to define the formula for the first requirement:

Φ1=trueU (bob_state=7) (4.3)

In section 4.2.1, we will show how the probabilities

Pdet1 (N,PL) = Prfσ1(N,PL)j=Φ1g (4.4)

Pdet2 (N,PL) = Prfσ2(N,PL)j=Φ1g (4.5)

vary asNis increasedPLremains constant at 0.5.

With regards to verifying the second requirement: it is necessary to be able to count how many times on average the eavesdropper obtains a correct measurement result. The counterncin the prismcode for Eve’s behaviour provides this information. Using this counter, we can formulate the event in which Eve obtains over half of Alice’s bits correctly as follows:

Φ2=trueU nc>

N

2 (4.6)

In section 4.2.2 we will study the variation of P1/21 (N,PL) = Prfσ1(N,PL)j=Φ2g

and P1/22 (N,PL) = Prfσ2(N,PL)j=Φ2g

4.2. Desired Properties of BB84 and Verification Results ❦ 69 Figure 4.1The probability that Eve is detected in the BB84 Protocol while performing an intercept–resend attack, as a function of the security parameterN. The crosses indicate data points produced byprism, while the dotted curve is a

non–linear least–squares fit to these points.

0 0.2 0.4 0.6 0.8 1 0 5 10 15 20 25 30 Pσ1(N,0.5),Φ1 N

Probability of detecting Eve (Intercept-Resend) g(x)

4.2.1 The Probability of Detecting an Eavesdropper

Whenprismis instructed to verify the property in (4.3) againstσ1(N,PL)andσ2(N,PL), the tool performs standard procedure: it reads the model given, constructs an internal data structure, and then attempts to enumerate all the states in whichΦ1holds. The version ofΦ1 which we have

used for our analysis withprismis actually Φ0

1=Φ1f(ch_state=0)^(al_state=0)^(eve_state=0)g (4.7)

This formula (whose syntax is not part of purepctl, but is peculiar toprism) matches a subset of the states in whichΦ1is true, namely those states in which the channel and users Alice and Eve

are ready to proceed with the next transmission. So, in practice we used

Prfσk(N,PL)j=Φ10g (4.8)

as our definition ofPdetk , withk2 f1, 2g, instead of (4.4) and (4.5).

prismproduces the results shown in Figures 4.1 and 4.2, when instructed to verifyΦ0

1against

σ1(N, 0.5)andσ2(N, 0.5)respectively, with 56N630. Some representative results are given in

the next table, to an accuracy of three decimal places. N Pk

det(N, 0.5) Pdetk (N, 0.5) 5 0.487 0.763 15 0.865 0.987 25 0.965 0.999

70 ❦ Chapter 4. Analysis of BB84 using PRISM and SPIN Figure 4.2The probability that Eve is detected in the BB84 Protocol while performing a random–substitute attack, as a function of the security parameterN.

0 0.2 0.4 0.6 0.8 1 0 5 10 15 20 25 30 Pσ2(N,0.5),Φ1 N

Probability of detecting Eve (Random–Substitute)

It is clear from the two figures that, no matter whether Eve performs an intercept–resend or random–substitute attack, an increase in the number of photons transmitted leads to an exponen- tially greater probability of detecting her presence. The maximum value of N for which we have been able to computePσk(N,0.5),Φ1 is 30, and the value ofP

1

det in this case is 0.9987, while Pdet2 in this case is 0.9998.

Since the trend of the data is exponential, and exponential curves tend toward the horizontal axis asymptotically, there will never be —by the rules of calculus— a specific value of N for whichPdet becomes unity. This means that there will always be a marginally small probability that the eavesdropper passes completely unnoticed. Mathematically, we can summarise these observations as follows: lim N!∞P k det(N, 0.5) =Nlim !∞Pσk(N,0.5),Φ1 =1

Experiments with values ofPLother than 0.5 produce the same result. The same figure has been reproduced in the text by Williams and Clearwater (1998).

Using the Marquardt–Levenberg nonlinear least squares algorithm for curve–fitting3, we have been able to fit the values ofPσk(N,0.5),Φ1 produced byprismto a function of the form

f(N) =1 c1 exp[ c2 N]

For the model σ1(N, 0.5), with intercept–resend eavesdropping, the values obtained for c1

and c2 are, respectively, 1 and 0.134. Thus, we can write that the probability of detecting an

eavesdropper for this scenario is:

4.2. Desired Properties of BB84 and Verification Results ❦ 71 For the modelσ2(N, 0.5), with random–substitute eavesdropping, the values ofPdet2 (N, 0.5)

are approximated as follows:

Pdet2 (N, 0.5) 1 exp[ (0.288)N] (4.10)

All these results indicate that the BB84 protocol does ensure that, with probability arbitrarily close to unity, an eavesdropper’s presence is made manifest to the legitimate users. We can safely conclude that requirement (1.) on page 67 is fulfilled by BB84.

Finally, we can compare the variation ofPdet1 (N, 0.5)with that ofPdet2 (N, 0.5)to conclude as to which type of eavesdropping is more effective in masking Eve’s presence. Since

Pdet1 (N, 0.5)<Pdet2 (N, 0.5) (4.11) it is clear that, of the two, intercept–resend is more effective.

4.2.2 The Number of Correct Bits Obtained by an Eavesdropper

Figure 4.3The probability that Eve, by performing an intercept–resend attack, obtains more than12the total transmitted bits correctly in BB84, as a function of the security parameterN.

0 0.2 0.4 0.6 0.8 1 0 5 10 15 20 25 30 Pσ1(N,0.5),Φ2 N

Probability of Eve obtaining more than N/2 correct bits (Intercept-Resend)

For the property expressed by the formulaΦ2, the results of model checking withprismare shown in Figures 4.3 and 4.4. It is evident from the graphs that the eavesdropper is increasingly less likely to obtain more than half Alice’s original bit sequence correctly, asN is increased. In other words, the longer the sequence of photons transmitted by Alice, the less likely Eve is to measure half of it correctly.

Now, for bothprismmodels, the variation ofP

72 ❦ Chapter 4. Analysis of BB84 using PRISM and SPIN Figure 4.4The probability that Eve, by performing an random–substitute attack, obtains more than 1

2 the total trans-

mitted bits correctly in BB84, as a function of the security parameterN.

0 0.2 0.4 0.6 0.8 1 5 10 15 20 25 30 Pσ2(N,0.5),Φ2 N

Probability of Eve obtaining over N/2 bits correctly (Random–Substitute)

curve; this corresponds to a function of the form f(N) =c1 exp[ c2 N]

We can fit the experimental results to this function as we did in the previous section; it suffices to note here that, for the intercept–resend scenario, the values ofc1andc2produced by the fitting

algorithm are 0.909 and 0.081 respectively. Thus we can write P1/21 (N, 0.5) (0.909)exp[ (0.081)N]

Clearly, since we have exponentially decaying curves, lim

N!∞P k

1/2=0 for k2 f1, 2g

Note also that, in the security proof of Mayers (2001, p. 353), it is stated that:

“ In an information–theoretic setting, which is our case, a quantity fN such as the amount of Shannon’s information [sic] available to Eve must decrease exponentially fast asNincreases. ”

The results above corroborate this claim.

Documento similar