Wide Area Key Distribution Network Based on a Quantum Key Distribution System

The point-to-point quantum key distribution (QKD) system is limited by the transmission distance. So, the wide area QKD network with multiple endpoints is the research focus of this study. The relay-node scenario and key relay protocols provide the solutions to the QKD network. The early key relay protocols require the relay nodes to be reliable. Once the relay nodes become compromised, the whole network is insecure. In this paper, we extend the chain structure of the public-XOR(exclusive OR)-key scheme with two endpoints to the complex network with multiple endpoints. The relay nodes in our scheme do not need encryption actions, decryption actions, or storage XOR keys, which simplifies the system compared with other key distribution schemes based on trusted relay nodes. Our scheme not only improves the practical performance and simplifies the system’s complexity, but it also ensures that the security is not reduced. Specifically, we rigorously demonstrate that an eavesdropper can never access the key shared by the users of the network as long as the process of generating XOR keys and destroying the original keys is secure. In addition, we discuss the information leakage of the practical QKD network from the perspective of the unicity distance.


Introduction
To ensure the security of communications on the internet, an effective solution is to use cryptographic techniques.The security of the most classical cryptosystems depends on the computational complexity of the algorithms.With the fast development of quantum computation and quantum algorithms, communication security based on the above algorithms is greatly compromised.In conventional cryptography, a typical cryptosystem not based on the computational assumptions is the one-time-pad, which is unconditionally secure and free from the threat of quantum computing.In one-time-pad, the length of the keys and the messages is the same, and the keys can only be used once.Both communicating parties need to share the keys in advance.The security of one-time-pad should be completely dependent on the confidentiality of the pre-shared keys.It is too expensive to realize and too difficult to apply in practice.Thus, how to realize the unconditionally secure key distribution becomes a critical problem, which motivates the development of quantum key distribution (QKD).In 1984, Bennett and Brassard proposed the concept of QKD [1], which achieves the unconditionally secure key distribution based on quantum mechanics.It enables both parties of communication to generate and share a random and secure key.Then a series of QKD protocols have been proposed [2][3][4][5].More importantly, the unconditional security of QKD protocol has been strictly proved [6][7][8][9].
The early implementations of QKD systems mainly focus on the communication between two endpoints.The point-to-point QKD system is limited by the transmission distance, which is limited by the key rate.So, the development of a wide area QKD network is a challenging issue.Some countries and regions have deployed QKD networks for last years.The first experiment of QKD network was designed by Townsend [10].Some QKD network projects [11][12][13][14][15][16][17][18] have been completed successfully, such as the defense advanced research projects agency (DARPA) quantum network [11] set up by the USA in 2004, secure communication based on quantum cryptography (SECOQC) designed by the European project [13], the commercial telecommunication fiber network in China [12], the SwissQuantum QKD network project launched in Geneva [14], and the live video conference through a high-speed QKD network in Tokyo [16].Satellite communications are also building QKD networks, such as the international QKD channel created by the QUESS space mission [19,20] and the world's first space-ground quantum network [21,22].These projects supported by different underlying devices can be divided into three categories: (1) satellite communications; (2) quantum relaying; (3) classical trusted relay.In the light of the present situation, the satellite-based method is not realistic, and the research of quantum relay equipment is not perfect.Thus, determining how to establish a practical and secure QKD network based on the trusted relay is the key problem.
The approach of using trusted relays in QKD networks was proposed in 2002 [23].This allows both endpoints to access a series of trusted relays to expand the arbitrary distance.The BBN key relay protocol has been operating continuously in the DARPA quantum network since 2003 [24].In the protocol, the endpoints create a new random number R and send R through the trusted relay nodes by one-time-pad encryption.Each trusted relay node of the chosen path decrypts the ciphertext with the QKD keys shared with the upstream node and encrypts R with the QKD keys shared with the downstream node.In 2012, Los Alamos National Laboratory set up a trusted hub-and-spoke QKD network [18].To communicate, each node sends a one-time pad to the hub, which it then uses to communicate securely over a classical link.The entire network is secure only if the central hub is secure.In these relay nodes-based key distribution schemes, if one of the relay nodes gets compromised, the whole network is insecure.Additionally, the relay nodes need encryption actions, decryption actions and storage of function, which increase the complexity of the system.In [25], Schartner and Rass proposed a re-encryption key distribution scheme for relay QKD system, which is introduced in Section 2.1.Compared with BBN key relay protocol, the re-encryption scheme reduces the damage in case of the compromised node and reduces the storage memory of keys for relay nodes.However, in re-encryption scheme, the relay nodes still need to keep the XOR (exclusive OR) value of the QKD keys secretly, and the successive communications between adjacent relay nodes is also required.In 2013, "Beijing-Shanghai Line" of quantum secrecy communication is based on the public-XOR-key scheme, where each trusted relay node publicly announces the XOR key it holds, enabling the endpoints to share a key.Compared with the re-encryption scheme, the scheme simplifies the system's complexity and eases the traffic of the relay nodes.In 2014, William Stacey et al. proposed a simplified trusted relay (STR) protocol for point-to-point [26].It is similar to public-XOR-key scheme.The two endpoints of STR are connected by a series of trusted relays that announce the XOR keys, but the rest of the classic QKD post-processing needs to be performed based on data from its original terminal, which comes at the cost of a low key rate.
Contributions: considering the key rate and the requirements of the long-distance communications with multiple endpoints, the public-XOR-key scheme is more efficient and practical than the BBN protocol, re-encryption protocol and STR.We extend the chain structure of the public-XOR-key scheme with two endpoints to the complex network with multiple endpoints.Our contributions are as follows.

