scieee AI-readable full text Open interactive document viewer

Secure Coding Schemes and Code Design for the Wiretap Channel

Ke Zhang

Full text

Secure Coding Schemes and Code Design for the Wiretap Channel Ke Zhang July 1, 2014 Dedicated to My parents i Jury Members Dr. Ant´ onio Bec¸a Gonc¸alves Porto Professor Catedr´atico Faculdade de Ciˆencias da Universidade do Porto (Presidente) Dr. Marco Alexandre Cravo Gomes Professor Auxiliar Departamento de Engenharia Eletrot´ecnica e de Computadores Faculdade de Ciˆencia e Tecnologia Universidade de Coimbra Dr. At´ ılio Manuel da Silva Gameiro Professor Associado Departamento de Eletr´onica Telecomunicac¸ ˜oes e Inform´atica Universidade de Aveiro Dr. Lu´ ıs Filipe Coelho Antunes Professor Associado Faculdade de Ciˆencias Universidade do Porto Dr. Pedro Miguel Aives Brand˜ ao Professor Auxiliar Faculdade de Ciˆencias Universidade do Porto Dr. Miguel Ra´ ul Dias Rodrigues Professor Associado Convidado Faculdade de Ciˆencias da Universidade do Porto (Orientador) ii Acknowledgments This dissertation would not be possible without the contributions of several people. First and foremost, I would like to thank from my heart to my supervisor, Dr. Miguel Rodrigues, whose encouragement, guidance and support from the initial to the final stages has enabled me to develop understanding of the subject. His perfectionism and passion for research are always inspirational. I am especially grateful for all the opportunities that he provided me. I am especially indebted to Prof. Martin Tomlinson in University of Plymouth, who has contributed to the supervision of my research work during the four years Ph.D period. I would like to thank Martin for his mentoring, encouragement and constant support. My stay with the group of Prof. Martin Tomlison and Prof. Mohamed zaki Ahmed at the University of Plymouth was a great experience. The six months visiting research period in Plymouth have led to various research directions that considerably shaped this dissertation. I thank Professor Ahmed for receiving me and nice discussions with me, and the group members Mubarak Jibril, Nadia Awad and Salah Al-Hassan for such a nice environment. I am very grateful to my collaborators, Munnujahan Ara, Hugo Reboredo and Francesco Renna, who always offered help to me. I would like to thank all my lab mates who have made a comfortable working environment. My gratefulness to Alex and Elimary, who have been very kind and helpful throughout my stay at DCC (Departamento de Ciˆencia de Computadores) and extended all administrative support. I would also like to thank to IT (Instituto de Telecomunicac¸˜oes) and FCT (Fundac¸˜ao para a Ciˆencia e a Tecnologia) for the financial support during my PhD1. As always, my greatest gratitude is to my parents and my boyfriend. I dedicate this 1This work was supported by Fundac¸˜ao para a Ciˆencia e a Tecnologia (the Portuguese National Science Foundation) under grant SFRH/BD/69852/2010. Part of this work was also supported by Fundac¸˜ao para a Ciˆencia e a Tecnologia, Portugal through the research project PTDC/EEATEL/100854/2008 and CMUPT/SIA/0026/2009. iii dissertation to them with love. Finally, I would like to say ‘Thank you!’ to everyone in Departamento de Ciˆencia de Computadores, Faculdade de Ciˆencias da Universidade do Porto. Your kindnesses have made Porto a warm home for me. iv Resumo Como as redes sem fio continuam a florescer, a n´ıvel mundial, as quest˜oes de seguranc¸a nessas redes desempenham um papel cada vez mais importante. Ao contr´ario dos servic¸os de seguranc¸a tradicionais, que se baseiam em esquemas de criptografia na camada de aplicac¸˜ao, a abordagem baseada em teoria da informac¸˜ao abre uma direc¸˜ao promissora para atingir comunicac¸˜ao sigilosa na camada f´ısica. Esta tese basea-se em fundamentos de seguranc¸a da teoria da informac¸˜ao para analisar e desenvolver novos esquemas de codificac¸˜ao confi´aveis e seguros, e novas t´ecnicas de “code design” na camada f´ısica. Em primeiro lugar, ´e analisada a confiabilidade e a seguranc¸a de c´odigos ortogonais, utilizando uma estrutura de codificac¸˜ao de Wyner, na presenc¸a de um canal de escuta Gaussiano. Tanto os resultados anal´ıticos como os de simulac¸˜ao mostram que com os c´odigos ortogonais se pode conseguir uma comunicac¸˜ao confi´avel e secreta quando o canal de escuta ´e Gaussiano com degradac¸˜ao, em regime de banda larga. Em segundo lugar, ´e proposto um codificador simplificado para o esquema de “syndrome coding”, o que torna o esquema pr´atico para os c´odigos em que o comprimento dos bits de paridade ´e longo. ´ E descrita uma forma recursiva eficiente para a avaliac¸˜ao da ambiguidade no esquema de “syndrome coding” tradicional, que fornece indicac¸˜oes sobre formas de construir melhores c´odigos. A melhor t´ecnica de “code design” ´e proposta para o esquema de “syndrome coding”, e ´e avaliada com uma m´etrica secretismo da informac¸˜ao: a equivocac¸˜ao. Mostra-se que os melhores c´odigos de equivocac¸˜ao tˆem um melhor desempenho no sigilo para o esquema de “syndrome coding” do que os c´odigos conhecidos anteriormente. Em terceiro lugar, ´e estudado o desempenho, em termos de seguranc¸a, dos c´odigos aleat´orios no esquema de “syndrome coding” tradicional. Al´em de uma an´alise de Monte Carlo, ´e proposta uma forma te´orica para avaliar a equivocac¸˜ao m´edia de c´odigos aleat´orios lineares. Mostra-se que esta forma te´orica ´e muito precisa, e para c´odigos longos ´e muito mais r´apida e pr´atica do que a simulac¸˜ao de Monte Carlo. Os resultados mostram que, quando o comprimento do c´odigo aumenta, a taxa de informac¸˜ao se aproxima da v capacidade de sigilo . Em quarto lugar, s˜ao propostos dois esquemas de “syndrome coding” baseados em cadeias para um canal com escutas bin´ario e sim´etrico. Mostra-se que com o esquema baseado em cadeias no qual se utilizam uma func¸˜ao de “hash”, para um valor suficientemente grande do tamanho da cadeia, se consegue um elevado n´ıvel de seguranc¸a. Por fim, ´e analisada a equivocac¸˜ao do conhecido sistema de criptografia de chave p´ublica McEliece em diferentes ataques, o que mostra que h´a consider´avel fuga de informac¸˜oes para um espi˜ao. ´ E proposta uma modificac¸˜ao ao sistema de codificac¸˜ao de chave p´ublica de McEliece para reduzir a fuga de informac¸˜ao, que apresenta uma fuga nula no caso de um ataque de Brickell, sendo o custo para esse ac´escimo de seguranc¸a uma taxa de comunicac¸˜ao inferior. vi 7.2.2 Popular Attacks . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 7.2.3 Equivocation Analysis . . . . . . . . . . . . . . . . . . . . . . . 95 7.3 Modified McEliece Public Key Encryption System with Higher Security Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 7.3.1 System Description . . . . . . . . . . . . . . . . . . . . . . . . . 99 7.3.1.1 Key generation . . . . . . . . . . . . . . . . . . . . . . 99 7.3.1.2 Message encryption . . . . . . . . . . . . . . . . . . . 99 7.3.1.3 Message decryption . . . . . . . . . . . . . . . . . . . 101 7.3.2 Equivocation Analysis . . . . . . . . . . . . . . . . . . . . . . . 101 7.3.3 Information Rate Analysis . . . . . . . . . . . . . . . . . . . . . 104 7.4 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 8 Conclusions and Future Work 107 8.1 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 8.2 Future work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 References 113 A Proof of the MAP Decoder for the Syndrome Coding Scheme 123 B Best Equivocation Codes Table 129 xiii List of Figures 1.1 Layered protocol architecture . . . . . . . . . . . . . . . . . . . . . . . . 3 2.1 Channel model in cryptographic . . . . . . . . . . . . . . . . . . . . . . 13 2.2 Information theoretic security . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3 Shannon’s cryptosystem . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.4 The wiretap model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.5 The Binary erasure wiretap model . . . . . . . . . . . . . . . . . . . . . 19 2.6 The Binary symmetric wiretap model . . . . . . . . . . . . . . . . . . . 20 2.7 Gaussian wiretap channel . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2.8 Typical transmission system . . . . . . . . . . . . . . . . . . . . . . . . 22 2.9 Simplified model of a coded system . . . . . . . . . . . . . . . . . . . . 23 2.10 Binning structure in Wyner’s coding scheme . . . . . . . . . . . . . . . . 25 3.1 Tradeoff between Csand ξb/N0for various values of α. Solid lines represent the true curve. Dashed lines represent the affine expansion. . . . 31 3.2 Codeword error probability between the legitimate parties for α= 0.08. . 38 3.3 Eavesdropper equivocation lower bound for α= 0.08. Solid lines correspond to the equivocation lower bound. Dashed lines correspond to the message entropy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 3.4 Normalized eavesdropper equivocation gap upper bound γfor α= 0.08. γis obtained by using the equivocation lower bound in H(W)−H(W|YE) H(W). . 39 xiv 4.1 Comparison of the normalised equivocation of best equivocation and best known codes having 26 parity bits . . . . . . . . . . . . . . . . . . . . . 61 4.2 Normalised equivocation vs. information rate for Best Equivocation Codes as a function of m. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 5.1 The theoretical pmf of Pn w=1 p(S)w, when p(S)1= 0............ 72 5.2 The theoretical pmf of Pn w=1 p(S)w, when p(S)1=α·(1 −α)n−1. . . . 72 5.3 The simulated pmf of Pn w=1 p(S)w, when p(S)1= 0............ 73 5.4 The simulated pmf of Pn w=1 p(S)w, when p(S)1=α·(1 −α)n−1. . . . . 73 5.5 The cumulative distribution probability of Pn w=1 p(S)w, when p(S)1= 0. 74 5.6 The cumulative distribution probability of Pn w=1 p(S)w, when p(S)1= α·(1 −α)n−1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 5.7 The normalised average equivocation vs. the code length for the random codes (m= 20,sample number=10000) . . . . . . . . . . . . . . . . . . 75 5.8 The standard deviation of the normalised equivocation vs. the code length for the random codes (m= 20) . . . . . . . . . . . . . . . . . . . . . . . 76 5.9 The normalised average equivocation vs. the information rate for the random codes with different values of m. . . . . . . . . . . . . . . . . . 76 6.1 The encoder model of the chain based syndrome coding scheme . . . . . 81 6.2 The encoder model of the chain based syndrome coding scheme with a hash function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 6.3 Normalised equivocation vs. αfor the (14,8) repeated Hamming code . . 88 6.4 KL distance vs. αfor the (14,8) repeated Hamming code . . . . . . . . . 89 7.1 Wiretap scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 7.2 Normalised equivocation vs. information rate (k/n)............ 97 7.3 Work factor vs. information rate (k/n) . . . . . . . . . . . . . . . . . . . 97 7.4 Main blocks of the Modified McEliece cryptosystem . . . . . . . . . . . 99 xv 8.1 Code concatenation model for BSC . . . . . . . . . . . . . . . . . . . . 110 xvi List of Tables 3.1 Tradeoff between rate, reliability and security . . . . . . . . . . . . . . . 40 4.1 Best Equivocation Codes that achieve 90% secrecy in syndrome coding for α=.05 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 4.2 Well packed BKC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 5.1 w-error events statistic (α= 0.05) . . . . . . . . . . . . . . . . . . . . . 71 7.1 Information rate for traditional McEliece system and modified McEliece system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 B.1 Best Equivocation Code Table (BEC) . . . . . . . . . . . . . . . . . . . 129 xvii Abbreviations GSM Global System For Mobile Communication MAC Multiple Access Channel SNR Signal-to-Noise Ratio LDPC Low Density Parity Check DMC Discrete Memoryless Channel BEWC Binary Erasure Wiretap Channel BSWC Binary Symmetric Wiretap Channel i.i.d. Independent and identically distributed MAP Maximum a Posteriori Probability BEC Best Equivocation Codes BKC Best Known Codes AWGN Additive White Gaussian Noise KL Kullback-Leibler pmf probability mass function CDF Cumulative Distribution Function KS Kolmogorov-Smirnov xviii Chapter 1-Introduction To date, research on physical-layer security has mainly sought to establish the fundamental reliability and security limits of various communications channels, by computing the secrecy capacity of various single-user channel models or the secrecy capacity region of some multi-user channel models [22–25]. Moreover, a number of attempts have been made in designing code scheme for the secure communication over the wiretap channels. For example, Wei [26] studies channel coding for reliable and secure communications over wiretap channels, showing how to encode secret information using cosets of certain linear block codes. From an arbitrary given channel code over a discrete or Gaussian memoryless channel, Hayashi [27] constructs a wiretap code with the strong security. Other coding schemes for wiretap channels exploit low-density parity-check (LDPC) codes [28–30] or polar codes [31–34]. More recently, Belfiore and Oggier propose a wiretap lattice code for Gaussian wiretap channels [35] and the Rayleigh fading Wiretap Channel [36], introducing the notion of secrecy gain as a new code design criterion. Currently, the coding schemes designed for the wiretap channels have been employed for enhancing the security of the communication in the following three ways: (i) the wiretap channel coding scheme is used to enhance the protection of the secret key employed in the encryption algorithm [37, 38]; (ii) the wiretap channel coding scheme is employed as the encoder of the message to enhance the security of the transmitted codewords in a noisy eavesdropper channel [39, 40]; (iii) the wiretap channel coding is employed to increase the security of a Data Encryption Standard (DES) block cipher operating in the ciphertext feedback mode [41–44]. In spite of the numerous of these contributions motioned above, the general problem of design of physical-layer coding schemes for secure communication over wiretap channels is still open at large. 1.2 Thesis organization In this dissertation, we propose three schemes–the orthogonal coding scheme, the chain based syndrome coding scheme and the modified McEliece public-key cryptosystem– to achieve a higher security level in wiretap channels. Moreover, we make a detailed research on the traditional syndrome coding scheme. We present a design technique to produce the best codes for the syndrome coding scheme as measured by an information theoretic secrecy metric, the equivocation rate. We also propose a theoretical analysis 5 Chapter 1-Introduction method to calculate the average equivocation of the random linear binary codes in the syndrome coding scheme. In Chapter 2, we briefly review the basis of information theoretic security and some popular secure coding schemes for the wiretap channel as well as prior work in the area and its relation to the work in this dissertation. In Chapter 3, we consider the communication in the Gaussian wiretap channel in the wideband regime. Based on Wyner’s code construction, an orthogonal coding scheme was proposed. By the theoretical analysis on the error probability of the main channel and the equivocation of the eavesdropper channel and some simulation results, it is shown that the proposed orthogonal codes can achieve a reliable and perfectly secure communication in the Gaussian wiretap channel in the asymptotic wideband regime, which entails communication at a vanishing rate. In Chapter 4, we propose an efficient recursive method to determine the equivocation rate for the Binary Symmetric Channel (BSC) and any linear binary code. Based on this practical algorithm, a code design technique is presented to produce the best codes for the syndrome coding scheme as measured by an information secrecy metric: the equivocation rate. Some Best Equivocation Codes (BEC) for the syndrome coding scheme are published. It is shown that the Best Equivocation Codes have a better performance on the secrecy for the syndrome coding scheme than the best known codes (BKC), which were designed for the error correcting scheme. In Chapter 5, we analyse the security performance of the random linear codes in Wyner’s syndrome coding scheme from the viewpoint of the information theoretical security. We propose a theoretical way to calculate the average equivocation of the (n, k)random codes, and compare it with the results from the Monte Carlo experiments. Various examples are given to show the accuracy of our analysis. It is shown that this theoretical method works very well for the codes with the large values of n−k, which are hardly calculated by the Monte Carlo method. Using our theoretical method, the relation between the code length and the equivocation and the relation between information rate and equivocation are explored. In Chapter 6, we propose a chain based syndrome coding scheme for the secure communication in a specific wiretap channel, where the main channel is noiseless and the 6 Chapter 1-Introduction eavesdropper channel is binary symmetric, which represents a generalization of Wyner’s conventional syndrome coding scheme. By using the channel decoder output equivocation of the eavesdropper to measure the security of the scheme, extensive analytic and numerical results demonstrate that the chain based syndrome coding scheme with a hash function exhibits significantly lower information leakage than the conventional syndrome coding scheme. In Chapter 7, we analyse the equivocation of the eavesdropper under different attacks when the legitimate parties employ the McEliece public-key cryptosystem in the traditional wiretap scenario. It is shown that there is considerable information leakage to the eavesdropper under Brickell’s attack. A modified McEliece public-key cryptosystem is proposed to reduce the information leakage under Brickell’s attack. It is proved that the modified system exhibits zero information leakage under Brickell’s attack, and the price for this higher security is a lower information rate. In Chapter 8, we give the conclusions of this dissertation, summarize the main contributions and suggestions for future work. 1.3 Thesis contribution This dissertation focuses on the design of the secure physical layer coding schemes for different types of wiretap channels, based on Wyner’s coding scheme. As the syndrome coding scheme has been applied widely, it is relevant to study the impact of different code designs for the syndrome coding scheme, including random designs and best equivocation designs. To consider the first problem, in this dissertation we set up a putative code model to study the security performance of the random codes in the syndrome coding scheme. As we know, most of the code design methods are for the error correcting system [45–49], which aim to guarantee the reliability of the communication. To consider the issue of the security, firstly we have to give a quantified analysis on the security level of the syndrome coding scheme for different codes employed, which has been addressed in this dissertation: we propose an efficient recursive method for determining the equivocation for the Binary Symmetric Channel (BSC) and any linear binary code in the syndrome coding scheme. Based on this efficient way to calculate the equivocation of the code, we propose a code design method to construct the best code for the syndrome coding scheme. Finally, we apply the information-theoretic analysis method to study the 7 Chapter 1-Introduction secrecy of McEliece public key encryption system, and propose a modified system to combat some attack. The major scientific contributions of the dissertation are outlined as follows. •A study of the reliability and security of orthogonal codes in Gaussian wiretap channels in wideband regime (Chapter 3). We prove that this codes can achieve reliable and perfect secrecy communication in the Gaussian wiretap channel in wideband regime, by analysis on the error probability of the main channel and the equivocation of the eavesdropper channel. We also show various simulation results that corroborate the analysis. •A simplified encoder for the syndrome coding scheme (Chapter 4). In the traditional syndrome coding scheme, there is the need to generate an error-syndrome table as a look-up table for the encoder, but this also requires a considerable memory to store this table for long codes. We propose a way to encode the message without a look-up table, which makes the syndrome coding scheme more practical for the long codes. •An efficient recursive calculation method for the equivocation of the syndrome coding scheme (Chapter 4). The equivocation is an important metric to quantify the security level of the communication. The traditional calculation method is not efficient and practical for the long codes, so we introduce a very efficient way to calculate the equivocation in the syndrome coding scheme, which is also important for the code design and the performance analysis of the random codes in the following chapters. •Best equivocation codes design for the syndrome coding scheme (Chapter 4). Based on the efficient recursive calculation of the equivocation, we also propose a code design technique to construct the best codes for the syndrome coding scheme. The target of this code design is to construct the codes with best security performance, which is different from the code design for the error correcting scheme. •Analysis of the average equivocation of the random codes in the syndrome coding scheme (Chapter 5). A theoretical model is proposed to analyse the security performance of syndrome coding schemes with random codes, which also shows the potential of the scheme for secret communication. •A chain based syndrome coding scheme (Chapter 6). As the conventional syndrome coding scheme is widely employed, we propose a chain based syndrome coding scheme as a generalization of the syndrome coding scheme and a chain 8 Chapter 1-Introduction based syndrome coding scheme with a hash function to improve the security level of the communication. The new scheme with a hash function has increased secrecy levels than the traditional one, as the value of the chain depth increases. •A modified McEliece public-key cryptosystem with higher security level (Chapter 7). We propose a modified cryptosystem to achieve a higher security level of the communication. These contributions led to the following publications: 1. K. Zhang, M. Tomlinson, M. Z. Ahmed, Marcel Ambroze and M. R. D. Rodrigues, Best Binary Equivocation Code Construction for Syndrome Coding,IET communications, May 2014. 2. K. Zhang, M. Tomlinson, M. Z. Ahmed, A Chain Based Syndrome Coding Scheme for Secure Communication in the Wiretap Channel, IEEE Vehicular Technology Conference spring, Soul, South Korea, May, 2014. 3. K. Zhang, M. Tomlinson, M. Z. Ahmed and Marcel Ambroze, The Average Equivocation of Random Linear Binary Codes in Syndrome Coding, International Conference on Telecommunications, Lisbon, Portugal, May, 2014. 4. K. Zhang, M. Tomlinson, M. Z. Ahmed A Modified McEliece Public Key Encryption System with a Higher Security Level, IEEE International Conference on Information Science and Technology (ICIST 2013), Yangzhou, China, March, 2013. 5. K. Zhang, M. R. D. Rodrigues, M. Z. Ahmed, M. Tomlinson and F. Cercas, Orthogonal Signalling in the Gaussian Wiretap Channel in the Wideband Regime, IEEE Vehicular Technology Conference Spring, Yokohama, Japan, May 2012. 9 Chapter 2 Information-Theoretic Security and Coding for Secure Communications This chapter briefly reviews the basis of information-theoretic security and physical-layer security, together with some popular transmission schemes for secure communication. In particular, we introduce Shannon’s idea of perfect secrecy, the wiretap channel model, the measures of reliability and security and the secrecy capacity of different wiretap channels. We also describe Wyner’s coding scheme and the syndrome coding scheme, which will be considered later in this thesis. 2.1 Information theoretic security There are two main notions of security: the security of a cryptographic system can rely either on the computational infeasibility of breaking it (computational security notion), or on the theoretical impossibility of breaking it, even using infinite computing power (information theoretic or unconditional security notion). It is important to understand the differences between these two notions and how they affect the choice of the technology in a practical scenario. 2.1.1 Information theoretic security versus computational security To guarantee the confidentiality of the information transmitted by the transmitter, most of the cryptographic schemes, which are widely applied in modern communication sys- 11 Chapter 2-Information-Theoretic Security and Coding for Secure Communications tems, are based on computational security and rely on assumptions on the limitations of eavesdropper’s computing resources. Computational security introduces two relaxations to perfect security: (1) security is only against the adversaries with limited computer resources; (2) a small probability of success is allowed. Actually, the computational security is based on complexity theory. Usually, the system is deemed as secure, if the computation complexity of the decoding algorithm is equal to that required for solving ”hard” mathematical problems (e.g. NP-hard problems). The proved lower bounds on the running time of algorithms solving specific problems are either rather weak or valid only in special computational models. For example, the cryptographic algorithm like RSA and AES are deemed secure for a large number of applications, because so far no efficient attacks have been proposed. So-called provable computational security is always conditional, unreasonable with today’s fast improved technology and not reliable in the long term. Computing power increases very fast, so the brute-force attacks, which were considered infeasible, become possible later. It has been shown that the integer-factoring as well as the discrete logarithm problem can be solved in polynomial-time by quantum computer [50]. In general, the security of the computational secure system is measured by whether it survives a set of attacks or not and there are no precise metrics to compare the security level of different ciphers. Using the security metric in the information theory, which was introduced by Shannon, it can be shown that the cryptographic paradigm can never provide information theoretic security, since the communication channel between the friendly parties and the eavesdropper is error free. Consequently, practical computational security is always conditional and additionally faces the risk of being broken by progress in the theory of efficient algorithms or in hardware engineering [8]. Therefore, it is desirable from both a scientific and practical point of view to design cryptosystems whose security is not based on any assumptions and can be proven rigorously. To avoid these assumptions associated with the computational security, we can consider another criterion based on an information theoretic measure, which is the metric of secrecy in information theoretic security. We treat the messages and the encrypted codewords as random variables denoted by Mand V, respectively, and measure the security of the communication by the entropy of the message given the received codeword H(M|V). If this conditional entropy H(M|V)is equal to the entropy of the message H(M), we deem the communication to be perfect secrecy, which is due to the fact that H(M|V) = H(M)– the eavesdropper can not extract any useful information about the transmitted message M from the received vector V– means that p(M|V) = p(M), so the best the eavesdropper can do is to guess the message. The main advantages of information theoretic security derive 12 Chapter 2-Information-Theoretic Security and Coding for Secure Communications Figure 2.1: Channel model in cryptographic from the fact that it does not impose computational restrictions on the eavesdropper and that the information leakage to the eavesdropper can be precisely measured as a function of the channel quality and the block length of the message. However, there exist few practical scheme, that achieve perfect secrecy to date. The channel model mentioned above (Figure 2.1) is too pessimistic from the viewpoint of security, because practical communications channels always exhibit various type of impairments, such as noise, that can be leveraged to secure information further. The incorporation of such impairments onto the communications channel model leads to the wiretap channel, which is widely employed in information theoretic security. The basic idea of the information theoretic approach to securely transmit confidential messages (without using an encryption key) to a legitimate receiver is to use the inherent randomness of the physical medium. In this approach, a transmitter intentionally adds structural randomness to prevent potential eavesdroppers and attackers from intercepting useful information while guaranteeing that a legitimate receiver can obtain the information. Figure 2.2 shows the relation between the information theoretical security approach and the conventional encryption method. The information theoretical security approach combines the ’encryption’ and ’encoding’ into a single block ’secure coding’ to guarantee both reliability and security of the communication [2]. In fact, the information theoretic security has already been realized in practice through quantum key distribution and it has been proved that suitable long codes can come exponentially close to perfect secrecy [51]. Based on the comparisons above, the information theoretic security algorithms in a classical system exploit physical layer attributes of channel randomness for secure communications, and provide an additional layer of protection for information transmission, which gives a very promising direction of the research on the communication security. 13 Chapter 2-Information-Theoretic Security and Coding for Secure Communications Figure 2.2: Information theoretic security 2.1.2 Shannon’s notion of perfect secrecy The fundamental principle of the information theoretic security is based on Shannon’s idea of perfect secrecy, which was introduced by Shannon in 1949 [9]. The following cryptosystem is considered (Figure 2.3): the sender wants to send a message Mto the legitimate receiver secretly by encrypting it into a cipher-text Vusing a secret key, K. The eavesdropper observes this cipher-text Vwithout any degradation, which corresponds to a scenario where the channel between the transmitter and the eavesdropper is noiseless, and tries to obtain the original message M. The security of this system relies on the secret key, K, which is shared only between the transmitter and the legitimate receiver. Figure 2.3: Shannon’s cryptosystem 14 Chapter 2-Information-Theoretic Security and Coding for Secure Communications [X(1) X(2) ···X(n)], the set of channel outputs (the receive codewords) by Y= [Y(1) Y(2) ···Y(n)], and the set of noise values by N= [N(1) N(2) ···N(n)].3We also assume the average power constraint: 1 n n X i=1 |X(i)|2≤P(2.15) The secrecy capacity Csof the Gaussian wiretap channel, which corresponds to the supremum of achievable perfect secrecy rate, is given by: Cs= sup pX(x): E{|X|2}≤P I(X;YM)−I(X;YE)(2.16) where pX(x)denotes the probability distribution of the random variable X. The secrecy capacity, which in the degraded Gaussian wiretap channel is achieved by circularly symmetric complex Gaussian inputs, admits the closed form expression [55]: Cs=[CM−CE]+=log21 + P N−log21 + α·P N+ (2.17) where [x]+= max (0, x),CM= log2(1 + P/N)is the capacity of the main channel and CE= log2(1 + α·P/N)is the capacity of the eavesdropper channel. It is important to note that the discrete-time wiretap channel model in (2.13) and (2.14) arises from the continuous-time model: yM(t) = x(t) + nM(t)(2.18) yE(t) = x(t) + nE(t)(2.19) where yM(t)and yE(t)are the receive signals at the output of the main and eavesdropper channels, respectively, x(t)is the transmit information-bearing signal, and nM(t)and nE(t)are white Gaussian noise with double-sided power spectral density NM0 2and NE0 2, respectively. By letting the effective duration and bandwidth of the transmit signal be T and Bthen passing the receive signals through an orthonormal transformation with n= TB complex dimensions is sufficient to preserve all the information (asymptotically). Note that the rate in bits per second per hertz is equal to the number of bits per dimension, i.e., R=k TB =k n(2.20) 3We use subscripts to indicate whether the vector Yand the vector Nrefer to the main or the eavesdropper channel. 21 Chapter 2-Information-Theoretic Security and Coding for Secure Communications where kdenotes the number of bits conveyed by the information bearing signal x(t). Note also that the power is given by: P=ξs T=k·ξb T=R·ξb·B(2.21) where ξsis the signal energy and ξbis the energy per bit. 2.2 Some basic coding schemes and code design for the wiretap channels A typical transmission system can be represented by the block diagram shown in Figure 2.8. There are two pairs of encoder-decoder. The source encoder is to transform the source output into a sequence of vectors, M. The channel encoder is to transform M into a discrete encoded sequence Xcalled codeword. The issues of the reliability and the security are considered in channel coding. To focus attention on the channel coding, the information source and the source encoder can be combined into a digital source with output M, and the source decoder and the destination can be combined into a digital sink with input ˆ M(Figure 2.9). Figure 2.8: Typical transmission system Traditionally the design and implementation of the channel coding in physical layer is to combat the noise in the channel and to guarantee the reliability of the communication. 1948, Shannon [57] demonstrated that by proper encoding of the information, errors induced by a noisy channel can be reduced to any desired level without sacrificing the rate of information, as long as the information rate is less than the capacity of the channel. 22 Chapter 2-Information-Theoretic Security and Coding for Secure Communications Figure 2.9: Simplified model of a coded system Error-correcting coding scheme is the main scheme to correct the errors and to guarantee the reliability of the communication. Wyner’s coding scheme was introduced to guarantee the security of the communication in the wiretap channel and syndrome coding scheme is a specific case of Wyner’s coding scheme, which is an important coding scheme in the physical layer and has been widely studied for various applications [28, 58–60]. In this section, we describe some important secure coding schemes and some code design techniques in the physical layer, which will be used later. 2.2.1 Linear block codes One of the most useful codes is block codes [61], which can be use in both errorcorrecting coding schemes and the Wyner’s coding scheme. In block coding, the binary information sequence is segmented into message blocks of fixed length k; each message block, denoted by M, is a k-bit vector. There are 2kdistinct messages in total. The encoder transform each message Minto a n-bit codeword X, according to certain rules. The linear block codes are defined as follows: Definition 1. A block code of length nand 2kcodewords is called a linear (n, k)code if and only if the modulo-2 sum of two codewords is also a codeword. Linear block codes are defined and described in terms of a k×ngenerator matrix Gor by am×nparity check matrix H. If Mis a k-bit message to be encoded, the corresponding 23 Chapter 2-Information-Theoretic Security and Coding for Secure Communications n-bit codeword is: X=M·G, which is transmitted over a noisy channel. The output of the channel is a n-bit vector Y=X+e, in which eis a n-bit error vector induced by the channel. When Yis received, the decoder computes a (n−k)-bit vector: S=Y·HT, which is called the syndrome of Y.S=0if and only if Yis a codeword, and S6=0if and only if Y is not a codeword. According to S, some error patterns can be detected and corrected. Definition 2. The minimum distance of a block code C, denoted by d, is defined as: d= min{d(x1,x2) : x1,x2∈C, x16=x2}(2.22) in which d(x1,x2)is the Hamming distance between two different codeword in C: x1and x2, which is defined as the number of places where they differ. The error-detecting and error-correcting capabilities of a block code are determined by the minimum distance of the code. A block code with minimum distance dis capable of detecting all the error patterns of d−1or fewer errors and correcting all the error patterns of t=⌊(d−1)/2⌋or fewer errors. 2.2.2 Wyner’s coding scheme There are two goals of the code scheme design in the wiretap channel: (i) maximize the information rate of reliable communication between the transmitter and the legitimate receiver (reliability condition); (ii) guarantee that the eavesdropper knows the original information as little as possible (secrecy condition). In wiretap channel, the channel between legitimate parties has a higher capacity (lower noise) than that in the eavesdropper channel. Appropriate coding techniques exploit the difference of noise levels in order to guarantee confidential communications between legitimate parties. Wyner’s coding scheme gives the basic structure of the secrecy capacity achieving coding scheme put forth in [10] for the wiretap channel. The basic idea of Wyner’s coding scheme is to add randomness in the encoding process, i.e. to assign multiple codewords to each message. The scheme achieves the reliability and security objectives by incorporating redundancy as well as randomness in a binning structure, as illustrated in Figure 2.10. 24 Chapter 2-Information-Theoretic Security and Coding for Secure Communications Figure 2.10: Binning structure in Wyner’s coding scheme In particular, the coding scheme, and the encoding and decoding procedure operate as follows: • Codebook : The codebook Cis composed of a number of equal size sub-codebooks C1,...,CNg. The number of sub-codebooks is Ng= 2nCs= 2n(CM−CE). The total number of codewords in the codebook is Nc= 2nCMand the total number of codewords in each sub-codebook is Nc/g = 2nCE, in which Csis the secrecy capacity of the wiretap channel, CMis the channel capacity of the main channel and CEis the channel capacity of the eavesdropper channel. X1,···, XNcdenote all Nccodewords in the codebook. • Encoding : The transmitter maps the message Minto a randomly chosen codeword from the corresponding sub-codebook. This codeword is transmitted over the channel. • Decoding : The legitimate receiver can successfully decode over the codebook C, but the eavesdropper receiver can not. This ensures reliability and perfect secrecy. Wyner’s coding construction, which revolves around the notion of stochastic encoding, suggests a basic structure to design secrecy capacity achieving codes for reliable and secure communication over the wiretap channel. 25 Chapter 2-Information-Theoretic Security and Coding for Secure Communications 2.2.3 Syndrome coding scheme Even though the Wyner’s code construction does not provide any practical method for constructing a real code, the binning structure is reproduced by many researchers, attempting to construct secret codes for the wiretap channel. Wyner and Ozarow used the following syndrome coding strategy (also known as coset encoding or nested code) [10,12] to show that perfect secrecy can be achieved when the main channel is error free and the eavesdropper channel is binary symmetric(see Figure 2.6). Alice wishes to convey a sequence of independent and uniformly distributed m-bit binary messages to the legitimate receiver, M(1),...,M(b), in which bis the block length of the messages. This sequence of m-bit messages M(1),...,M(b)is encoded into a sequence of n-bit codewords X(1),...,X(b). Bob observes the sequence of n-bit codewords YM(1),...,YM(b)where YM(i) = X(i), i = 1,...,b (2.23) and Eve observes the sequence of n-bit codewords YE(1),...,YE(b)where YE(i) = X(i) + e(i), i = 1,...,b (2.24) in which ’+’ is mod 2 addition and e(i)represents a n-bit error vector arising from the binary symmetric channel. Bob produces the sequence of original messages M(1),...,M(b) from the main channel output sequence YM(1),...,YM(b), whereas Eve produces a sequence of message estimates ˆ M(1),..., ˆ M(b)from the eavesdropper channel output sequence YE(1),...,YE(b). The syndrome coding scheme uses a (n, k, 2t+1) linear block code capable of correcting terrors, defined either by a k×ngenerator matrix Gor by a (n−k)×nparity check matrix H[61]. It is a property of any linear block code that there exist 2n−kdistinct minimum weight error patterns in which each pattern produces a distinct syndrome of the total 2n−ksyndromes. These minimum weight error patterns are the coset leaders of the code and may be represented by a error syndrome table. For perfect codes all error patterns in the table are the n-bit binary vectors with a weight w≤t. For non-perfect codes some of the error patterns in the table are n-bit binary vectors with a weight w≤t and the remaining error patterns are n-bit binary vectors with a weight w > t. Regardless of whether or not the code is perfect, in syndrome coding all 2n−ksyndromes are used to send messages. This ’error-syndrome table’, which is key to the operation of syndrome based coding schemes, is assumed to be known by Alice, Bob and Eve. The encoding and decoding processes are as follows. 26 Chapter 2-Information-Theoretic Security and Coding for Secure Communications 2.2.3.1 Encoder Alice produces the n-bit vector X(i)from the m= (n−k)-bit message M(i)at time i: •Alice generates a n-bit codeword CT(i)from a random k-bit vector DR(i): CT(i) = DR(i)×G(2.25) •Alice equates the mbit message to an mbit syndrome ST(i)and uses the error syndrome table to find the n-bit error pattern ET(i),ST(i) = M(i). •Alice then generates the n-bit vector X(i)by the adding the n-bit codeword CT(i) to the n-bit error pattern ET(i), i.e., X(i) = CT(i) + ET(i)(2.26) The information rate of the syndrome coding scheme is R=n−k n=m n. 2.2.3.2 Legitimate decoder We assume that Bob uses look up table syndrome decoding to determine the original messages. By computing the syndrome associated with the received vector, which is given by: SBob (i) = YM(i)×HT=X(i)×HT=ST(i)(2.27) and then the original message is immediately as follows: M(i) = SBob (i) = ST(i)(2.28) 2.2.3.3 Eavesdropper decoder We also assume that Eve – as Bob – uses look up table syndrome decoding to estimate the original messages. By computing the syndrome associated with the received vector as follows: SEve (i) = YE(i)×HT= (X(i) + e(i)) ×HT=ST(i) + Se(i)(2.29) then the estimate of the message is given by: ˆ M(i) = SEve (i) = M(i) + Se(i)(2.30) 27 Chapter 2-Information-Theoretic Security and Coding for Secure Communications The syndrome coding scheme has been widely studied by employing different kinds of codes. For example, Thangaraj et al. considered nested LDPC codes for the case when the main channel is noiseless, and showed that this syndrome coding scheme achieves both the reliability and the security criterion [28]. Liu et al. also considered noiseless main channels in [58], with a BEC, BSC, or an AWGN channel to the eavesdropper. In [59] Liu et al. considered nested codes designed for the BEWC used over general binary input symmetric channels for transmission at rates below the secrecy capacity. In [60], Chen and Vinck showed that using random linear codes in syndrome coding scheme can achieve the secrecy capacity over the binary symmetric wiretap channel and an upper bound on the information leakage was derived. Moreover, syndrome coding scheme by polar codes are secrecy capacity achieving for the wiretap channel, which has been shown by several research groups independently [31, 34]. For the case that both of the main channel and the eavesdropper channel are noisy, channel noise and the resulting error rate could have non-negligible effect on both decoding messages by the legitimate receiver and attack by the eavesdropper. In [43] and [44], Yin et al. have studied the effects of channel errors on security and decoding error probability of some encryption systems when the main channel and the eavesdropper channel are both binary symmetric channels, and have suggested the tradeoff between communication reliability and security. Wiretap channel coding for securing noisy communications has also been studied in [28,62,63]. For example, in [28], Thangaraj et al. employ a code concatenation scheme with a combination of the error-correcting coding scheme and the syndrome coding scheme in the wiretap channel, in which both the main channel and the eavesdropper channel are noisy. In this scheme, when the main channel is less noisy than the eavesdropper channel, the errors in the main channel can be cleaned up, which means the main channel becomes error free, but there are still some errors in the eavesdropper channel. In [62], the transmitter ensures secrecy of communication by utilizing some of the available power to produce “artificial noise”, such that only the eavesdropper’s channel is degraded. 28 Chapter 3 Orthogonal Codes for Secure Communication in the Wideband Regime This chapter investigates the use of orthogonal codes in the structure of Wyner’s coding scheme to realize a reliable and secure communication in the wideband regime. In particular, the error probability of main channel and the equivocation of the eavesdropper have been analysed and simulated. It shows that orthogonal codes achieve the secrecy capacity in Gaussian wiretap channel in the wideband regime. 3.1 Introduction Wyner proposed an very important secure coding strategy (called Wyner’s coding scheme) in wiretap channel, suggesting that encoding for reliability and security should partition the codebook into sub-codebooks, which provides a basic code design strategy for secure communication in wiretap channel [26,28,35]. Based on the structure of Wyner’s coding scheme, a number of attempts have been made in designing coding schemes for secure communication over wiretap channels. For example, Liu et al. [58] propose the use of secure nested coding schemes for secure communication over a type II Gaussian wiretap channel, based on cosets of a good code sequence or cosets of the dual of a good code sequence. Orthogonal codes have been widely studied for various applications. It has been proven 29 Chapter 3-Orthogonal Codes for Secure Communication in the Wideband Regime that the error probability of the orthogonal codes can be made arbitrarily small by making the number of the codewords tends to infinity for fixed information rate R, and orthogonal codes achieve the secrecy capacity bound as the number of codeword goes to infinity in the Additive white Gaussian noise (AWGN) channel in wideband regime, when the information rate R < C∞, in which C∞is the capacity of the infinite-bandwidth AWGN channel [64]. It is interesting to study the reliability and security performance of the orthogonal codes, when they are used in Wyner’s coding structure in the AWGN wiretap channel. This chapter focuses on secure communication over degraded Gaussian wiretap channels in the wideband regime, which has been studied in detail in [65]. In particular, by capitalizing on Wyner’s code construction, the objective is to show that an orthogonal coding scheme is able to achieve the secrecy capacity of the Gaussian wiretap channel in the wideband regime. 3.2 The Gaussian wiretap channel in the wideband regime The channel we consider in this chapter is the Gaussian wiretap channel, which has been introduced in Chapter 2 (Figure 2.7). The secrecy capacity of the Gaussian wiretap channel is given in (2.17). In this section, we analyse the properties of Gaussian wiretap channel in wideband regime, in which the bandwidth is infinite. In [66], it shows that determining the infinite-bandwidth capacity is equivalent to finding the minimum energy per bit required to transmit information reliably. 3.2.1 Tradeoff Csvs. ξb/N0in the wideband regime The tradeoff between the secrecy capacity Csand the ratio between the energy per bit to the one-sided noise spectral density ξb/N0, which mirrors the tradeoff between bandwidth and power, is a useful characteristic of the secrecy capacity of the Gaussian wiretap channel. Such a characterization is particularly important in the wideband regime, in order to capture the interplay between the notions of power, bandwidth and rate [66]. In view of the fact that P=RBξb, the secrecy capacity in (2.17) is also given by: Cs= log21 + ξb N0·R−log21 + α·ξb N0·R(3.1) 30 Chapter 3-Orthogonal Codes for Secure Communication in the Wideband Regime Now, based on (3.1) and (3.12), it is possible to show that in the wideband regime the mutual information between the input and output of the main channel and the mutual information between the input and the output of the eavesdropper channel for the orthogonal code construction admit the expansions: I(X;YM)≈log2Ng·ξb N0·1 ln 2 (3.29) I(X;YE)≈log2Ng·ξb N0·1 ln 2 ·α(3.30) so that I(X;YM)−I(X;YE)≈log2Ng·ξb N0·1 ln 2 ·(1−α)(3.31) It is also possible to show, by using Fano’s inequality [67], that: H(X|W, YE)≤1 + Pr ˆ X6=X|W·log2Nc/g (3.32) where Pr ˆ X6=X|Wrepresents the probability of error at the eavesdropper given the message. Consequently, one immediately infers from (3.31) and (3.32) that in the wideband regime as ξb N0dB →ξb N0mindB, which also implies n→ ∞ via (3.15), the eavesdropper equivocation rate obeys: 1 n·H(W|YE)≥1 n·log2Ng−ǫ=Cs−ǫ(3.33) where ǫis negligible. To conclude, we observe that in the wideband regime as ξb N0dB →ξb N0mindB the orthogonal code construction defined by (3.13), (3.14) and (3.15) guarantees communication at a rate R=Cs(with Cs→0) with perfect reliability and security. 3.6 Simulation results We provide various simulation results to illustrate the performance of the orthogonal code construction in the Gaussian wiretap channel. Figure 3.2 plots the (codeword) error probability between the legitimate transmitter and the legitimate receiver vs.ξb/N0for various values of Ngwith α=NM0 NE0= 0.08. We observe that the higher the value of Ng (and hence n) the lower the value of ξb/N0required to achieve a target (message) error probability. In particular, in accordance with the analysis, one would obtain that Pe→0 37 Chapter 3-Orthogonal Codes for Secure Communication in the Wideband Regime as Ng→ ∞ (and hence n→ ∞) provided that ξb N0≥ξb N0min =ln 2 1−α=−1.23 dB. Figure 3.3 plots the eavesdropper equivocation lower bound using (3.28) and (3.32) vs.ξb/N0 for various values of Ngwith α=NM0 NE0 = 0.08. In particular, one observes that the eavesdropper equivocation tends to the message entropy in a vicinity of ξb N0=ξb N0min for large values of Ng(and hence n) This is further emphasized in Figure 3.4, which depicts the gap (denoted by γ) between the message entropy and the eavesdropper equivocation lower bound, normalized to the message entropy. These simulation results suggest that the orthogonal code construction achieve the secrecy capacity of the Gaussian wiretap channel in the wideband regime as ξb N0→ξb N0min. The price, of course, is reliable and secure communications at a vanishing information rate. Finally, Table 3.1 depicts the tradeoff between rate, reliability and security for Pe= 10−2and Pe= 10−3. As expected, as the information rate tends to zero the higher the reliability (i.e. the lower the ξb/N0necessary to attain a target error probability) and the higher the security (i.e. the lower the equivocation upper bound). We also observe that for a certain target information rate the higher the reliability level the lower the security level. −2 0 2 4 6 8 10 10−4 10−3 10−2 10−1 100 ξb/N0 (dB) Codeword Error Probability Ng=2 Ng=4 Ng=8 Ng=16 Ng=32 Ng=64 Ng=128 Ng=256 Ng=512 Ng=1024 (ξ/N0)min=−1.23 Figure 3.2: Codeword error probability between the legitimate parties for α= 0.08. 38 Chapter 3-Orthogonal Codes for Secure Communication in the Wideband Regime −5 0 5 10 0 1 2 3 4 5 6 7 8 9 10 Ng=8 Ng=16 Ng=32 Ng=64 Ng=128 Ng=256 Ng=512 −5 0 5 10 0 1 2 3 4 5 6 7 8 9 10 Ng=8 Ng=16 Ng=32 Ng=64 Ng=128 Ng=256 Ng=512 ξb/N0 (dB) Eavesdropper Equivocation Lower Bound Ng=8 Ng=16 Ng=32 Ng=64 Ng=128 Ng=256 Ng=512 (ξb/N0)min=−1.23 Figure 3.3: Eavesdropper equivocation lower bound for α= 0.08. Solid lines correspond to the equivocation lower bound. Dashed lines correspond to the message entropy. −5 0 5 10 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 ξb/N0 (dB) Normalized Eavesdropper Equivocation Gap Upper Bound Ng=8 Ng=16 Ng=32 Ng=64 Ng=128 Ng=256 Ng=512 (ξb/N0)min=−1.23 Figure 3.4: Normalized eavesdropper equivocation gap upper bound γfor α= 0.08.γis obtained by using the equivocation lower bound in H(W)−H(W|YE) H(W). 39 Chapter 3-Orthogonal Codes for Secure Communication in the Wideband Regime Table 3.1: Tradeoff between rate, reliability and security Ng8 16 32 64 128 256 512 R 0.375 0.250 0.156 0.094 0.055 0.031 0.018 ξb/N0(dB)@Pe= 10−24.4 3.8 3.5 3.1 2.9 2.8 2.6 ξb/N0(dB)@Pe= 10−36.2 5.6 4.9 4.6 4.3 4.2 4 γ@Pe= 10−20.6 0.51 0.45 0.4 0.25 0.24 0.22 γ@Pe= 10−30.7 0.6 0.53 0.48 0.32 0.31 0.3 3.7 Conclusions In this chapter, we have considered communication in the Gaussian wiretap channel in the wideband regime. In particular, it has been shown by analysis and suggested by simulation that the use of orthogonal codes, which follow a construction akin to Wyner’s code construction, can achieve the secrecy capacity of the Gaussian wiretap channel in the asymptotic wideband regime, which entails communication at a vanishing rate. The results can also be used to infer the error probability between the legitimate parties or bound the information rate leaked to the eavesdropper due to the use of the orthogonal coding construction in non-asymptotic regimes. 40 Chapter 4 Syndrome Coding Based on Best Equivocation Code Construction In this chapter, we propose a design technique to produce the best codes for the syndrome coding scheme as measured by an information secrecy metric: the equivocation. An efficient recursive method to determine the equivocation for the Binary Symmetric Channel and any linear binary code is also presented. Some Best Equivocation Codes for the syndrome coding scheme are thus produced. It is shown that the Best Equivocation Codes have a better secrecy performance for the syndrome coding scheme than the best known codes. 4.1 Introduction Wyner proposed a syndrome coding scheme (also known as ’coset coding scheme’) to guarantee the security of the communication for BSWC [12]. Wyner showed that as long as the size of the syndrome space is chosen to be smaller than the Shannon entropy of the binary symmetric channel, there exist codes that leak a vanishing proportion of information to the eavesdropper as the code length approaches infinity. In [68], Bennett strengthens Wyner’s result in the sense that the channels are more general and the estimate of the number of information bits leaked to Eve is stronger. Cohen and Zemor [69] also provide a more refined analysis of the information leakage of syndrome coding for the wiretap channel. Recently, Cassuto and Bandic contribute to the study of wire-tap II codes in two directions: for the case of error-free main channels, two families of codes are constructed with optimal encoding and decoding complexities for their wire-tap security; 41 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction for the case of main channels with errors, two concatenation types are studied for the wire-tap and error correcting codes [70]. The syndrome coding scheme is an important physical layer scheme to guarantee the secure communication that has been widely studied for various applications. For example, Cohen and Zemor [13] studied a generalization of Wyner’s syndrome coding scheme which is applicable to noisy main and eavesdropper channels, for biometric applications. Cohen and Zemor also prove that this scheme achieves the Shannon-capacity of the system. Chabanne et al. have extended the analysis of the syndrome coding as a nonmalleable code, following a security analysis close to the one of Secure Network Coding [71]. Luo et al. study the equivocation of the data symbols to the eavesdropper who has more power than that of Wyner, and introduce some new concepts to analyse the secrecy on the wire-tap channel of type II [72]. Reddy et al. [14] studied low-density paritycheck (LDPC) codes for syndrome coding with applications to video coding systems. Suresh et al. [15] showed that duals of certain LDPC codes, when used in a syndrome coding scheme, provide strong secrecy over the binary erasure wiretap channel. Salim and Emina showed that network security can be achieved by using syndrome coding as an additional layer to a network code [16]. In [73], Song et al. propose a secret key agreement scheme which adopts the idea of the syndrome coding scheme to achieve perfect secrecy over the binary erasure wiretap channel of type II. For the syndrome coding scheme, it is important to construct the good codes to guarantee the security of the communication. Traditionally, good codes are designed for an error correcting system to combat noisy transmission channels and achieve reliable communication for different systems [74, 75], which focus on designing codes with maximum Hamming distance, such as BKC [45]. Codes designed for error correction can also be used in syndrome coding, but it is shown below that the best performance is not generally achieved and better codes exist. The information rate of a syndrome coding scheme using an (n, k, d)linear code is n−k nand all possible binary vectors of length nmay be transmitted. This is quite different from error correction coding applications where only codewords are transmitted and the information rate is k/n. For the syndrome coding, performance is measured in terms of the level of information theoretic secrecy, the equivocation [12]. In this chapter we restrict the choice of codes to binary, linear codes. We present a numerical design technique to produce the best codes for the syndrome coding scheme as measured by the equivocation rate and compare these codes to the best known error 42 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction correcting codes. The technique is limited practically to codes having around 35 parity bits, but this is not a major limitation as near 100% secrecy is attainable with code lengths less than 256 bits [76]. The BKC error correcting code tables list codes less than 256 bits long, which make the comparisons possible. We also present an efficient recursive method to analyse the secrecy performance of any linear binary code, which is used in syndrome coding for the Binary Symmetric Channel. Finally, we present performance results of some best equivocation codes for the syndrome coding scheme and compare these to the best known codes. In almost all cases there is a substantial improvement. 4.2 Background of code design Code design is one of the important topics in reliable communications. Numerous contributions have been made in designing good code families such as BCH and Goppa codes [77] or by modifying good codes by concatenation [46], extension [47–49, 78] or shortening [77]. Traditionally, good codes are designed for an error correcting system to combat noisy transmission channels and achieve reliable communication for different systems [74,75]. Historically many code design methods for linear codes, which have been presented in the literature, are based on construction of the parity check matrix, H[47–49]. Construction X and its variations increase the length of a code in order to enlarge the minimum weight, which use two or more codes of the same length where one code contains the other codes which have a higher minimum weight [48,49]. Construction Y1is a construction method which decreases both the length and the dimension of a code [77]. Any column of a parity check matrix of a (n, k, d = 2t+ 1) code, H, can be represented by an integer, bi, in the range 0 to 2n−k−1, in which iis the index of the column and 0≤i < n. The parity check matrix of a (n, k, d = 2t+ 1) code is defined by nintegers, referred to as packed integers, and these integers can be in any order since the corresponding codes will all be equivalent [77]. Any code design of length nmay be represented by these npacked integers. Since any parity check matrix can be put into reduced echelon form by elementary row and column matrix operations, the first mpacked integers are fixed and the code design reduces to the determination of n−m 43 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction packed integers. Let us start with a general binary, reduced echelon parity check matrix: H=      1 0 ··· 0am0··· a(n−1)0 0 1 ··· 0am1··· a(n−1)1 . . .. . .··· . . .. . .aij . . . 0 0 ··· 1am(m−1) ··· a(n−1)(m−1)       (4.1) in which ai,j takes a value of 0 or 1 ,iand jdenote the index of the rows and the columns respectively, 0≤j≤m−1and m≤i≤n−1. Each column may be represented as a packed integer defined as bi=Pm−1 j=0 aij ·2j. The systematic packed integer form of the parity check matrix is [1,2,···,2m−1, bm,···, bn−1]. For example, the parity check matrix of the (15,7,5) BCH code is: H=                100000001110011 010000001101110 001000000110111 000100001101000 000010001010001 000001000110100 000000100011010 000000010001101                (4.2) which in packed integer representation is: H= [1,2,4,8,16,32,64,128,27,47,117,202,166,71,149] (4.3) A central property of an error correcting code is the minimum Hamming distance, d, which determines the number of independent errors that can be corrected and the resulting reliability of communication. The main objective in error correcting code design is to optimise one of the parameters n,kand dfor given values of the other two [78]. Usually this optimization is related to the following functions: n(k, d)- the minimum length of linear codes for given minimum distance dand dimension kand d(n, k)the largest value of the minimum Hamming distance for which a binary (n, k, d)code exists. The covering radius Rcis usually not considered a design parameter in traditional error correcting code design, but it is an indicator of codeword packing [77]. Based on this central target of error correcting, several techniques have been used to solve different error correcting problems. For example, in [79], Dontas and Jong describe some experiments on the use of genetic algorithm to discover maximal distance codes for the 44 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction problems of knowing limited characteristics of the codes. In [80], scatter search and memetic algorithms have been used to solve the error correcting code problem.In [81], Miller and Wolf describe a method of using a combination of interleaved Reed-Solomon codes interspersed with uncoded bits to achieve a higher code rate than the classical error correcting codes solution. Evolutionary algorithms have been also used to get optimum error correcting codes by Alba and Khuri [82,83]. Based on different techniques of code design, optimum binary codes are published in an online database by Grassl as Best Known Codes (BKC) in the form of tables of lower and upper bounds to d[45] for different code rates and code lengths up to 256 bits. With so much research attention historically, improvements to these tables are relatively rare. There is a well known relationship between the parity check matrix and the minimum Hamming distance of the code from first studies of error correction coding [84]: Property 1. A linear code has dminimum distance if and only if its parity check matrix has dlinearly dependent columns but no set of d−1or fewer, linearly dependent columns. Based on Property 1, any packed integer of the parity check matrix cannot be equal to the modulo 2 sum of any combination of d−2packed integers or fewer integers of the parity check matrix. This is apparent by observing that the syndrome of a codeword is equal to zero. If any packed integer of the parity check matrix were equal to the modulo 2 sum of any combination of d−2packed integers or fewer integers then the resulting combination would have a syndrome equal to zero and therefore be a codeword of weight less than d, an obvious contradiction. Some code extension method are based on Property 1. For example, Bouyukliev’s code construction method extends a code by excluding all linear combinations of up to d−2 columns of the parity check matrix [78] exploiting Property 1. The inverting construction Y1, proposed by Edel adds an additional parity bit and extends a (n, k, d)code to a (n+ x, k +x−1, d)code, by extending the parity check matrix [47] similar to Bouyukliev. Until now, most of the code design methods only consider about the reliable communication. The secure coding schemes, which are designed for the wiretap channel, usually employ the error correcting code. However, there are rare research on the design of the best code to guarantee the security of the communication, which is very necessary for achieving higher levels of communication security and is a promising new direction on the field of the physical layer security. This is the main target of this chapter: we aim to 45 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction construct the best codes for the syndrome coding scheme, which have the highest value of equivocation rate for a given code length and code rate. It is convenient to use the parameter m=n−k, to represent the number of parity bits of the code. A best code for syndrome coding is represented by the functions: n(m, Re)- the shortest code for a given Reand mand Re(n, m)- the highest equivocation rate for which a binary (n, k =n−m) code exists. In contrast, a best code for error correction is represented by the function n(m, d, Rc)- the longest code for a given d,mand Rc. Based on a list of parity check matrices of best performing codes for the syndrome coding scheme for given mand n, we aim to generate a Best Equivocation Codes (BEC) database in the form of n,mand Re(n, m). 4.3 Syndrome coding scheme without look-up table Traditionally, the syndrome coding scheme uses a (n, k, d = 2t+ 1) linear block code, which is capable of correcting terrors, defined by a m×nparity check matrix H[61]. It is a property of any linear block code that there exist 2mdistinct n-bit minimum weight error patterns, in which each pattern ejproduces a distinct syndrome Sjof the total 2m syndromes, based on Sj=ej×HT, where 0≤j≤2m−1. These minimum weight error patterns, ej, are the coset leaders of the code and may be represented in a table of 2m syndromes,Sj, and associated minimum weight error patterns, ej. The covering radius, Rc, is equal to the maximum weight of all 2mcoset leaders. For perfect codes, the error patterns, ej, in the syndrome table are all of the n-bit binary error vectors with a weight w≤t, so Rc=t. In the traditional syndrome coding, it is necessary to store an error pattern-syndrome look up table, which can be accessed by Alice, Bob and Eve. However, it is shown below that such a look up table is unnecessary and the parity check matrix of the code is sufficient. With some elementary row and column operations ,every parity check matrix can be represented in a reduced echelon form [77]. In the following it is assumed that the parity check matrix of the code is in the reduced echelon form with an identity sub-matrix of m parity bits followed by kinformation bit columns. We consider the binary symmetric wiretap channel, in which the eavesdropper channel is a binary symmetric channel with an crossover probability α(Figure 2.6). The encoding and decoding processes are as follows. 46 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction no lower weight error event, where Rcis the covering radius of the code. A good equivocation code will tend to have low covering radius compared to the minimum Hamming distance, d. Perfect codes have low covering radius and are good equivocation codes. 4. A shortened best known code has a bounded covering radius Rc≥(d−1), because there exists at least one coset leader of the shortened code of weight d−1or greater; otherwise the extended code formed by adding this coset leader to the generator matrix of the code will produce a code with minimum Hamming distance less than d, a contradiction. It is unlikely that shortened best known codes will be best equivocation codes. 5. If columns of the parity matrix are repeated, a weight 2 error event will produce a zero syndrome, which makes the pmf of the syndrome non-uniform. To get a good equivocation code, the parity check matrix should have no repeated integers, unless the code is very long compared to the number of parity bits. Following these observations, a code design algorithm has been formulated, that produces best equivocation codes as follows: INPUT: Cin-Set of linequivalent 1highest equivocation rate (n, m)codes with parity check matrices in systematic packed integer form H. OUTPUT: Cout- Set of all extended inequivalent (n+ 1, m)codes, which are ranked by equivocation in descending order. For each code Cin Cin, the extension steps are as follows: 1. Preset a status array a[i] = 1, where 1≤i≤2n−k. 2. If iis equal to any integer in H, set a[i] = 0. 3. For all jsuch that a[j] = 1, extend Hwith one integer, equal to j, to H= [H, j]. Eliminate all equivalent codes and evaluate the equivocation2for each remaining code. 1If the codes have different equivocation rates, they are inequivalent codes. 2The equivocation is evaluated for the binary symmetric eavesdropper channel for a given error probability. 53 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction 4. Rank the inequivalent codes by their equivocation in descending order, Cout, and select the first lcodes. This is termed the best codes subset. These are used as the INPUT for the next extension round. For a given m, all possible (m+ 1,1) codes are used as the initial INPUT with the parity check matrices: [1,2,···,2m−1, i], for all i,1≤i≤2n−k. For each round as nis incremented, the best equivocation codes are obtained, provided that the best codes subset is sufficiently large. The syndrome probability generating function in Z transform of each (n, m)code, pz(S)in , is stored and the syndrome probability generating function in Z transform for each extended (n+1, m)code, pz(S)out, is determined using equation (4.30) which makes for a fast algorithm. Usually, the best extended code will be derived from the highest ranked code from the previous round but this is not always the case. The size of the best codes subset, l, needs to be large enough that no better extended code is missed. For short codes it is possible to store all inequivalent codes in the best codes subset and it is proven that the highest ranked code is the best (n, m)equivocation code. To estimate the size required of the best codes subset, for a given number of parity bits, lis assigned (e.g. l= 20000) and the code is extended in length by several bits. For the highest ranked code of length n, the ranked position pn−1is determined of its parent code of length n−1from the previous round. Statistics of pn−1are collected for each code length and the subset size lis maintained to be greater by a significant margin to the maximum value of pn−1, i.e. l≥max pn−1. For m= 6 and m= 7, for all code lengths of n≤70, the maximum pn−1values are 25 and 275 respectively. It is observed that the greater the length of the code, the higher the possibility of pn−1= 1, i.e. the extended best equivocation code of length nproduces the best equivocation code of length n+ 1. 4.6 Results Following the procedure above, the best equivocation codes have been determined for a given number of parity bits and code length. There are too many codes to present, so we only present here some representative codes. The codes are listed in Appendix B and an on-line database [76] in packed integer format. The minimum Hamming distance, covering radius and equivocation rate for a BSC error probability of α= 0.05 are given for each code. 54 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction As examples, Table 4.1 lists the highest rate codes, in packed integer format, which provide at least 90% secrecy when used in syndrome coding for a BSC error probability of α= 0.05. Interestingly, in general nearly all of the best equivocation codes do not coincide with the best known codes. However these best equivocation codes do have a respectable minimum Hamming distance and covering radius. With reference to Appendix B, there are a few best known codes that are also best equivocation codes, notably all of the perfect codes. The perfect codes are the repetition codes, the Hamming codes and the Golay code. The reason for this coincidence is that these codes have the highest minimum Hamming distance, d, and are optimally packed codes. It is notable that there is a small number of other best known codes that are also best equivocation codes and we term these best known codes as well packed codes. A feature of these well packed codes is that for a given number of parity bits there is no known longer code with the same minimum Hamming distance, d. Table 4.2 gives the code parameters of the well packed BKC for various values of m. We have observed that some of the shorter well packed BKC coincide with the best equivocation codes for given mand given k. It is also interesting to note that each well packed BKC of length nis followed by a poorly packed BKC of length n+ 1. These BKC’s are termed the worst packed BKC’s. It is found that the corresponding BEC’s have much higher equivocation rates than that of the worst packed BKC’s. Figure 4.1 compares the normalised equivocation of best known codes and best equivocation codes for increasing code rate, for codes with 26 parity bits at different values of α. It shows that the BECs have higher equivocation than BKCs not only for α= 0.05 but also for other values of α. The dashed line gives the secrecy capacity of the channel. It is readily apparent that the BEC’s outperform the BKC’s particularly in the lower rate region. As the number of parity bits increase, codes get longer for the same information rate and the equivocation moves closer to the secrecy capacity limit, Cs, which is applicable to infinite length codes. This is shown in Figure 4.2 for m= 6 through to m= 26. 55 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction Table 4.1: Best Equivocation Codes that achieve 90% secrecy in syndrome coding for α=.05 m n d RcRePacked integer parity check matrix 4 25 2 1 0.906251 1 2 4 8 1 2 3 3 4 5 5 6 6 7 8 9 10 11 11 12 12 13 14 15 15 5 28 3 2 0.907646 1 2 4 8 16 3 5 6 7 9 11 12 13 14 15 17 18 19 20 22 23 24 25 26 27 28 29 30 6 31 4 3 0.908721 1 2 4 8 16 32 7 11 13 14 19 21 22 25 26 28 31 35 37 38 41 42 44 47 49 50 52 56 59 61 62 7 35 3 3 0.907273 1 2 4 8 16 32 64 7 14 25 26 28 31 38 43 51 53 56 62 70 75 83 85 88 93 100 103 104 110 112 118 121 122 124 127 8 38 4 3 0.904458 1 2 4 8 16 32 64 128 26 35 46 61 79 83 86 89 98 101 105 126 131 143 156 166 171 183 185 193 198 200 203 205 223 231 236 243 244 250 9 41 4 3 0.900208 1 2 4 8 16 32 64 128 256 31 45 60 100 113 122 143 153 156 181 191 194 204 214 218 281 291 302 331 332 344 370 383 394 397 403 418 427 440 478 485 488 10 45 4 3 0.904383 1 2 4 8 16 32 64 128 256 512 29 87 109 191 203 221 229 301 344 350 379 409 426 435 467 468 495 501 527 539 596 613 637 661 675 716 755 787 820 858 879 897 969 994 1008 11 48 4 3 0.902358 1 2 4 8 16 32 64 128 256 512 1024 82 95 103 137 170 340 376 415 416 456 486 579 647 734 754 811 829 887 964 977 1079 1082 1227 1239 1302 1370 1420 1505 1546 1596 1710 1828 1863 1929 1938 1975 2041 12 51 4 3 0.900428 1 2 4 8 16 32 64 128 256 512 1024 2048 108 214 225 327 415 460 777 814 862 939 978 998 1059 1116 1206 1450 1606 1663 1677 1845 2243 2355 2456 2554 2951 2964 2985 3119 3414 3467 3582 3731 3802 3812 3819 3907 3928 3950 4049 13 55 6 5 0.905225 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 309 345 618 687 690 981 1207 1236 1374 1380 1653 1897 1962 2373 2414 2472 2639 2748 2760 3306 3794 3924 4315 4735 4746 4807 4828 4887 4944 5278 5496 5520 6225 6612 7263 7273 7411 7449 7588 7848 8007 8137 Continued on next page 56 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction Table 4.1 – Continued from previous page m n d RcRePacked integer parity check matrix 14 58 5 4 0.902823 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 463 659 1306 1903 2017 2420 2623 2681 2774 3009 3018 3372 3462 3727 3848 4807 4978 5102 5286 5495 5755 6833 7557 7706 8435 9814 10158 10732 10769 10991 11355 11837 12664 12788 13759 13762 13880 15043 15411 15498 15640 15910 16068 16352 16 64 5 4 0.9 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 2026 2174 6623 9685 10416 10555 11116 11896 12221 12999 14403 14586 14926 19995 20228 20788 23508 23688 23953 25340 27319 27881 28822 30545 31261 31842 32143 33695 35079 35300 40115 41850 42821 43146 46587 46930 48617 48950 50224 50393 52924 53375 53724 55136 57952 61511 62572 65419 18 71 6 5 0.903035 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 11955 13936 32282 32999 38800 39250 42924 47840 55393 56951 58478 60921 69584 75429 81270 92272 93719 98994 101001 102495 107633 112602 118747 135116 148158 154496 159264 161706 168209 175488 176485 180456 187783 193685 194276 195402 203311 206292 207540 207680 208910 210560 225118 230979 235516 238390 247552 252600 254562 254936 256876 258694 260096 20 77 8 7 0.900739 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 41772 53076 70933 85654 95837 102185 121984 143743 159055 160966 162356 177792 186954 191057 197822 208965 259410 268572 272682 296292 308553 313067 320896 366336 371328 405616 442424 445952 450779 457021 475870 491392 532261 539043 560237 602893 616832 625083 632370 646431 661559 680024 692328 692902 701447 716691 741146 746583 749617 756858 782531 799616 814830 923790 985856 996729 1044736 Continued on next page 57 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction Table 4.1 – Continued from previous page m n d RcRePacked integer parity check matrix 22 84 8 7 0.903293 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 14191 111264 120844 135402 156066 193837 297854 309690 330532 338475 430909 567303 682894 714276 780924 869995 905402 923298 982920 1351071 1376188 1380394 1419610 1487155 1551602 1884223 1964241 2073026 2141889 2289013 2314096 2350121 2376601 2501526 2638285 2645293 2687586 2703451 2758616 2779212 2825279 2893319 3047974 3082337 3148814 3167196 3172106 3212496 3244862 3367783 3378339 3595701 3671892 3675563 3727842 3733852 3753502 3954669 3966529 3984378 3994343 4013090 24 90 7 6 0.901784 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 573185 576055 605300 649314 701023 902444 935950 972344 1107341 1216620 1391649 1700311 1849660 2435061 2801845 3274804 3727802 3857484 4410637 4447108 4642815 4754320 4865882 4933529 4981695 5087490 5170378 5176601 5211409 5493873 6813668 6982303 7139876 7894909 7933395 8894748 9354907 9466165 10033669 10290550 10320865 10887849 11095914 11204875 11347996 11485683 11727110 11796941 12233544 12889002 13314240 13707676 14157669 14737865 14795911 14837286 14923311 15030096 15150513 15341837 15855350 15923713 15972347 16494372 16540142 16554318 Continued on next page 58 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction Table 4.1 – Continued from previous page m n d RcRePacked integer parity check matrix 26 97 8 6 0.904462 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 1160185 3419307 4492287 9395871 10093907 11068401 11840460 12139956 14534737 14816701 17641732 17992524 18692090 20131180 20858618 22460065 22562674 23680920 23791323 24279912 25579531 26280684 26831716 27845706 28552180 28936460 32368082 32564036 34048695 34254884 35283464 35985048 35986053 36286430 38278580 39088097 40262360 41667867 43800122 44014004 44811375 46058364 46251188 47221140 47347900 47361840 47389686 47437732 47592948 47926580 48559824 49569716 52561368 53663432 54332396 54744803 54780620 55996779 56474461 56772244 57104360 57872920 58140380 58689469 60935573 61409218 62624620 63555923 64592814 65128072 65473972 4.7 Conclusions We considered the code design problem for syndrome coding from the information theoretic security view and presented a code construction method for best equivocation codes. In this way, an table of constructed BEC’s in packed integer format has been produced (Appendix B). Code examples have been given of the highest rate BEC’s that achieve 90% secrecy to an eavesdropper using the BSC with an error probability of 0.05. Unlike the traditional case, the presented encoding method does not require a syndrome look up table. This encoding method also provides a new interpretation of syndrome coding in which the message is impressed on the parity bits of a random codeword. In effect the mparity bits of an n-bit random codeword are used to scramble an m-bit message necessitating the error free recovery of all nbits for an eavesdropper in order to determine the mbit message. An efficient recurrent method was also presented for the calculation of the pmf of the 59 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction Table 4.2: Well packed BKC m Well packed BKC, (n,k,d) 4 (5,1,5), (8,4,4), (15,11,3) 5 (6,1,6), (16,11,4), (31,26,3) 6 (7,1,7), (8,2,5), (32,26,4) 7 (8,1,8), (9,2,6), (11,4,5), (64,57,4) 8 (9,1,9), (10,2,6), (11,3,5), (128,120,4), (255,247,3) 9 (10,1,10), (11,2,7), (18,9,6), (23,14,5) 10 (11,1,11), (12,2,8), (15,5,7), (24,14,6), (33,23,5) 11 (12,1,12), (16,5,8), (23,12,7), (34,23,6), (47,36,5) 12 (13,1,13), (14,2,9), (24,12,8), (48,36,6), (65,53,5) 13 (14,1,14), (15,2,10), (25,12,8), (27,14,7), (66,53,6), (81,68,5) 14 (15,1,15), (16,2,10), (17,3,9), (28,14,8), (31,17,7), (82,68,6), (128,114,5) 15 (16,1,16), (17,2,11), (18,3,10), (20,5,9), (32,17,8), (37,22,7), (129,114,6), (151,136,5) 16 (17,1,17), (18,2,12), (21,5,10), (23,7,9), (38,22,8), (47,31,7), (152,136,6) 17 (18,1,18), (19,2,12), (20,3,11), (24,7,10), (27,10,9), (48,31,8), (63,46,7) 18 (19,1,19), (20,12,13), (21,3,12), (23,5,11), (28,10,10), (31,13,9), (64,46,8), (68,50,7) 19 (20,1,20), (21,2,14), (24,5,12), (26,7,11), (32,13,10), (35,16,9), (69,50,8), (88,69,7) 20 (21,1,21), (22,2,14), (27,7,12), (31,11,11), (36,16,10), (41,21,9), (89,69,8), (95,75,7) 21 (22,1,22), (23,2,15), (24,3,13), (32,11,12), (33,12,11), (42,21,10), (45,24,9), (96,75,8), (128,107,7) 22 (23,1,23), (24,2,16), (25,3,14), (27,5,13), (34,12,12), (36,14,11), (46,24,10), (49,27,9), (129,107,8), (155,133,7) 23 (24,1,24), (25,2,16), (28,5,14), (29,6,13), (37,14,12), (47,24,11), (50,27,10), (54,31,9), (156,133,8), (162,139,7) 24 (25,1,25), (26,2,17), (27,3,15), (30,6,14), (32,8,13), (48,24,12), (55,31,10), (64,40,9), (163,139,8) 25 (26,1,26), (27,2,18), (28,3,16), (31,6,15), (33,8,14), (34,9,13), (49,24,12), (65,40,10), (72,47,9) 26 (27,1,27), (28,2,18), (32,6,16), (35,9,14), (38,12,13), (50,24,12), (51,25,11), (73,47,10), (77,51,9) 27 (28,1,28), (29,2,19), (33,6,16), (35,8,15), (39,12,14), (40,13,13), (52,25,12), (63,36,11), (78,51,10), (94,67,9) 28 (29,1,29), (30,2,20), (31,3,17), (36,8,16), (37,9,15), (41,13,14), (44,16,13), (64,36,12), (69,41,11), (95,67,10), (128,100,9) 29 (30,1,30), (31,2,20), (32,3,18), (38,9,16), (40,11,15), (45,16,14), (46,17,13), (70,41,12), (71,42,11), (129,100,10), (135,106,9) 30 (31,1,31), (32,2,21), (33,3,18), (34,4,17), (41,11,16), (44,14,15), (47,17,14), (48,18,13), (72,42,12), (136,106,10), (142,112,9) 60 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 R Re BKC, m=26,α=0.05 BKC, m=26,α=0.1 BEC, m=26,α=.05 BEC, m=26,α=0.1 Cs, α=0.05 Cs,α=0.1 Cs@α=0.1 Cs@α=0.05 Figure 4.1: Comparison of the normalised equivocation of best equivocation and best known codes having 26 parity bits 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 R Re m=6 m=8 m=10 m=14 m=18 m=22 m=26 Cs Figure 4.2: Normalised equivocation vs. information rate for Best Equivocation Codes as a function of m 61 Chapter 4-Syndrome Coding Based on Best Equivocation Code Construction syndromes of a code from the parity check matrix of the code, which in turn enables the secrecy achieved by the code, the equivocation rate, to be determined. It was shown that apart from the perfect codes, the best equivocation codes rarely coincide with the best known error correcting codes and that usually a best equivocation code will provide greater secrecy than using a best known error correcting code with the same parameters. 62 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes of 2m−1 2mand 1 2mrespectively. Therefore, the pmf of p(S)0is: p(p(S)0(l) = 0) = 2m−1 2m(5.15) p(p(S)0(l) = (1 −α)n) = 1 2m(5.16) For w= 1, there are n1-error events, in which each of them has a probability of α· (1 −α)n−1. Because of d≥3, these n1-error events map to distinct nsyndromes and it is impossible for 1-error events mapping to S= [0]. There are two possible values of p(S)1:0and α·(1 −α)n−1with the probabilities of 2m−n−1 2m−1and n 2m−1respectively. The pmf of p(S)1is: p(p(S)1(l) = 0) = 2m−n−1 2m−1(5.17) p(p(S)0(l) = α·(1 −α)n−1) = n 2m−1(5.18) For w-error events, in which 2≤w≤n, it is possible for them to map any of 2m syndromes without any restriction. There are n werror patterns each leading to an w-error event. Each of these maps into one syndrome out of 2msyndromes. All w-error events are binomially distributed. There are so many events that the Poisson distribution [90] is applicable to describe the number of times lthat a particular syndrome will arise from an w-error events as follows: p(l) = λl·e−λ l!(5.19) in which λ=(n w) 2mis the average number of the occurrence of an w-error events mapping into each syndrome, p(l)is the probability mass function of the occurrence l1,eis the base of the natural logarithm (e= 2.71828) and l!is the factorial of l. Each time an w-error event maps into a syndrome, the additive probability of this syndrome is αw×(1 −α)n−w. Therefore, the probability mass function (pmf), p(p(S)w), of the additive probability, p(S)w, of the syndrome from w-error events as follows: p(p(S)w(l)) = p(l) = λl·e−λ l!(5.20) in which p(S)w(l) = l·αw×(1 −α)n−w(5.21) 1we consider all values of l, which satisfies: Plp(l)≈1 69 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes Based on the analysis above, we can get all pmf’s, p(p(S)w)of p(S)wfor all 0≤w≤n and use them in (5.14) to get the pmf, p(p(S)), of p(S). Using the results in (5.9), we can get the average equivocation finally. 5.3.3 Examples Considering random codes with parameters (100,85) with (α= 0.05), we can compare the theoretical pmf of p(S)) with the results obtained from Monte Carlo experiments. Table 5.1 shows a statistics table of different error events for (100,85) random codes when α= 0.05. It shows that considering 0 to 14 error events has a cumulative probability of 0.999864 and so error events of weight more than 14 have a negligible contribution to the pmf. Based on the previous analysis, we can generate the pmf of additive probability of each syndrome for different error events. Some results from the Monte Carlo experiments and from the theoretical are shown and compared here. Since 0-error event and zero syndrome are special and easy to analyse separately, we only show some results related to non 0-error events and non-zero syndromes here. We calculate the convolution of pmf’s of the additive probabilities from 1 to 14 error events together. In order to show the details, we divide the convolution into two parts based on the values of Pn w=1 p(S)w. Figure 5.1 shows the part of the pmf of Pn w=1 p(S)w, when p(S)1= 0. Figure 5.2 shows the part of the pmf of Pn w=1 p(S)w, when p(S)1=α·(1−α)n−1. The corresponding pmf’s, which are generated from Monte Carlo experiments, are given in 5.3 and 5.4. The Kolmogorov-Smirnov test (K-S test) can be used to quantify a distance between two probability distributions and it is sensitive to differences in both location and shape of the cumulative distribution functions of the two samples [91]. We use K-S test to measure the difference between the theoretical analysis and Monte Carlo results for two parts of pmf of Pn w=1 p(S)w. Figure 5.5 and Figure 5.6 give the cumulative distribution probability of Figure 5.1 and Dn= 0.016887, the cumulative distribution probability of Figure 5.2 and Dn= 0.023036, respectively, in which Dnis the maximum difference between the theoretical result and the Monte Carlo results vindicating the theoretical approach. It shows that the difference between two curves is very small, which means 70 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes that the theoretical results is very close to the simulation results. Calculating the normalised average equivocation based on the theoretical pmf of p(Se(i)) produces E[Re] = E[H]/m = 0.98862. The average equivocation rate from Monte Carlo analysis is 0.99048. The difference between the theoretical result and the simulation result is 0.00186, caused by neglecting the error events with w > 14. More examples are given in next section. Table 5.1: w-error events statistic (α= 0.05) wn wp(e(i)) (n w) 2m·p(e)(i)n w×p(e(i)) Cumulative probability 0 1 5.92053E-03 1.8068E-07 5.92053E-03 0.005921 1 100 3.11607E-04 9.5095E-07 0.03116068 0.037081 2 4950 1.64004E-05 2.4775E-06 0.081181772 0.118263 3 161700 8.63177E-07 4.2595E-06 0.139575678 0.257839 4 3921225 4.54304E-08 5.4365E-06 0.178142642 0.435981 5 75287520 2.39107E-09 5.4937E-06 0.180017827 0.615999 6 1192052400 1.25846E-10 4.5781E-06 0.150014856 0.766014 7 16007560800 6.62300E-12 3.2356E-06 0.106025537 0.87204 8 1.86088E+11 3.49000E-13 1.9797E-06 0.064870888 0.93691 9 1.90223E+12 1.80000E-14 1.0651E-06 0.034901296 0.971812 10 1.73103E+13 9.65661E-16 5.1013E-07 0.016715884 0.988528 11 1.416298046436E+14 5.08242E-17 2.1967E-07 0.007198228 0.995726 12 1.050421051106701E+15 2.67496E-018 8.5749E-08 0.002809834 0.998536 13 7.110542499799197E+015 1.40788E-19 3.0550E-08 0.001001075 0.999537 14 4.41869426773236E+15 7.40986E-21 9.9920E-09 3.274191E-04 0.999864 5.4 Simulation results We want to know the relation between the code length and the normalised average equivocation for the random codes given fixed mwhen α= 0.05. Figure 5.7 shows the normalised average equivocation and E[Re]±3σvs. the code length for the random codes with m= 20 (99% codes has the equivocation rate between E[Re]−3σand E[Re] + 3σ), in which σis the standard deviation of the equivocation rate. It is shown that the longer the code the higher the average equivocation. 71 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes 2 3 4 5 6 7 8 9 x 10−5 0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 p(S) p(p(S)) Figure 5.1: The theoretical pmf of Pn w=1 p(S)w, when p(S)1= 0. 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4 x 10−4 0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 p(S) p(p(S)) Figure 5.2: The theoretical pmf of Pn w=1 p(S)w, when p(S)1=α·(1 −α)n−1. 72 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes 2 3 4 5 6 7 8 9 10 11 x 10−5 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 x 10−3 p(S) p(p(S)) Figure 5.3: The simulated pmf of Pn w=1 p(S)w, when p(S)1= 0. 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4 4.1 x 10−4 0 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02 p(S) p(p(S)) Figure 5.4: The simulated pmf of Pn w=1 p(S)w, when p(S)1=α·(1 −α)n−1. 73 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes 0 1 2 3 4 5 6 7 8 9 x 10−5 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 P(S) CDF Simulation Theoretical Figure 5.5: The cumulative distribution probability of Pn w=1 p(S)w, when p(S)1= 0. 3.3 3.4 3.5 3.6 3.7 3.8 3.9 x 10−4 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 P(S) CDF Simulation Theoretical Figure 5.6: The cumulative distribution probability of Pn w=1 p(S)w, when p(S)1=α· (1 −α)n−1. 74 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes Figure 5.8 shows that as the code length increases, the standard deviation of the normalised equivocation decreases. For codes longer than 150 bits or so any randomly chosen code achieves almost perfect secrecy. Figure 5.9 plots the normalised average equivocation vs. the information rate for the random codes with different values of m. The points of the pink star are generated by the theoretical way, which are quite close to the Monte Carlo simulation results (sample number=10000). The differences between theoretical analysis and Monte Carlo analysis for random codes with m= 20 are all less than 0.3%. For random codes with m≥30, Monte Carlo analysis requires powerful computer resources and takes a long time, but the codes are still amenable to theoretical analysis. It may be observed that good results may be obtained with randomly chosen codes and that it is not necessary to use a large number of parity bits or excessive code length to attain almost perfect secrecy. When α= 0.05, the brown line gives the secrecy capacity of the channel: 0.2864. We observe that for the random codes with R > 0.2864, the normalised average equivocation is far away from 1, i.e. it is impossible to achieve perfect secrecy for those codes. It also shows that for the codes of the given length the higher the value of the information rate, the lower the value of the normalised average equivocation, i.e. to get a higher security level, we have to pay a price of a lower rate. 50 100 150 200 250 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 Code length, n The normalised average equivocation E[Re]−3σ E[Re] E[Re]+3σ Figure 5.7: The normalised average equivocation vs. the code length for the random codes (m= 20,sample number=10000) 75 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes 50 100 150 200 250 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 x 10−4 Code length, n Standard deviation, σ Figure 5.8: The standard deviation of the normalised equivocation vs. the code length for the random codes (m= 20) 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.4 0.5 0.6 0.7 0.8 0.9 1 Information rate, R The normalised average equivocation m=10,simulation m=15,simulation m=20,simulation m=20,theoretical m=25,simulation m=30,theoretical Secrecy capacity,Cs Cs=0.2864 Figure 5.9: The normalised average equivocation vs. the information rate for the random codes with different values of m 76 Chapter 5-Syndrome Coding Based on Random Linear Binary Codes 5.5 Conclusions In this chapter, we analyse the security performance of (n, k)random linear binary codes in Wyner’s syndrome coding scheme from the viewpoint of the information theoretical security as a function of code length and code rate. An important contribution in this chapter is the proposal of theoretical analysis based on a putative (n, k)code which has the same distribution of syndrome probabilities as the ensemble of all (n, k)random codes having the same parameters to calculate the average equivocation of the (n, k) random codes, and the comparison with the results obtained by Monte Carlo analysis. Specific examples are given to show the accuracy of the theoretical analysis. It is shown that random codes with large values of m, the number of parity bits, may be analysed theoretically even though Monte Carlo analysis is impractical. Many examples of the random codes are given to show that the longer the length of the code the higher value of the average equivocation and the lower the value of the standard deviation of the equivocation, and the higher the value of the information rate, the lower the value of the average equivocation. Possibly the most important conclusion is that almost perfect secrecy may be obtained for syndrome coding using a randomly chosen code of length greater than 150 bits and reasonable code rate. 77 Chapter 6-A Chain Based Syndrome Coding Scheme Figure 6.2: The encoder model of the chain based syndrome coding scheme with a hash function 6.3.1.2 Legitimate decoder We assume that Bob uses a conventional syndrome decoding scheme to estimate the original messages. By computing the syndrome associated with the received codeword, which is given by: SBob (i) = YM(i)×HT =X(i)×HT=ST(i)(6.19) it is possible – in view of (6.17) – to obtain the original message immediately as follows: M(i) = SBob (i) + f(SBob (i−1) ,···,SBob (i−d)) =ST(i) + f(ST(i−1) ,···,ST(i−d)) (6.20) 6.3.1.3 Eavesdropper decoder We also assume that Eve – like Bob – uses a conventional syndrome decoding scheme to estimate the original messages. By computing the syndrome associated with the receive codeword as follows: SEve (i) = YE(i)×HT = (X(i) + e(i)) ×HT(6.21) =ST(i) + Se(i)(6.22) 85 Chapter 6-A Chain Based Syndrome Coding Scheme where Se(i)is the corresponding syndrome of the additional error e(i)in the eavesdropper channel, then the estimate of the message at time iwhen i≤dis given by: ˆ M(i) =SEve (i) + f(SEve(i−1),···,SEve (1)) =M(i) + Se(i) + f(ST(i−1) ,···,ST(i−d)) +f(SEve (i−1) ,···,SEve(1)) (6.23) and the estimate of the message at time iwhen i > d is given by: ˆ M(i) =SEve (i) + f(SEve(i−1),···,SEve (i−d)) =ST(i) + Se(i) + ···+f(SEve(i−1),···,SEve (i−d)) =M(i) + Se(i) + f(ST(i−1),···,ST(i−d)) +f(SEve(i−1),···,SEve (i−d)) (6.24) Alice, Bob and Eve have to use ddelay registers to store the previous dtransmitted or received syndromes. 6.3.2 Decoder output equivocation analysis We measure the security associated with this scheme, by considering the eavesdropper decoder output equivocation given by: Sd=H(M(1),···,M(b)|ˆ M(1),···,ˆ M(b)) (6.25) where H(·|·)denotes the conditional entropy. This metric measures the eavesdropper uncertainty about the transmitted message M(1),···,M(b)given the estimated message ˆ M(1),···,ˆ M(b). It is known that the higher the value of the equivocation the lower the information leakage. The maximum value that the equivocation can take Sd=mb is associated with communication that is perfectly secure. We can calculate Sdbased on the following expressions: Sd=H(M(1),···,M(b)|ˆ M(1),···,ˆ M(b)) (6.26) =H(M(1),···,M(b),ˆ M(1),···,ˆ M(b)) −H(ˆ M(1),···,ˆ M(b)) (6.27) =H(M(1),···,M(b),ˆ M(1),···,ˆ M(b)) −b×m(6.28) =−X X;Y p(X, Y )·log2p(X, Y )−b×m(6.29) 86 Chapter 6-A Chain Based Syndrome Coding Scheme in which X=M(1),···,M(b)denotes the original transmitted sequence of messages, Y=ˆ M(1),···,ˆ M(b)denotes the estimated sequence of messages, and p(X;Y)is the joint probability distribution of X, Y . (6.28) is due to the fact of that ˆ M(1),···,ˆ M(b)are uniformly distributed. Essentially, we want this distribution, p(X, Y ), to be as uniform as possible in order to get a higher equivocation. The chain technique helps to increase the uncertainty of the eavesdropper about the transmitted information. As the chain depth, d, increases, the equivocation is increasing. Some results obtained by simulation are given in Section 6.3.3. 6.3.3 Simulation results We simulated our chain based technique syndrome coding scheme using a (14,8) code derived from a repeated (7,4) Hamming code with m= 3 for different values of d= 0,1,2at the BSC with a cross-over probability of α. We now present a series of results to showcase the behaviour of the eavesdropper decoder output normalized equivocation given by: Re=S/(m·b)(6.30) in which 0≤Re≤1. When the value of Reis 1, there is perfect secrecy with Eve gaining zero information from Alice. The hash function is generated as a large look up table and shared by all the parties. We generate each message, M(i), randomly, encode it to a n-bit vector, X(i), and send this vector through a binary symmetric channel to Eve. Eve receives a corrupted version of X,YE(i), and decodes it to ˆ M(i). We store all information of M(i)and ˆ M(i), to estimate the probability distribution of p(X, Y ). At the end of the simulation p(X, Y )is used to calculate H(X, Y )and used in turn to calculate H(X|Y)based on (6.29). Due to computer memory limitations and time constraints we only present results for codes with small values of m. Figure 6.3 shows the equivocation rate for different chain depths (d= 0 corresponds to conventional syndrome-coding) as a function of the BSC crossover probability αfor the (14,8) repeated Hamming code for different values of d. We observe that – for a specific block-length n– the higher the chain depth the higher the eavesdropper decoder output equivocation rate. The effectiveness of the chain depth is apparent. For d= 2 almost perfect secrecy is achieved when the BSC bit error probability, α > 0.1. The Kullback-Leibler divergence (KL distance) is a metric, which is used to measure the 87 Chapter 6-A Chain Based Syndrome Coding Scheme 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 0.22 0.4 0.5 0.6 0.7 0.8 0.9 1 α Normalized equivocation, Re d=0 d=1 d=2 Figure 6.3: Normalised equivocation vs. αfor the (14,8) repeated Hamming code difference between two probability distributions [93] and is defined as follows: D(P||Q) = X x∈X P(x) log2 P(x) Q(x)(6.31) where D(P||Q)is the KL distance between the distribution Pand Q,P(x)and Q(x)are the probabilities of xfor two distribution. In our case, Qis the wanted distribution, the uniform distribution, and Pis the distribution of p(X, Y ). Figure 6.4 shows the KL distance between p(X, Y )and the uniform distribution for the (14,8) repeated Hamming code. We observe that the KL-distance decreases, as the chain depth dincreases for given values of the BSC cross-over probability α, i.e. the chain technique allows p(X, Y )to get closer to the uniform distribution. 6.4 Conclusions It has been shown that the chain based syndrome coding scheme results in less information available to an eavesdropper at the decoder output than the conventional syndrome coding scheme and the chain technique with a hash function improves the equivocation as the chain depth increases. Simulation results demonstrate that the chain depth has a profound effect on the eavesdropper decoder output equivocation rate in the chain based syndrome coding scheme with a hash function: the higher the value of the chain depth 88 Chapter 6-A Chain Based Syndrome Coding Scheme 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 0.22 0 0.5 1 1.5 2 2.5 3 3.5 α KL distance d=0 d=1 d=2 Figure 6.4: KL distance vs. αfor the (14,8) repeated Hamming code the higher the value of the equivocation rate. Our results also demonstrate that the lower the information rate the higher the equivocation rate. We anticipate that different choices of code, hash function and chain depth will lead to additional gains in secrecy. 89 Chapter 7 A Modified McEliece Public Key Encryption System with a Higher Security Level This chapter analyses the equivocation of the eavesdropper under different attacks when the legitimate parties employ the McEliece public-key cryptosystem in the traditional wiretap scenario. The analysis is not on the best attack to break the cryptosystem but on the information leakage. We show that there is considerable information leakage to the eavesdropper under Brickell’s attack. We also propose a modified McEliece public-key cryptosystem to reduce the information leakage under Brickell’s attack. We prove that the modified system exhibits zero information leakage under Brickell’s attack, and the price for this higher security is a lower information rate. 7.1 Introduction McEliece proposed the first public key cryptosystem based on algebraic coding theory, the McEliece cryptosystem, using Goppa codes in 1978 [94]. The crux of the idea is based on the hardness of decoding an arbitrary linear code, which is known to be an NP-hard problem [95]. Compared with other public key cryptosystems, like RSA [96] the McEliece system has the advantage of high-speed encryption and decryption and is generally accepted to be quantum computer secure, and with the growth of the key size, the security grows much faster. In addition, the McEliece system uses probabilistic encryption, which is better than deterministic encryption in resisting to known plain text attacks [97]. However, there exist some drawbacks in the McEliece system, such as the 91 Chapter 7-A Modified McEliece Public Key Encryption System with a Higher Security Level long public key, throughput efficiency and residual information leakage. To reduce the key size, Barbier and Barreto [98] exhibit a keysize gain of about 4% for the standard McEliece cryptosystem and up to 21% for the adjusted quasi-dyadic variant, by using list decoding algorithm [99]. Some research work points out the weak keys for McEliece system to help the system avoiding the weak keys [100, 101]. Security is an important issue in a communication system. In the past, various attacks were proposed to break the McEliece system. The most effective attacks on McEliece system are based on information-set decoding algorithms, such as Brickell’s attack [102] and Stern’s attack [103]. Berson’s attack [104] considers the cases with resent-message or related-message. In 2008, Bernstein Lange and Peters [105] described a practical attack on the original McEliece cryptosystem, based on finding low-weight code words using an algorithm published by Jacques Stern in 1989 [103], and also gave a defending way for this attack. Various modifications of the McEliece cryptosystem have been proposed to prevent such attacks [97, 106, 107]. For example, Sun [97] proposes some variants of the McEliece public key cryptosystem to prevent Berson’s attacks [104]. Baldi et al. [108] introduce a variant of the McEliece cryptosystem including low-density paritycheck codes, which are used in many telecommunication standards and applications, to make the system practical and estimate the trade-off between security and complexity. In this chapter, we view the McEliece cryptosystem from an information theory perspective, in particular the information leakage under Brickell’s attack. Although Brickell’s attack is not the best attack to break the cryptosystem, it is interesting from an information theory viewpoint. For the traditional wiretap scenario, we analyse the information leakage of the McEliece cryptosystem under two specific eavesdropper attacks: the Brickell’s attack and the full-code attack. We also propose a modification to a common systematic version of the McEliece cryptosystem, which employs a syndrome-coding method [69] based on the (23, 12, 7) Golay code – a perfect code – corrupted by random errors from a constrained probability distribution. Using equivocation analysis, we show that the modified system is able to achieve perfect secrecy under a specific Brickell’s attack, assuming that the attack does not break the key. The price for this improvement in secrecy is a lower information rate. 92 Chapter 7-A Modified McEliece Public Key Encryption System with a Higher Security Level 7.2 McEliece Public Key Encryption System 7.2.1 System Description We consider a standard wiretap scenario, where a transmitter, Alice, sends a (uniformly distributed) binary message Mto a legitimate receiver, Bob, in the presence of an eavesdropper, Eve (see Figure 7.1). Alice and Bob employ the McEliece public-key cryptosystem to exchange the message. The key generation, message encryption and message decryption processes are described below. Figure 7.1: Wiretap scenario 7.2.1.1 Key generation Bob selects a (n, k, 2t+ 1) binary Goppa code capable of correcting terrors with a k×ngenerator matrix Gand also selects randomly a k×knon-singular matrix Sand an×npermutation matrix P. Bob also determines a k×kmatrix R6=S−1that – by row additions and column swaps – produces a reduced echelon form of SGP, i.e. RSGP = [Ik|Q]where Ikis the k×kidentity matrix and Qis a k×(n−k)parity check matrix. The public key, which is known to everyone, is the k×nmatrix RSGP. The private key, which is only known to Bob, is the set of matrices (R,S,G,P)1. 7.2.1.2 Message encryption Alice generates the n-bit cryptogram Cfrom the k-bit binary message Mas follows: i) Alice generates the n-bit vector C′=MRSGP by using the public key as a generator matrix; ii) Alice generates the n-bit cryptogram C=C′+E=MRSGP +E, by adding a random n-bit vector Eof weight t. 1We consider this systematic version, since the information theoretic properties of SGP and RSGP are identical and it is easier to store the public key associated with the systematic format [109]. 93 Chapter 7-A Modified McEliece Public Key Encryption System with a Higher Security Level 7.2.1.3 Message decryption Bob recovers the k-bit message Mfrom the n-bit cryptogram Cas follows: i) Bob computes the n-bit vector CP−1=MRSG +EP−1by using the inverse of P; ii) Bob then computes the correct k-bit vector MRS by using the algebraic decoding algorithm of the Goppa code; iii) Multiplying by the inverses of the non-singular matrix Sand the matrix Rfinally yields the k-bit message M. It is interesting to note that a traditional way to characterize the security of the McEliece cryptosystem involves the calculation of the work factor w, which is the average number of operations required to successfully get the message. 7.2.2 Popular Attacks There are several ways of attacking the McEliece cryptosystem. We briefly introduce four popular attacks. Attack 1 (Brickell’s Attack) : The best known attack has been proposed by Lee and Brickell in [102]. This attack involves observing k“full-rank” components of the cryptogram given by: [C]k=M[RSGP]k+ [E]k= [C′]k+ [E]k(7.1) where [C]kdenotes the kcomponents of C,[C′]kdenotes the kcomponents of C′,[E]k denotes the kcomponents of E, and [RSGP]kis a full-rank k×ksub-matrix of the k×n matrix RSGP. Since [C]k+ [E]k=M[RSGP]k, then (Ck+Ek)([RSGP]k)−1=M(7.2) Note that the eavesdropper can recover the message Mwhen the kcomponents of the error pattern Eare zeros. The total expected work factor for this attack – in view of the 94 Chapter 7-A Modified McEliece Public Key Encryption System with a Higher Security Level knows the number of Golay coded blocks present in the cryptogram. For the (1024, 524, 101) standard system, the number of Golay coded blocks, l, ranges from 17 to 22, depending on the outcome of the uniform distribution for Ei, and the number of information bit per cryptogram ranges from 16 ×11 = 176 to 22 ×11 = 242. 7.3.1.3 Message decryption Bob recovers the message vector Mfrom the n-bit cryptogram Cas follows: i) Bob computes the n-bit vector CP−1=C′′RSG +EP−1by using the inverse of P; ii) Bob then computes the correct k-bit vector C′′RS by using the algebraic algorithm of the Goppa code; iii) Multiplying by the inverses of the nonsingular matrix Sand the matrix Rfinally yields the k-bit vector C′′; iv) Finally, Bob calculates the syndromes of C′′ i,1≤i≤l, to obtain the messages Mi, 1≤i≤l. 7.3.2 Equivocation Analysis We now analyse the equivocation of the modified McEliece cryptosystem under the Brickell’s and the full-code attack. Attack 1 : In the Brickell’s attack, Eve observes kfixed components of the cryptogram. We concentrate on a specific form of Brickell’s attack where Eve observes only the first kcomponents of the cryptogram, because – in view of the fact that RSGP = [Ik|Q]– the information bits are potentially exposed. Thus, Eve’s equivocation is given by3: H(M|[C]k) = H(M|[C]k′)(7.14) =H(M) + H([C]k′|M)−H([C]k′) =H(M)−H([C]k′) + H([E]k′|M) + H([C]k′|[E]k′, M) −H([E′]k|[C]k′, M)(7.15) =H(M)−H([C]k′) + H([E]k′) + H([C′]k′|M) −H([E]k′|[C]k′, M)(7.16) 3[V]k′and [V]krefer to the fixed k′and kelements of vector V 101 Chapter 7-A Modified McEliece Public Key Encryption System with a Higher Security Level where (7.14) is due to the fact that Eve’s equivocation based on the observation of the first kbits of the cryptogram is equal to Eve’s equivocation based on the observation of the first k′= 23 ×lbits of the cryptogram because the last k−23 ×lbits of the first k bits are filled with random data, (7.15) is due to H([C]k′,[E]k′|M) = H([E]k′|M) + H([C]k′|[E]k′, M) =H([C]k′|M) + H([E]k′|[C]k′, M) and (7.16) is due to H([E]k′|M) = H([E]k′) and H([C]k′|[E]k′, M) = H([C′]k′+ [E]k′|[E]k′, M) =H([C′]k′|[E]k′, M) = H([C′]k′|M) The calculation of the various entropies is based on the following observations: i) A single fixed message Mmaps into 212×ldistinct [C′′]k′with equal probability, due to the sydrome coding method. ii) A single fixed [C′′]k′maps into a single [C′]k′(in fact, [C′]k′= [C′′]k′, due to the fact that RSGP = [Ik|Q]). iii) A single fixed [C′]k′maps into 211×ldistinct [C]k′with equal probability, due to the error pattern generation method. iv) In the view of i), ii) and iii) and the syndrome coding method, a single fixed message Mmaps into 223×ldistinct [C]k′with equal probability, that cover the space because k′= 23 ×l. This also implies that [C]k′, unconditioned on M, follows a uniform distribution. Therefore, we have that H(M) = 11 ×l,H([C]k′) = 23 ×l,H([E]k′) = 11 ×l, H([C′]k′|M) = 12 ×land H([E]k′|[C]k′, M) = 0. and so we also have that H(M|[C]k) = H(M)(7.17) 102 Chapter 7-A Modified McEliece Public Key Encryption System with a Higher Security Level We observe that Eve’s equivocation is equal to H(M), i.e. Eve can not recover any useful information under this particular Brickell’s attack4. Attack 2 : In the full-code attack, Eve observes all the components of the cryptogram. Thus, the equivocation is given by: H(M|C) = H(M) + H(C|M)−H(C) =−X M p(M)·log(p(M)) −X M,C p(C|M)·p(M) ·log(p(C|M)) + X C p(C)·log p(C)(7.18) where p(M) = 1 211×lis the probability mass function of the 11 ×l-bit uniformly distributed message M,p(C|M) = p(C′+E|M) = p(C′′RSGP +E|M)is the probability mass function of the cryptogram Cgiven a specific message Mand p(C) = PMp(C|M)·p(M)is the probability mass function of the cryptogram C. Let us now calculate the probability mass functions p(C)and p(C|M)which are necessary to compute the equivocation. Note that: i) A single message Mmaps into 212×l+k−23×l= 2k−11×ldistinct C′′ with equal probability. ii) A single C′′ maps into a single C′(in fact, the mapping C′′ to C′is one-to-one). iii) A single C′maps into NEdistinct Cwith equal probability, where NEis the number of distinct error patterns. Therefore, p(C|M) = 1 2k−11×l×NE (7.19) if Mmaps to the C′upon which adding Eproduces C, and p(C|M) = 0 (7.20) otherwise. In turn, p(C) = 1 2k×NE (7.21) 4One can argue through that Eve is able to extract information based on the observation of another set of kcomponents. 103 Chapter 7-A Modified McEliece Public Key Encryption System with a Higher Security Level By using p(M) = 1 211×l, (7.19), (7.20) and (7.21) in (7.18), we can calculate the equivocation as follows: H(M|C) = 11 ×l+k−11 ×l+ log NE−k−log NE= 0 We get that Eve’s equivocation is zero under the full-code attack, i.e. Eve can recover the message at the expense of a very high computational complexity. As the analysis above, the modified McEliece cryptosystem works well to defend Brickell’s attack. However, for the full code attack, the equivocation is also zero, which is not surprise, since the channel is error free and the secrecy capacity of this model is zero. 7.3.3 Information Rate Analysis In our modified McEliece system, the price for the higher level of security is a lower information rate. We now compare the information rate of the modified system with that of the traditional McEliece system. The information rate for the traditional McEliece system is: Rt=k/n. In turn, the information rate for the modified McEliece system is Rm=l×11/n, in which, lis the number of blocks which carrys the message and constrained by: l≤k 23  and Pl i=1 Nei≤t. Table 7.1 shows that the information rate of the modified system for the adaptive scheme is about half that of the traditional system. 7.4 Conclusions In this chapter, we analysed the equivocation rate of the McEliece cryptosystem for the full-code attack and Brickell’s attack, showing that there is considerable information leakage. In order to reduce this we propose a modified system, which uses a syndromecoding method based on the perfect Golay (23,12,7) code and constrain the probability distribution of the added random errors. It has been shown that under a particular Brickell’s attack that examines the potentially unprotected “systematic” bits the information 104 Chapter 7-A Modified McEliece Public Key Encryption System with a Higher Security Level Table 7.1: Information rate for traditional McEliece system and modified McEliece system n k t R (traditional) Rm(basic) Rm(adaptive) 1024 724 30 0.707 0.107 0.107-0.333 1024 524 50 0.512 0.172 0.172-0.236 1024 324 70 0.316 0.150 0.150 2048 1498 50 0.731 0.086 0.086-0.349 2048 838 110 0.409 0.193 0.193 2048 398 150 0.194 0.091 0.091 leakage of a ”systematic” version of the modified McEliece cryptosystem is zero. The price is a penalty in the information rate. 105 Chapter 8 Conclusions and Future Work This chapter summaries our main conclusions and points out some directions for future work. 8.1 Conclusions Physical layer security, which is based on the idea of that the inherent randomness and noises of the physical medium are the resources for information-theoretic security, has a significant potential to enhance the security level of the current communication systems: hence it advocates a paradigm shift in cryptography and calls for a cross-layer design of security scheme. Although compared to computational security, the physical layer security has a main advantage due to the fact that there are no computation restrictions on the eavesdropper, there exist few practical scheme to guarantee the perfect secrecy in physical layer. This dissertation has been concerned with the security analysis and the design of physical layer coding schemes that aim to improve the reliability and security of information transmitted over the wireless medium. Based on the combination of Shannon’s notion of perfect secrecy and coding theory, this dissertation gives a deep analysis on the security of some traditional coding schemes in the physical layer and also proposes some novel practical coding schemes and a code design technique to strengthen the communication security. Wyner’s coding scheme provides a basic structure for secure communications that in- 107 Chapter 8-Conclusions and Future Work volves the addition of extra randomness to confuse the eavesdropper about the useful information in the wiretap channel. Chapter 3 designs the orthogonal codes based on Wyner’s coding structure. Both the theoretical analysis and the simulation results show that this scheme can achieve the reliable and perfect secure communication in the Gaussian wiretap channel in wideband regime. Based on Wyner’s code structure, syndrome coding scheme has been introduced and widely applied in information-theoretic security. This dissertation gives a deep analysis on the security of the traditional syndrome coding scheme. To study the security performance of the syndrome coding scheme, Chapter 4 introduces an efficient and practical evaluation method of the equivocation, which is a metric of secrecy. It is important to study the impact of different codes used in the syndrome coding scheme. In particular, random codes and best equivocation codes have been analysed. Chapter 4 proposes a Best Equivocation Code construction technique to design the optimum codes for the syndrome coding scheme to enhance the security of communication. It is shown that the Best Equivocation Codes can provide a higher level of the security for the syndrome coding scheme than that the best known codes provide. Moreover, Chapter 5 analyses the security performance of the random linear codes in the syndrome coding scheme. A theoretical analysis method has been proposed to model (n, k)random codes with a putative (n, k)code, which has the same pmf of syndrome probabilities as the ensemble of all (n, k)random codes, to evaluate the average equivocation of the random linear codes. It has been shown that our theoretical analysis is practical for codes with large values of m, the number of parity bits, even though Monte Carlo analysis is impractical. Similar with Shannon’s theorem, it shows that there must be at least one code from the random code ensemble in syndrome coding scheme that approaches the secrecy capacity and the longer the code is, the closer it can be. BEC, which have been proposed in Chapter 4, can achieve the highest security level for the traditional syndrome coding scheme. In order to enhance the security of the communication, Chapter 6 proposes and studies two variants of traditional syndrome coding scheme: a chain based syndrome coding scheme and a chain based syndrome coding scheme with a hash function. It is shown that the chain technique with a hash function helps to increase the uncertainty of the eavesdropper without decreasing the information rate. The chain based syndrome coding scheme with a hash function has a low computation complexity and exhibits significantly lower information leakage than the traditional syndrome coding scheme. Actually, we can also use BEC in this novel scheme to strengthen the security of communication further. 108 Chapter 8-Conclusions and Future Work In addition, we employ the secrecy metric in information-theoretic security, the equivocation, to measure the security level of the McEliece public key encryption system for different attacks in Chapter 7. We propose a modified McEliece system defend Brickell’s attack, which can achieve zero information leakage communications. Overall, the communication security can be enhanced by different coding schemes and code design technique we have proposed in this dissertation for the physical layer, which is based on the exploration on the characteristics of the physical channel to get benefits from the difference of the noise levels between the main channel and the eavesdropper channel. 8.2 Future work The work presented in this dissertation could be extended in many interesting directions. •A study of strong secrecy for orthogonal codes: For the orthogonal codes, this dissertation concentrates on the analysis on the weak secrecy. It is necessary to do some extended analysis on the strong secrecy of the orthogonal codes, measured as variational distance [111], in Gaussain wiretap channel in wideband regime. •Non-binary best codes design for the syndrome coding scheme: This dissertation designs the best equivocation code for the syndrome coding scheme in the binary field. Actually, the main idea of our code construction technique can also be employed for the q-ary field by using the conventional evaluation method for the syndrome probability distribution calculation. It will be interesting to generalize the code design technique to non-binary and possibly non-linear code constructions. •Security analysis on the random codes without any restriction: This dissertation studies the average equivocation of the the random code, which has a restriction of that there is no repeated integers in the parity check matrix of the codes. We can use similar method to analyse the random codes without any restriction. It has to be careful to analyse the 1-error events, which are possible mapping to the same syndrome. 109 Chapter 8-Conclusions and Future Work Figure 8.1: Code concatenation model for BSC •A general model for the syndrome coding scheme: For both the conventional syndrome coding and the chain based syndrome coding scheme, the considered channel is a specific wiretap channel where the main channel is error free and the eavesdropper channel is binary symmetric. In practice, the main channel always has some errors, so it is important to generalize the results from the noiseless main channel-binary symmetric eavesdropper channel model to a model where both the main and the eavesdropper channels are binary symmetric. To solve this problem, we can use the code concatenation technique proposed by Cassuto and Bandic [70]. In particular, this entails using a standard error correction code as an inner code to transform the noisy main channel in a nearly noiseless channel and our chain based syndrome coding approach as an outer code to provide security (see Figure 8.1). This approach could pave the way to address a number of real applications in wired and wireless settings for syndrome coding secrecy. •Cross layer security schemes: Information-theoretic security can enhance the security of the communication, which doesn’t rely on the assumptions of limited computation resources, but it has some assumptions on the communication channels which may not be extremely accurate in practice. In practice, we can employ the information-theoretic security schemes in the physical layer to be part of security solutions, together with the cryptographic techniques in other layers. This cross layer security schemes, which combine the information-theoretic security and the computational security, could be very promising to guarantee secure communications in the future. 110 References [45] M. Grassl, “Bounds on the minimum distance of linear codes and quantum codes”, online, Available: http://www.codetables.de, 2007. [46] E. L. Blokh and V. V. Zyablov, “Coding of generalized concatenated codes”, Problems in Information Transmission, vol. 10, no. 3, pp. 218-222, 1974. [47] Y. Edel, “Inverting construction Y1”, IEEE Transactions on Information Theory, , vol. 44, no. 5, Sep, 1998 [48] W. O. Alltop, “A method for extending binary linear codes”,IEEE Transactions on Information Theory, vol. 30, no. 6, pp. 871-872, Nov. 1984. [49] N. J. A. Sloane, S. M. Reddy, C.-L. Chen, “New binary codes”, IEEE Transactions on Information Theory, vol. 18, no. 4, pp.503-510, 1972. [50] P. W. Shor, “Algorithm for quantum computation: discrete log and factoring”, Proceedings of the 35th IEEE Symposium on the Foundations of Computer Science, Santa Fe, NM, pp. 124-134, 1994. [51] M. Bloch and J. Barros, “Physical-Layer Security: From Information Theory to Security Engineering”, Cambridge University Press, Nov. 2011. [52] A. Subramanian, A. T. Suresh, S. Raj, A. Thangaraj, M. Bloch, S. McLaughlin, “Strong and weak secrecy in wiretap channels”, 2010 6th International Symposium on Turbo Codes and Iterative Information Processing, Brest, France, pp. 30-34, Sep. 2010. [53] U. M. Maurer and S. Wolf, “Information-theoretic key agreement: From weak to strong secrecy for free”, Advances in Cryptology - Eurocrypt 2000, Lecture Notes in Computer Science. B. Preneel, pp.356-373, 2000. [54] I. Csisz`ar, “Almost independence and secrecy capacity”, Problems of Information Transmission, vol. 32, no. 1, pp. 40-47, Jan.-Mar. 1996. [55] S. K. Leung-Yan-Cheong and M. E. Hellman, “The Gaussian wire-tap channel”, IEEE Transactions on Information Theory, vol. 24, no.4, pp.451-456, Jul. 1978. [56] A. Subramanian, A Thangaraj, M. Bloch, S. W. McLaughlin, “Strong secrecy for erasure wiretap channel using large-girth LDPC codes”, IEEE Transactions on Information Forensics and Security, vol. 6, no. 3, pp. 585-594, Sep. 2011. [57] C. E. Shannon, “A mathematical theory of communication”, The Bell Syst. Tech. J., pp. 379-423; pp. 623-656, July 1948. 117 References [58] R. Liu, Y. Liang, H. V. Poor, and P. Spasojevic, “Secure nested codes for type II wiretap channels”, Proc. 2007 IEEE Information Theory Workshop, Tahoe City, CA, pp. 337-342, Sep. 2007. [59] R. Liu, H. V. Poor, P. Spasojevic, and Y. Liang, “Nested codes for secure transmission”, IEEE 19th International Symposium on Personal, Indoor and Mobile Radio Communications, PIMRC 2008, Cannes, pp. 1-5, Sep. 2008. [60] Y. Chen and A. J. H. Vinck, “On the binary symmetric wiretap channel”, Proc. International Zurich Seminar on Communications, pp. 17-20, Mar. 2010. [61] S. Lin and D. J. Costello, “Error Control Coding (second edition)”, Pearson Education, 2004, pp. 100-231. [62] S. Goel and R. Negi, “Guaranteeing secrecy using artificial noise”, IEEE Transactions on Wireless Communications, vol. 7, no. 6, pp. 2180-2189, Jun. 2008. [63] J. Vilela, M. Bloch, J. Barros, and S. McLaughlin, “Wireless secrecy regions with friendly jamming”, IEEE Transactions on Information Forensics Security, vol. 6, no. 2, pp. 256-266, Jun. 2011. [64] John G. Proakis, “Digital Communications”, McGraw-Hill Science/Engineering/Math Third Edition, 1995. [65] M. C. Gursoy, “Secure communication in the low-SNR regime: a characterization of the energy-secrecy tradeoff”, IEEE International Symposium on Information Theory, Seoul, Korea, pp.2291-2295, Jun. 2009. [66] S. Verd´u, “Spectral efficiency in the wideband regime”, IEEE Transactions on Information Theory, vol. 48, no.6, pp.1319-1343, Jun. 2002. [67] T. M. Cover and J. A. Thomas, “Elements of Information Theory”, Wiley- Interscience, Second Edition, 2006. [68] C. H. Bennett, G. Brassard, C. Crepeau and U. M. Maurer, “Generalized privacy amplification”, IEEE Transaction on Information Theory, vol. 41, no. 6, pp. 1915- 1923, Nov. 1995. [69] G. Cohen and G. Zemor, “Syndrome-coding for the wiretap channel revisited”, Proceedings of 2006 IEEE Information Theory Workshop, Chengdu, China, pp. 33- 36, Oct. 2006. 118 References [70] Y. Cassuto and Z. Bandic “Low-complexity wire-tap codes with security and errorcorrection guarantees”, IEEE Information Theory Workshop, Dublin, pp. 1-5, Aug. 2010. [71] H. Chabanne, Cohen and A. Patey, “Secure network coding and non-malleable codes: Protection against linear tampering”, IEEE International Symposium on Information Theory Proceedings, pp. 2546-2550, 2012. [72] Y. Luo, A. J. H. Vinck and K. Chen, “Some new characters on the wire-tap channel of type II”, IEEE Transactions on Information Theory 2005, vol. 51, no. 3, pp. 1222- 1229, Mar. 2005. [73] W. T. Song, J. Choi and J. Ha , “Perfect secrecy over binary erasure wiretap channel of type II”, IEEE Transactions on Information Forensics and Security, vol. 7, pp. 1414-1418, Aug. 2012. [74] A. Sanaei and M. Ardakani, “LDPC code design considerations for non-uniform channels”, IEEE Transactions on Communications, vol. 58, pp. 101-109, Jan. 2010. [75] J. Li, J. Yuan, R. Malaney, M. H. Azmi, M. Xiao, “Network coded LDPC code design for a multi-source relaying system”, IEEE Transactions on Wireless Communications, vol. 10, pp. 1538-1551, May 2011. [76] K. Zhang, “Best Equivocation Rate codes”, 2013, online, Available: http://www.it.pt/auto_temp_web_page_preview.asp?id=1219. [77] F. J. MacWilliams and N.J.A. Sloane, “The theory of error-correcting codes”, Bell laboratories, 1981. [78] I. G. Bouyukliev and E. Jacobsson, “Results on binary linear codes with minimum distance 8 and 10”, IEEE Transactions on Information Theory, vol. 57, no. 9, Sep. 2011. [79] K. Dontas and K. De Jong, “Discovery of maximal distance codes using genetic algorithms”, 2nd International IEEE Conference on Tools for Artificial Intelligence, Herndon, VA, pp. 805-811, 1990. [80] C. Cotta, “Scatter search and memetic approaches to the error correcting code problem”, Evolutionary Computation in Combinatorial Optimization, J. Gottlieb, G.Raidl (eds.), Lecture Notes in Computer Science, Springer-Verlag Berlin, vol. 3004, pp. 51-60, 2004. 119 References [81] J. Miller and J. K. Wolf, “High code rate error correction code design for partial response systems”, IEEE Transactions on Magnetics, vol. 37, no. 2, pp. 704-707, Mar. 2001. [82] E. Alba and S. Khuri, “Applying evolutionary algorithms to combinatorial optimization problems”, International Conference on Computational Science, vol. 2074, Part II, Springer-Verlag, Berlin, Heidelberg, pp. 689-700, 2001. [83] E. Alba and S. Khuri, “Sequential and distributed evolutionary algorithms for combinatorial optimization problems”, Recent Advances in Intelligent Paradigms and Application, Physica-Verlag, Berlin, Heidelberg, pp. 211-233, 2003. [84] W. W. Peterson, “Error-correcting Codes(first edition)”, MIT Press, 1961. [85] R. G. Gallager, “Information theory and reliable communication”, John Wiley and Sons, 1968. [86] R. G. Gallager, “The random coding bound is tight for the average code”, IEEE Transactions on Information Theory, vol. IT-19, pp. 244-246, Mar. 1973. [87] S. J. MacMullan and O. M. Collins, “A comparison of known codes, random codes, and the best codes”, IEEE Transactions on Information Theory, vol. 44, pp. 3009- 3022, Nov. 1998. [88] A. Barg and G. D. Forney, “Random codes: minimum distances and error exponents”, IEEE Transactions on Informormation Theory, vol. 48, no.9, pp. 2568- 2573, Sep. 2002. [89] Y. Domb, R. Zamir and M. Feder, “The random coding bound is tight for the average linear code”, 2012 IEEE 27th Convention of Electrical and Electronics Engineers in Israel, Eilat, Israel, pp. 1-5, Nov. 2012. [90] Christian Walck, “Hand-book on statistical distributions for experimentalists”, Internal report in University of Stockholm, Sep. 2007. [91] A. Justel, D. Pe˜na and R. Zamar, “A multivariate Kolmogorov-Smirnov test of goodness of fit”, Statistics and Probability Letters, vol. 35, pp. 251-259, 1997. [92] “Hash function”, http://en.wikipedia.org/wiki/Hash_function. [93] S. Kullback, “Information theory and statistics”, John Wiley and Sons, NY, 1959. [94] R. J. McEliece, “A public-key cryptosystem based on algebraic coding theory”, DSN Progress Report, pp. 42-44, 1978. 120 References [95] E. R. Berlekamp, R. J. McEliece, and H. C. A. Van Tilborg, “On the inherent intractability of certain coding problems”, IEEE Transactions on Information Theory, vol. 24, no. 5, pp. 384-386, 1978. [96] R. L. Rivest, A. Shamir, and L. M.Adleman, “A method for obtaining digital signatures and public-key cryptosystems”, Communications of ACM, vol. 21, no. 2, pp. 120-126, 1978. [97] H. M. Sun, “Enhancing the security of the McEliece public-key cryptosystem”, Journal of Information Science and Engineering, vol. 16, no. 6, pp. 799-812, 2000. [98] M. Barbier, P. S. L. M. Barreto, “Key Reduction of McEliece’s Cryptosystem Using List Decoding”, 2011 IEEE International Symposium on Information Theory Proceedings, St. Petersburg, pp. 2681-2685, July 2011. [99] D. Bernstein, “List decoding for binary Goppa codes”, 2008, http://cr.yp.to/codes/goppalist-20081107.pdf. [100] P. Loidreau, N. Sendrier, “Weak keys in the McEliece public-key cryptosystem”, IEEE Transaction on Information Theory, vol. 47, no. 3, pp. 1207-1211, Aug. 2002. [101] J. A. Ryan, “Excluding some weak keys in the McEliece cryptosystem”, AFRICON 2007, Windhoek, pp. 1-5, Sep. 2007. [102] P. Lee and E. Brickell, “An observation on the security of McEliece’s publickey cryptosystem”, Advances in Cryptology-EUROCRYPTO’88, New York: Sringer- Verlag, pp. 275-280, 1988. [103] J. Stern, “A method for finding codewords of small weight”, Coding Theory and Applications, Lecture Notes in Computer Science, vol. 388, pp. 106-113, 1989. [104] T. A. Berson, “Failure of the McEliece pubic-key cryptosystem under messageresend and ralated-message attack”, Advanced in Cryptology-CRYPTO’97, vol. 1294, 213-220, 1997. [105] D. J. Bernstein, t. Lange, C. Peters, “Attacking and defending the McEliece cryptosystem”. Proc. 2nd International Workshop on Post-Quantum Cryptography, vol. 5299, pp. 31-46, Aug. 2008. [106] M. K. Shooshtari, M. Ahamadian, and A. Payandeh, “Improving the security of McEliece-like public key cryptosystem based on LDPC codes”, International Conference on Advanced Communication Technology, vol. 2, pp. 1050-1053, 2009. 121 References [107] N. D¨ottling, R. Dowsley, J. M¨uller-Quade, A. C. A. Nascimento, “A CCA2 secure variant of the McEliece cryptosystem”, IEEE Transactions on Information Theory, vol. 58, no. 10, pp. 6672-6680, Oct. 2012. [108] M. Baldi, M. Bianchi, F. Chiaraluce, “Security and complexity of the McEliece cryptosystem based on quasi-cyclic low-density parity-check codes”, IET on Information Security, vol. 7, no. 3, pp. 212-220, Sep. 2013. [109] B. Biswas and N. Sendrier, “McEliece cryptosystem in real life: theory and practice”, J. Buchmann and J. Ding, editors, PQCrypto, Springer-Verlag, pp.47-62, 2008. [110] C. M. Adams and H. Meijer, “Security-related comments regarding McEliece’s public-key cryptosystem”, IEEE Transaction on Information Theory, vol. 35, no.2, pp.454-455, 1989. [111] M. R. Bloch and J. N. Laneman, “Secrecy from Resolvability”, http://www3.nd.edu/˜jnl/pubs/it2011.pdf. 122 Appendix A Proof of the MAP Decoder for the Syndrome Coding Scheme We give the proof of that the syndrome decoder is the MAP decoder for the syndrome coding scheme. Alice wishes to convey a sequence of independent and uniformly distributed m-bit binary messages to the legitimate receiver, M(1),...,M(b), in which b is the block length of the messages. The channel output is YE(1),···,YE(b), in which YE(i) = VT(i) + e(i)and e(i)is the error vector introduced by the binary symmetric channel. YE(i)maps into a received syndrome SEve(i) = YE(i)×HT=M(i) + Se(i). The MAP decoder selects the sequence of the estimated messages as follows: ˆ M(1),···,ˆ M(b) = arg max M(1),···,M(b)PM(1),···,M(b)|YE(1),···,YE(b)(M(1),···,M(b)|YE(1),···,YE(b)) (A.1) = arg max M(1),···,M(b) PM(1),···,M(b),YE(1),···,YE(b)(M(1),···,M(b),YE(1),···,YE(b)) PYE(1),···,YE(b)(YE(1),···,YE(b)) (A.2) = arg max M(1),···,M(b) b Y i=1 PM(i)|M(i−1),···,M(1),YE(1),···,YE(b)(M(i)|M(i−1),···,M(1),YE(1),···,YE(b)) (A.3) which is based on the Bayes’ theorem. Since the syndrome coding scheme is memoryless, M(i)at time ionly depend on the 123 References current YE(i), (A.3) can be expressed as follows: arg max M(1),···,M(b) b Y i=1 PM(i)|YE(i)(M(i)|YE(i)) = arg max M(1),···,M(b) b Y i=1 PM(i),YE(i)(M(i),YE(i)) PYE(i)(YE(i)) (A.4) = arg max M(1),···,M(b) b Y i=1 PYE(i)|M(i)(YE(i)|M(i)) ·PM(i)(M(i)) PYE(i)(YE(i)) (A.5) = arg max M(1),···,M(b) b Y i=1 PYE(i)|M(i)(YE(i)|M(i)) (A.6) (A.4) and (A.5) are based on the Bayes’ theorem and (A.5) is due to the fact that the messages M(i)and the channel output vectors YE(i)are both uniform distributed. We now analyse the individual terms in (A.6). PYE(i)|M(i)(YE(i)|M(i)) =X CT(i) PCT(i)|M(i)(CT(i)|M(i)) ·PYE(i)|CT(i),M(i)(YE(i)|CT(i),M(i)) (A.7) =X CT(i) 1 2k·PYE(i)|CT(i),M(i)(YE(i)|CT(i),M(i)) (A.8) =1 2k·X CT(i) Pe(i)(YE(i)−CT(i)−ET(i)) (A.9) =1 2k·PSe(i)(SEve(i)−M(i)) (A.10) =PSEve(i)|M(i)(SEve(i)|M(i)) (A.11) (A.8) is due to the fact that CT(i)is independent of M(i)and there are 2kpossible CT(i) with equal probability of 1 2k. (A.10) is based on: PSEve(i)(SEve(i)) = X YE(i):SEve(i)=YE(i)×HT PYE(YE(i)) (A.12) =X CT(i) Pe′(i)+CT(i)(e′(i) + CT(i)).(A.13) in which e′(i)is the coset leader in the error-syndrome table and is corresponding to SEve(i). Finally, we have: ˆ M(1),···,ˆ M(b) = arg max M(1),···,M(b) b Y i=1 PSEve(i)|M(i)(SEve(i)|M(i)) (A.14) 124 References which means ˆ M(i) = SEve(i)is MAP decoder, if and only if p(S0)> p(Sj),1≤j≤2m−1(A.15) in which, p(S0)is the probability of the zero syndrome, S0= [0], in which [0] is a zero vector, and p(Sj)is the probability of the j-th non-zero syndrome, Sj. In this case, we only have to consider the probability of each syndrome. Let us now consider the probability distribution of the syndromes, p(Se(i)), for the traditional syndrome coding scheme first. There are 2npossible ways in which error patterns, e(i), occur in each transmitted n-bit vector. In BSC, these error patterns occur with probability: p(e(i)) = αw(i)·(1 −α)n−w(i)(A.16) where w(i)is the weight of e(i). Each error pattern results in one of the 2msyndromes being produced. Se(i) = e(i)×HT(A.17) As the code is linear there are 2kerror patterns that produce the same syndrome and the probability of each syndrome due to all possible error patterns is given by p(Sj) = 2n−1 X e(i)=0 p(e(i))δ(Se(i)−Sj)(A.18) where δ() is the Kronecker Dirac function and 0≤j≤2m−1. Based on the analysis above, if the probability of the zero syndrome, p(S0), is higher than p(Sj),∀Sj6= [0], the maximum a posteriori probability (MAP) decoder selects ˆ M(i) = SEve(i). Since any error pattern that is a codeword has a syndrome equal to zero, the probability of the zero syndrome can be calculated as follows: p(S0) = WC(1 −α, α) = n X i=0 Ai(1 −α)n−iαi(A.19) where WC(x, y)is the weight enumerator of the code Cand Aidenotes the number of codewords of weight iin C. (A.19) shows that the probability of the zero syndrome can be determined from the weight enumerator of the code C. MacWillianms theorem [77] gives a way to determine the weight enumerator of the code Cfrom the weight enumerator of its dual code C⊥, which is as follows: if Cis an binary linear code with a dual code C⊥then: WC(x, y) = 1 |C⊥|WC⊥(x+y, x −y)(A.20) =1 |C⊥| n X i=0 A′ i(x+y)n−i(x−y)i(A.21) 125 References where A′ idenotes the number of codewords of weight iin C⊥and |C⊥|is the number of the codewords in C⊥. There are some families of codes where the weight enumerator of the dual code is known, such as: Hamming codes, extended Hamming codes, single parity check codes, double error correcting BCH codes, orthogonal codes, etc. Now we give some examples to show the probability of the zero syndrome for each code. The (n,m) simplex code is the dual code of the (n,k=n-m) Hamming code, with the weight enumerator: WC1(x, y) = xn+n·x(n−1)/2·y(n+1)/2(A.22) so the weight enumerator of the (n,k) Hamming code is: WC1⊥(x, y) = 1 n+ 1 ·WC1(x+y, x −y)(A.23) =1 n+ 1 ·((x+y)n+n·(x+y)(n−1)/2·(x−y)(n+1)/2)(A.24) The probability of the zero syndrome is: p(S0) = WC1⊥(1 −α, α) = WC1(1,1−2α) = 1 n+ 1 ·(1 + n·(1 −2α)(n+1)/2) (A.25) and the probability of non-zero syndrome is [77]: p(Sj6= 0) = (1 −p(S0))/n (A.26) We can have: p(S0)−p(Sj6= 0) = (1 −2α)(n+1)/2= (1 −2α)2m−1≥0(A.27) (A.27) shows that the probability of the zero syndrome is the greatest probability of all p(Sj)for the Hamming code for all values of α, which means the decoder ˆ M(i) = SEve(i) is a MAP decoder for all α. Next we consider the single parity check codes. It is known that the dual code of the single parity check code is the repetition code, which has a weight distribution as follows: WC2(x, y) = xn+yn(A.28) so the weight distribution of the single parity check code is: WC2⊥(x, y) =1 2·WC2(x+y, x −y) =((x+y)n+ (x−y)n)/2(A.29) 126