•
Our scheme can reduce the memory complexity and heavy traffic of communications for relay nodes in real implementation.It is appropriate for the remote communications of the complex networks with multiple endpoints.Compared with other key distribution schemes based on relay nodes, our scheme reduces the complexity of the system and eases the traffic of the relay nodes.
• Compared with the re-encryption schemes that does not announce the XOR value, our scheme not only improves the actual performance and simplifies the complexity of the system, it also does not weaken the security of the system.To analyze the security, we build the threat model and the security model of the public-XOR-key scheme.We rigorously demonstrate that the scheme is as secure as the re-encryption scheme under the same adversary model.In addition, we analyze the information leakage of practical QKD network from the perspective of Shannon's ciphertext-only attack model by exploring the theory of unicity distance and applying it to the model of practical QKD networks.

Preliminaries
In this section, we review two cryptographic primitives that are necessary for understanding the proposed complex QKD network scheme, including the re-encryption key distribution scheme and the theory of unicity distance for discussing information leakage of practical key distribution scheme.

Re-Encryption Scheme for QKD Network
In re-encryption scheme, a secret message is encrypted by sender's local random key s.The delivery of the random key s can be executed by the following protocol.After the protocol, two endpoints can share the key s.The following is the main steps of the re-encryption protocol with two endpoints.
Protocol 1: re-encryption scheme for the relay QKD network: 1.
Each node executes QKD protocol with its neighbor nodes, which generates n pairs of QKD keys Qk i as shown in Figure 1.

2.
Alice encrypts the random key s with her QKD key Qk 1 , which is shared with the first relay node.Calculate the first ciphertext c 1 = s ⊕ Qk 1 , where ⊕ denotes bitwise module-2 addition.

3.
The relay nodes do the XOR operation with the QKD keys, which are shared with the upstream relay nodes and the downstream relay node, to obtain the XOR keys a i , i.e., a i = Qk i ⊕ Qk i+1 , then immediately dismiss the QKD keys, Qk i , Qk i + 1.When relay node i receives the incoming ciphertext, it calculates c i+1 = c i ⊕ a i .It is easy to see that c i = s ⊕ Qk i .4.
When Bob receives the incoming ciphertext, c n = s ⊕ Qk n , he decrypts the ciphertext with his QKD key Qk n to obtain s.Then Alice and Bob share the common key s.Alice can transmit the message secretly to Bob with the key latter.

The Theory of Unicity Distance
In order to discuss the information leakage of the practical QKD network, we study it from a perspective of the unicity distance.Shannon laid the foundations of communication theory of secrecy system in [27].In the second part of the paper, he put forward the concept of unicity distance, which gave a way of calculating approximately how many ciphertexts are required to obtain the key of a secrecy system.The adversary tries each possible key to decrypt the intercepted ciphertexts, and records the keys which make the deciphered messages meaningful in the original language.Only one of the record keys is the correct one, others are spurious keys.In Shannon's ciphertext-only attack model, suppose there is a symmetric cryptosystem (M, C, K, E, D), where |C| = |M|.In the cryptosystem, M denotes plaintext space, C denotes ciphertext space, K denotes key space, E denotes the encryption algorithms and D denotes the decryption algorithms.For m ∈ M, k ∈ K, the encryption algorithm is E k (m i ) = c i .Suppose the plaintexts are in language L, the rate(entropy) is The redundancy of the language L is defined as where A is the word set, |A| is the number of words in language L, A n is the totality of all plaintext n-alphabets, and H L denotes the average information bits of the each word in language L. R L measures the degree of statistical constraint imposed by language L. For Y ∈ C n , K(Y) is defined as a set of all possible key with the given ciphertext Y, p(Y) is the probability of the events Y occurring.The expected number of spurious key is When n is sufficiently large, the relationship between the redundancy of the language R L and the plaintext M is Since According to Jensen's inequality and Equation (3), the conditional entropy is Therefore, the expected number of spurious key S n satisfies that When the length of the ciphertext is N 0 , the expectation of the number of spurious key is null.N 0 is defined as the unicity distance of the system, where the entropy H(K) measures the uncertainty of the value of k.

Public-XOR-Key Scheme for QKD Network
In this section, we extend the chain structure of the public-XOR-key scheme with two endpoints to the complex network with multiple endpoints.The scheme is secure as long as the XOR keys are generated securely.In this scheme, there are no re-generation keys and the relay nodes need not perform the encryption operation or store any key material, which reduces the complexity of the system.There is no need to communicate between adjacent relay node, which avoids communication failure caused by network congestion.

The Public-XOR-Key Scheme with Chain Structure
First, we introduce the chain structure of two endpoints.In the scheme, each relay node has only two connections with the upstream node and the downstream node.Assume the whole chain network contains n + 1 nodes.Each node executes QKD protocol with the neighbor nodes.The n + 1 nodes make up n point-to-point QKD systems.There are two endpoints, n − 1 relay nodes and n pairs of QKD keys Qk i for i = 1, 2, ..., n.
Protocol 2: public-XOR-key scheme for the relay QKD system: Each node executes QKD protocol with the neighbor nodes, which generates n pairs of QKD keys Qk i for i = 1, 2, ..., n as shown in Figure 2.

2.
Each relay node does the XOR operation with the QKD keys, which are shared with the upstream relay node and the downstream relay node, to obtain the XOR keys.For relay node i, its XOR key is a i = Qk i ⊕ Qk i+1 , where Qk i is the QKD key shared by relay node i − 1 and relay node i, Qk i=1 is the QKD key shared by relay node i and relay node i + 1.Then each relay node immediately dismisses the QKD keys and publishes the XOR keys.We assume that the process of dismissing QKD keys is secure.

3.
Bob calculates the final key with all of the public-XOR-key and his QKD key Qk n .That is, n−1 i=1 a i ⊕ Qk n = Qk 1 .Then Alice and Bob share the common key Qk 1 .Alice can transmit the message secretly to Bob with the key Qk 1 latter.

Remark 1.
There is a security assumption in the protocol that the process of dismissing QKD keys is secure.For the practical realization of the assumption, we give a kind of method as follows.Use the physical isolation to protect XOR operation and the process of dismissing the original QKD keys from the outside world to access its physical devices, so that even if the relay node is compromised, the adversary can not get the original key.
Correctness: Bob calculates the final key with a i and Qk n , where which ensures the correctness of the key distribution scheme.

The Complex QKD Network Scheme with Multiple Endpoints
We have described the public-XOR-key scheme in the chain network with two endpoints.The following approach is used to solve the key distribution in a wide area network with multiple endpoints.A communication chain is formed between any two endpoints, and multiple communication chains constitute all kinds of network structures.No matter how complex the structures are, there will always be a chain between the two endpoints.As long as the pair of endpoints is in a connected graph, the key distribution scheme is similar to that of Protocol 2. The difference between the communications in the chain network and other complex networks is that some relay nodes have more than two connections with other nodes.Additionally, the simplest model is the chain structure (each connecting relay node has only two ports).In general networks, there are not only two ports connecting the relay nodes.Since there may be various topological structures in the actual network, we abstract the complex network into simplified model with three-port relay nodes, as shown in Figure 3.The more complex multiple endpoints models are similar to this, as long as it conforms to the principle of one-time padding.Firstly, consider a simplified model that a relay node has three connections that are connected with three endpoints: Alice, Bob and Charlie.Each pair of endpoints is in a chain network.When they execute the original process of Protocol 2, the communications of Alice and Bob, Alice and Charlie are shown in Figure 3.However, a key distribution scheme is secure if and only if the shared keys are not known by the third party.In the above scenario, Alice, Bob and Charlie share the same key Qk A .If Bob or Charlie is the internal attacker, he can get the keys shared by Alice and the other user, which threatens the security.
In order to guarantee the security against the internal attacker, all of the QKD keys should be used only once.The improved key distribution scheme for three endpoints is shown in Figure 4. Qk A 1 and Qk A 2 are the QKD keys shared by Alice and the relay node, Qk B 1 and Qk B 2 are the QKD keys shared by Bob and the relay node, Qk C 1 and Qk C 2 are the QKD keys shared by Charlie and the relay node.Each QKD key is independent of the others.The relay node calculates and publishes

The Advantages of the Public-XOR-Key Scheme
The function of wide area key distribution network based on relay nodes is to distribute keys for multiple endpoints.The relay nodes are set up for helping the pairs of remote endpoints to share keys.Therefore, the less functions and devices the relay nodes have, the simpler the whole system is.In real implementation, our scheme has the following practical advantages.

1.
The relay nodes do not need to store the QKD keys in our scheme.In the BBN key relay scheme, each relay node recovers the plaintext with QKD keys shared with the upstream node, encrypts it with QKD keys shared with the downstream node and then transfers it to the downstream node.Once the relay nodes have been broken, the adversary can access all plaintext transferred through this relay node.The relay nodes destroy the original QKD keys securely right after the QKD keys shared with upstream node and downstream node are immediately sent to the cipher machine to do XOR operations.The adversary has no chance to access the original QKD keys or plaintext.Compared with BBN scheme, our scheme reduces the storage of QKD keys and increases the security of the system.2.
The relay nodes do not need to store the XOR results of the QKD keys secretly in our scheme.Key buffers and corresponding preventive measures are needed for the secret storage, such as anti-electromagnetic radiation devices and video surveillance system.In our scheme, the XOR results are public.The way of publishing depends on the actual network.For example, the XOR results are saved in the relay nodes without protection, sent to endpoints directly, or broadcast to the users over the network.It is difficult for the actual networks to ensure the absolute security of the data storage.The system of our scheme simplifies the defence.

3.
There are no re-generation keys in our scheme.In re-encryption scheme and BBN scheme, one of the endpoints firstly generates a local random number and encrypts the random number with the help of relay nodes.Finally, the pair of endpoints shares the random number.In our scheme, the keys shared by endpoints are exactly the QKD keys and there is no need to generate random numbers from point to point.4.
In our scheme, the shared keys do not need to be encrypted by each relay node over the path.When two endpoints want to share keys in re-encryption scheme, the ciphertext of the random number generated by one endpoint is re-encryption and transferred by one relay node after another.There are multiple endpoints to communicate simultaneously in reality.Some relay nodes may be included in plenty of communications.The communications may hang or fail due to the heavy traffic.In our scheme, the relay nodes no longer participate in the communications after publishing XOR results.When endpoints want to share keys, either of the endpoints just calculates the key directly, which eases the traffic of the relay nodes.

The Security of the Public-XOR-Key Scheme
We described the complex QKD network scheme with multiple endpoints and analyzed its advantages in Section 3. Compared with the re-encryption scheme that does not announce the value, our scheme can improve the actual performance and simplify the complexity of the system.In this section, we analyze our scheme from the security perspective.We analyze the security of the scheme by building the threat model of adversaries and strictly demonstrate its security under the threat model.As described in Section 3.2, there is always a chain between any two endpoints in all kinds of networks.So, we can use the chain QKD network as an example and build the security model.In addition, by comparing the security of our scheme with that of the re-encryption scheme, we prove that our scheme has the same security with that of the re-encryption scheme under the same assumption of adversary's capacity, while our scheme achieves simplification in implementation.

The Security Analysis of the Public-XOR-Key Scheme
Threat model: we model the capacity of the adversary, Eve.Assume the destruction of the original QKD keys in the relay nodes is secure and Eve cannot access the original QKD keys even if she compromises the relay nodes.Assume the relay nodes never play the role as the internal attacker.QKD protocols have been proved to be unconditionally secure in theory.However, limited by the development of technology, there are attacks on QKD system in practice [28][29][30][31][32].As a result of this defense, Eve cannot get all the information about QKD keys.However, there still exists some leaked information.In the chain network with n point-to-point QKD systems, the amount of leaked information may be large.Assume leaked information about each point-to-point QKD system is the same, which is denoted as I 0 .The information obtained by Eve in the point-to-point QKD system is where H(p) is the entropy of QKD key QK i in each point-to-point QKD system.For Qk i ∈ {0, 1}, Eve knows that it has bias "0" or "1" with the probability of p.To simplify the following calculating, assume p(Qk i = 0) = p for each i = 1, 2, ..., n, where 0 < p < 1.
The amount of information about the shared key Qk 1 obtained by Eve is where a i is the public XOR value.A new parameter b i ∈ {0, 1} is defined from the public a i , The number of elements b i is n − 1 and they form a Boolean vector b.The random variable of b i is defined as B i , the random variable of b ≡ (b 1 b 2 ...b n−1 ) is B ≡ (B 1 B 2 ...B n−1 ), and the random variable of Qk i is QK i .H(Qk 1 |a 1 ) can be treated as H(QK 1 |B) for more obvious analysis.That is, the information obtained by Eve is I key = 1 − H(QK 1 |B).From the definition of b i , it can be seen that the QKD key Qk 1 is encrypted by other different QKD keys n − 1 times, which is similar to the random key s encrypted by QKD keys in the re-encryption scheme.
Analyzing the security of the public-XOR-key scheme is equivalent to calculating how much information Eve obtains.We first analyze the conditional entropy of QK 1 in the threat model.Theorem 1.In the assumption model of key distribution network using public-XOR-key scheme, the value of the conditional entropy H (QK where p is the probability of Qk i = 0 for all i = 1, 2, ..., n, and C w n−1 is the binomial coefficient.
Proof of Theorem 1.According to the definition of conditional entropy, Then we analyze the properties of the terms in the sum.For Qk 1 ∈ {0, 1}, the corresponding random variable satisfies that For B ∈ {0, 1} n−1 , there are 2 n−1 values of B. Consider classifying B by the number of zeros or ones.This kind of classification is exactly the hamming weight of the B, which is creative in cryptanalysis.Then Equation ( 14) becomes where b w denotes a particular vector with hamming weight w.According to Bayesian formula, the conditional probability of QK 1 = 0 in Equation ( 16) is According to the formula of total probability, Since b i = Qk 1 ⊕ Qk i+1 , the distribution of b i depends on Qk i+1 and Qk 1 .When the random variable QK 1 = 0, there is where QK ≡ (QK 2 QK 3 ... QK n ) is a random variable with the length of n − 1.The difference between the random variables QK and QK is that QK does not contain QK 1 .Therefore, the random variables QK and QK 1 are independent of each other and the second equality of the above equation holds.
Similarly, when QK 1 = 1, there is According to Equation (18), When QK = b w , there is w number of ones, and n − w − 1 number of zeros in the random variable QK .When QK = b w , there are w zeros and n − w − 1 ones.Then Therefore, the conditional probability of QK 1 = 0 is Similarly, the conditional probability of QK 1 = 1 is Then the conditional entropy The equivocation H(QK 1 |B) measures the uncertainty of the QKD key Qk 1 when given the public XOR keys.If and only if p = 0 or p = 1, the conditional entropy is null.Actually the security of point-to-point QKD systems guarantees that 0 < p < 1.Therefore, H(QK 1 |B) cannot be null and Eve can never confirm the value of Qk 1 .The public-XOR-key scheme is secure against the adversary under the above assumption.

Comparison of the Security of the Public-XOR-Key Scheme and Re-Encryption Scheme
We have already analyzed the security of the public-XOR-key scheme.Now we contrast its security with that of re-encryption scheme.We first model the re-encryption scheme and analyze the information obtained by Eve in the scheme, then contrast it with the result in Section 4.
The endpoint transfers the message encrypted by local random key s.We denote the cryptosystem of QKD network using the re-encryption scheme as (S, C, QK, E , D ).A local random key s is encrypted n times with Qk i by Alice and the relay nodes.To simplify the model, suppose the local random key, QKD keys, ciphertexts are all binary words with the length of 1.The encryption algorithm is the simplest XOR, that is The ciphertexts c i , for i = 1, 2, ..., n are available to Eve.The assumption of the capacity of Eve about the QKD keys is the same as the decryption of the threat model in Section 4. For a chain network, which contains n point-to-point QKD systems, the local random key s is encrypted n times with Qk i .The QKD keys can be analyzed as a Boolean vector Qk with the length of n.The ciphertext can be analyzed as a Boolean vector c with the length of n.Let QK, C ∈ {0, 1} n , S ∈ {0, 1} denote the random variables of the vectors of QKD keys, ciphertexts and local random key, respectively.The equivocation of the local random key H(S|C) measures the uncertainty of the local random key s when given ciphertexts.When H(S|C) is null, Eve gets the random key s.Theorem 2. In the assumption model of key distribution network using re-encryption scheme, the value of the conditional entropy H(S|C) is Proof of Theorem 2. According to the definition of conditional entropy, Then we analyze the properties of the terms in the sum.In order to guarantee the randomness of the local random key s, there is For the Boolean vector C ∈ {0, 1} n , there are 2 n values.Classify C by the hamming weight.Equation ( 28) becomes where c w denotes a particular vector of length n with hamming weight w.According to Bayesian formula, when C = c w , the conditional probability of S = 0 in Equation ( 30) is Since c i = s ⊕ Qk i , the distribution of c i depends on Qk i and s.When random variable S = 0, there is When random variable S = 1, there is In Equations ( 32) and (33), the second equality holds because the random variables QK and S are independent of each other.According to the formula of total probability, From Equations ( 32) and (34), the conditional probability of S = 0 is Similarly, the conditional probability of S = 1 is (36) Therefore, the conditional entropy H(S|C) In this model, the information about the Alice's random key s obtained by Eve is I s = 1 − H(S|C).Then we contrast the information leakage of the public-XOR-key scheme and re-encryption scheme.Theorem 3.For the adversary with the same capacity, the information leakage of re-encryption scheme and public-XOR-key scheme are the same, i.e., I key = I s .
Proof of Theorem 3. Define two functions ∆ and f p (w) as follows, It can be seen that f p (i) = f p (n − i).The difference between I key and I s is Sum the ith term and the (n It is easy to check that 1 2 Therefore Equation ( 39) is Substitute Equation (41) into Equation (38), if n is an odd number, there is ∆ = 0.If n is an even number, there is Therefore, for all values of n, there is ∆ = 0, i.e., I key = I s .
Accordingly, for the same assumption of Eve's capacity, the security of the key distribution scheme we proposed is equivalent to that of the re-encryption scheme.The public-XOR-key scheme can not only improve the practical performance and simplify the system's complexity, but also ensure that it does not reduce the security.

Discussion about Information Leakage of the Key Distribution Network from the Perspective of Unicity Distance
In the model of key distribution network using re-encryption scheme or public-XOR-key scheme, a secret key s or Qk 1 is encrypted with other QKD keys several times.In Shannon's ciphertext-only attack model, the plaintexts are encrypted with the same key multiple times.In this section, we analyze the practical QKD networks from the perspective of Shannon's ciphertext-only attack model, which is an in-depth discussion of unicity distance.Since the security of the re-encryption scheme is equivalent to that of public-XOR-key scheme, we only analyze one of them.
In the simplified model of re-encryption scheme with parameters (S, C, QK, E , D ), the encryption algorithm is the simplest XOR, i.e., E Qk i (s) = s ⊕ Qk i = c i .In the model of Shannon's ciphertext-only attack model, the simplest encryption algorithm is E k (m i ) = m i ⊕ k = c i .Therefore, the local random key s could be treated as the key in Shannon's model, the QKD keys Qk i can be treated as the plaintext in Shannon's model.The unicity distance N 0 is the number of ciphertext required to obtain the local random key s, according to Equation (8), The adversary Eve attacks each point-to-point QKD system.Assume the information about the value of Qk i that Eve obtains from each point-to-point QKD system is the same, and that it is equal to , where H(p) is the entropy of the QKD key in each point-to-point QKD system.It seems that the physical interpretation of H(p) and H L , I 0 and R L are equivalent.When n is sufficiently large, according to Equation ( 4), the relationship between H(p) and the quantum keys with the length of n is The unicity distance N 0 of the relay QKD system is which means that if Eve attacks N 0 point-to-point QKD systems and gets N 0 ciphertext, she can obtain the random key s.The contrast between the parameters of Shannon's model and those of the model of the QKD network is shown in Table 1.However, in Sections 4 and 5 we show that the conditional entropy H(S|C) cannot be null as long as 0 < p < 1, which reflects that Eve cannot obtain the exact key s no matter how many ciphertexts she has in the real world.This result conflicts with the unicity distance that was analyzed above.
We hold the view that there are two reasons for the difference.Firstly, although H(p) and H L , I 0 and R L have very similar physical interpretation, actually they are not equivalent.In Shannon's model, H L denotes the rate of each word in language L, which is an average value with a sufficiently large n.In the model of QKD network, H(p) is the real entropy of the QKD key in each point-to-point QKD system rather than an average value.Since each QKD key encrypts the same random key s, with the known c i each point-to-point QKD system is not completely independent.Suppose the rate of each point-to-point QKD system is H K , The second reason is that the unicity distance N 0 is an approximate and minimum value in theory.In the derivation of the value of unicity distance, there are some approximations and inequalities.When n is sufficiently large, Equation (4) holds.In practical QKD network, n cannot be large enough, the value of which is usually just several dozens.Equation (8), denoting the approximation of N 0 , actually is its minimum value.Even if Eve gets the ciphertext with the length of H(K)/R L log 2 |M|, there still exist spurious keys and she cannot get the real key.
Through the above analysis, we find the reasons why the unicity distance of the practical QKD network is different from that in theory.It indicates that the theoretical value of unicity distance has a certain gap with the practical system.In addition, the unicity distance of the relay QKD system is infinity, which indicates the adversary in the model can never obtain the entire secret message.

Discussion and Conclusions
Considering the key rate and the requirements of multiple-endpoint long-distance communication, the public-XOR-key scheme is more efficient and practical than the BBN protocol, re-encryption protocol and STR.In this paper, we extend the chain structure of the public-XOR-key scheme with two endpoints to the complex network with multiple endpoints.In the complex network with multiple endpoints, the practical contributions are as follows: (1) The relay nodes do not need to store the QKD keys.(2) The relay nodes do not need to store the XOR results of the QKD keys secretly, which reduces the storage.(3) The relay nodes do not participate in the transmission of the key, which reduces the communication traffic to a certain extent.A particularly important contribution is the proof of the security of the scheme.On the one hand, compared with the security of re-encryption key distribution scheme whose XOR keys are not announced, the security of the key distribution scheme we proposed and the re-encryption scheme is equivalent.Our scheme can not only improve the practical performance and simplify the system's complexity, but also ensure that the security is not reduced.Even though the adversary obtains partial information about the QKD keys in our scheme, she cannot confirm the shared key.On the other hand, we discuss the information leakage of the practical key distribution networks from the perspective of the unicity distance.The unicity distance of the practical QKD network is infinity, which bears out that our scheme is secure and Eve can never obtain the shared key.
The major advantages of our scheme are as follows. • The superiority of the practical performance: (i) The relay nodes need not store the QKD keys.
Even if Eve attacks the relay nodes, she cannot access the QKD keys and plaintext.The scheme reduces the storage of QKD keys and increases the practical security of the system.(ii) The relay nodes need not store the XOR results of the QKD keys secretly, which reduces the storage.It is difficult for actual network to ensure the absolute security of the data storage.The secret storage is avoided in our scheme.(iii) There is no re-generation keys in our scheme.In our scheme, the keys shared by endpoints are exactly the QKD keys and it is no need to generated random numbers from point to point.(iv) The relay nodes do not participate in the transmission of the key, which reduces the communication traffic to a certain extent.

•
The superiority of security: (i) we analyze the information leakage of public-XOR-key scheme and re-encryption scheme in the threat model and prove the security of the schemes.Even though the adversary obtains partial information about the QKD keys, she cannot confirm the shared key.(ii) We discuss the information leakage of the practical key distribution networks from the perspective of the unicity distance.The unicity distance of the practical QKD network is infinity, which bears out that our scheme is secure and Eve can never obtain the shared key.The security analysis of complex network structures are worthy for the further study.
In addition, we analyze the reason why the unicity distance of the practical system is different from that in theory.In fact, this system is a typical example of that the same plaintext is encrypted with different keys.It can be analyzed as Shannon's ciphertext-only attack model because the encryption and decryption algorithms are XOR, where the order of operations can be exchanged.The unicity distance of the systems with other complicated encryption and decryption algorithms is left as an open question for future work.

Figure 1 .
Figure 1.The model of re-encryption key distribution scheme for the relay QKD system.The dotted arrow stands for the quantum key distribution (QKD) process.The solid arrow stands for the re-encryption process.Relay node i re-encrypts the ciphertext c i and transfers c i+1 = c i ⊕ a i to the next node.

Figure 2 .
Figure 2. The model of public-XOR-key scheme with two endpoints.The dotted arrow stands for the QKD process.Relay node i calculates and publishes a i = Qk i ⊕ Qk i+1 , then dismisses the QKD keys immediately.The final key shared by Alice and Bob is Qk 1 = a 1 ⊕ a 2 ⊕ ... ⊕ a n−1 ⊕ Qk n .
Qk A is the QKD key shared by Alice and the relay node, Qk B is the QKD key shared by Bob and the relay node, Qk C is the QKD key shared by Charlie and the relay node.The relay node calculates and publishes Qk AB = Qk A ⊕ Qk B , Qk AC = Qk A ⊕ Qk C , Qk BC = Qk B ⊕ Qk C , then dismisses the QKD keys immediately.Bob calculates Q AB ⊕ Qk B , which is equal to Qk A .Then Bob and Alice share the same key Qk A .Charlie calculates Q AC ⊕ Qk C , which is equal to Qk A .Then Charlie and Alice share the same key Qk A .

Figure 3 .
Figure 3.The communications of three endpoints with Protocol 2 with repeated keys.The solid line stands for the QKD process.The relay node calculates and publishes Qk AB = Qk A ⊕ Qk B , Qk AC = Qk A ⊕ Qk C , Qk BC = Qk B ⊕ Qk C , and then dismisses the QKD keys immediately.The dotted line shows the internal attack, where the shared key is not one-time-pad.
and then dismisses the QKD keys immediately.Alice calculates Qk A 2 C 2 ⊕ Qk A 2 to get the key Qk C 2 , which is the final key shared with Charlie.Bob calculates Qk A 1 B 1 ⊕ Qk B 1 to get the key Qk A 1 , which is the final key shared with Alice.Charlie calculates Qk B 2 C 1 ⊕ Qk C 1 to get the key Qk B 2 , which is the final key shared with Bob.Since all QKD keys are used only once and are independent of each other, the third party can never access the keys he should not have.

Figure 4 .
Figure 4.The QKD network scheme with three endpoints based on the public-XOR-key scheme.The solid arrow stands for the QKD process.The dotted arrow indicates the key shared by each pair of endpoints.Relay node calculates and publishes QkA 1 B 1 = Qk A 1 ⊕ Qk B 1 , Qk A 2 C 2 = Qk A 2 ⊕ Qk C 2 , Qk B 2 C 1 = Qk B 2 ⊕ Qk C 1 ,and then dismisses the QKD keys immediately.Finally, Alice and Bob share the key Qk A 1 , Alice and Charlie share the key Qk C 2 , Bob and Charlie share the key Qk B 2 .
Figure 4.The QKD network scheme with three endpoints based on the public-XOR-key scheme.The solid arrow stands for the QKD process.The dotted arrow indicates the key shared by each pair of endpoints.Relay node calculates and publishes QkA 1 B 1 = Qk A 1 ⊕ Qk B 1 , Qk A 2 C 2 = Qk A 2 ⊕ Qk C 2 , Qk B 2 C 1 = Qk B 2 ⊕ Qk C 1 ,and then dismisses the QKD keys immediately.Finally, Alice and Bob share the key Qk A 1 , Alice and Charlie share the key Qk C 2 , Bob and Charlie share the key Qk B 2 .

Table 1 .
The contrast between Shannon's model and the model of the quantum key distribution (QKD) network.