- Twenty-fourth Symposium on lntorrnation Theory in the - Benelux Veldhoven, The Netherlands May 22 & 23, 2003 Program of the 24-th Symposium on Information Theory in the Benelux De Koningshof, Veldhoven, The Netherlands May 22 & 23, 2003 Organized by Philips Research Laboratories Eindhoven for the Werkgemeenschap voor Informatie- en Communicatie theorie (WIC) Co-sponosered by the IEEE Benelux Information Theory Chapter Prize for the best presentation of a young researcher donated by the Gauss foundation. ,. Thursday, May 22 9.15 Registration 10.00 Opening 10.05 - 11.25 Channel Coding and Decoding On understanding the performance of the IEEE B02.IIa WlAN physical layer for the Gaussian channel, Wim J. van Houturn, Philips Research Laboratories, Eindhoven Set Decoding of Convolutional Codes with Application to GSMIGPRS, Andries P. Hekstra, Philips Research Laboratories, Eindhoven On the Use ofthe Cut-Off Rate for Determining Optimal Input Quantiraiion of a Viterbi Decoder on Fading Channels, Stan Baggen, Sebastian Egner, and Bertrand Vandewiele, Philips Research Laboratories, Eindhoven. Static and Dynamic Chase-Like Bounded Distance Decoding, Jos H. Weber, Delft University of Technology. 11.25 - 11.45 Coffee and tea break 11.45 - 12.45 Invited Presentation ~cI.jk.B Analyzing DNA microarrays to unravel gene function, . Marcel Reinders, Delft University of Technology. 12.45 - 13.45 Lunch 13.45 - 14.45 Cryptanalysis Pt'Vfl. »: Q Side-channel entropy for modular exponentiation ;(forithms, ~ Lejla Batina and Cees Jansen, SafeNet BV, Vught, and Katholieke Universiteit Leuven. Extending the Boneh-Durfee-de Weger's attack to RSA-like Cryptosystems, )( Fabien Laguillaumie and Damien Vergnaud, France Télécom R&D, Caen, and Université de Caen. Key-Dependent Approximations in Cryptanalysis - An Application of Multiple :£':4 and Non-Linear Approximations, F.X. Standaert, G. Rouvroy,~, JJ. Quisquater, and J.D. Legat, Université Catholique de Louvain. 14.45 - 15.05 Coffee and tea break " S:~J cif tn r/;J.e_ lJJvY\cA + d~ ~ CÓ!l/\tckJ i»: ~0n~nhof x- ~v&1S _. !i- ,I'~ f(t0fJ+k Vltt1 5p0.Le: h~b ~ maal IR 2fYl l/~ eAWc4; C OhljJ&z tit. 15.05 - 16.25 Source coding Huffman codes revisited, ~BUIIJtJlld J? R. Stasinski and G. Ulacha, Poznan University of Technology and Szczecin University of Technology Improved Elastic Storage of Digital Still Images, René J. van der Vleuten, Philips Research Laboratories, Eindhoven. \ Optimal Partitioning of Video Sequences for MPEG-4 Sprite Encoding, 1 irk Farin, Peter H.N. de With, and Wolfgang Effelsberg, University of Mannheim, • Logica CMG, and Eindhoven University of Technology. de. A SW-based Complexity Scalable MPEG Encoder for Mobile Consumer Equipment, ~. j_~ S. Mietens, P.H.N. de With, and C. Hentschel, Eindhoven University of Technology, CU\twOIlllWr. Logica CMG, and Philips Research Laboratories, Eindhoven. 16.25-16.45 Coffee and tea break 16.45 - 17.25 Data-embedding and Signal Separation Vd(/~ Capacity of reversible information embedding for small distorsions, ~ Deran Maas, Ton Kalker and Frans Willems, Technical University Eindhoven, and Philips Research Laboratories Eindhoven. Jl(_~:sr 2eNtuul~ .. Blind source separation uf speech and background music for improved speech J p iJ- i,i recognition, P. Vanroose, Katholieke Universiteit Leuven. :J...'t~~~ 17.40 - 19.00 General Assembly of the WIC 19.00 Symposium Dinner Friday, May 23 9.00 - 10.20 Biometrics ~, I !! Îf;s .i3iJE Biometrie verification: A result and an exotic example, Raymond Veldhuis, Asker Bazen, and Maarten Boersma, Twente University. Verification using partially known biometrics, ~ Jasper Goseling, Stan Baggen and Ton Akkermans, Twente University, and Philips Research Laboratories, Eindhoven. Reliable (robust) biometrie authentication. with privacy protection, E. Verbitskiy, P. Tuyls, D. Denteneer, and J.-P. Linnartz, Philips Research Laboratories, Eindhoven. Experimenting with Face Detection and Recognition for Home Surveillance: a. Status Report, F. Zuo and P.H.N. de With, Eindhoven University of Technology and Logica CMG. 10.20 - 10.40 Coffee and tea break 10.40 - 12.00 Transmission and Recording Channels .s~1l- ~ Equalization and Target Response Optimisationfor High-Density Two-Dint~onal Optical Storage, J. Riani, J.W.M. Bergmans, S.J.L. van Beneden, W.M.J. Coene, and A.H.J. lmmink, Eindhoven University of Technology and Philips Research Laboratories Eindhoven Index Assignment Schemes for M -description Coding, Jean Cardinal, Université Libre de Bruxelles. An efficient algorithmfor computing the entropy of output sequences for bitshift channels, Stan Baggen and Vladimir B. Balakirsky, Philips Research Laboratories, Eindhoven, andEIDMA. Higher order asymptotics ofmutual information for nonlinear channels with non-Gaussian noise, v.v. Prelov and E.e. van der Meulen, IPPI, Moscow, and Katholieke Universiteit Leuven. 12.00 - 13.00 Lunch 13.00 - 14.20 Cryptography ~ f;' _,........ A structure of block ciphers achieving some resistance against fault attacks, Mathieu Ciet, Gilles Piret and Jean-Jacques Quisquater, Université Catholique de Louvain '. Tensor Transfomlof Functions over finite fields, -ree~:1j.tJk(J IlRJ.lIk:r: Alexander Kholosha, Eindhoven University of Technology. ,Çi p!Aft + Efficient Designated Verifier Signature Schemes, Shahrokh Saeednia, Steve Kremer, and Olivier Markowitch, Université Libre de Bruxelles. Authenticated and efficient key management for ad-hoc networks, -r Stefaan Seys and Bart Preneel, Katholieke Universiteit Leuven. hJa.at ~ vq~?;/dag ~ , 14.20 - 14.4Ó'Coffe~ and rea break ~. 14.40 - 16.00 Wireless Communication Algebraic Techniques for Signal Separation, L. de Lathauwer, B. de Moor, J. Vandewalle, and A. de Baynast, ETIS, Cergy-Pontoise, and Katholieke Universiteit Leuven. Power allocation and optimal Tx/Rx structures for MIMO systems, ~ R. Cendril!on, O. Rousseaux, M. Moonen, Etienne van den Bogaert, and Jan Verlinden, Katholieke Universiteit Leuven, and Alcatel Bel! Antwerpen. A Power-Efficient Compound Modulation Scheme for Addressing Multiple Users in the Downlink, Gerard J.M. Janssen, Delft University of Technology. Novel Sampling Method for increased spectral efficiency in wireless communication systems, J. Levendovsky, L. Kovács, A. Olah, D. Varga, and E.e. van der Meulen, Budapest University of Technology and Economics, and Katholieke Universiteit Leuven. 16.00 Closing; presentation of Gauss award Proceedings of the 24th Symposium on Information Theory in the Benelux May 22-23, 2003 Veldhoven, The Netherlands Edited by L.M.G.M. Tolhuizen Published by: Werkgemeenschap voor Informatie- en Communicatietheorie Enschede, The Netherlands, 2003 Previous symposia 1. 1980 Zoetermeer, The Netherlands Dept. of Electrical 2. 1981 Zoetermeer, The Netherlands Engineering, Technical 3. 1982 Zoetermeer, The Netherlands University, Delft 4. 1983 Haasrode, Belgium ISBN 90-334-0690-X 5. 1984 Aalten, The Netherlands ISBN 90-71048-01-2 6. 1985 Mierlo, The Netherlands ISBN 90-71048-02-0 7. 1986 Noordwijkerhout, The Netherlands ISBN 90-6275-272-1 8. 1987 Deventer, The Netherlands ISBN 90-71048-03-9 9. 1988 Mierlo, The Netherlands ISBN 90-71048-04-7 10. 1989 Houthalen, Belgium ISBN 90-71048-05-5 11. 1990 Noordwijkerhout, The Netherlands ISBN 90-71048-06-3 12. 1991 Veldhoven, The Netherlands ISBN 90-71048-07-1 13. 1992 Enschede, The Netherlands ISBN 90-71048-08-X 14. 1993 Veldhoven, The Netherlands ISBN 90-71048-09-8 15. 1994 Louvain-Ia-Neuve, Belgium ISBN 90-71048-10-1 16. 1995 Nieuwerkerk a/d IJssel, The Netherlands ISBN 90-71048-11- X 17. 1996 Enschede, The Netherlands ISBN 90-365-0812-6 18. 1997 Veldhoven, The Netherlands ISBN 90-71048-12-8 19. 1998 Veldhoven, The Netherlands ISBN 90-71048-13-6 20. 1999 Haasrode, Belgium ISBN 90-71048-14-4 21. 2000 Wassenaar, The Netherlands ISBN 90-71048-15-2 22. 2001 Enschede, The Netherlands ISBN 90-365-1598-X 23. 2002 Louvain-la-Neuve, Belgium ISBN 90-71048-16-0 CIP-gegevens Koninklijke Bibliotheek, Den Haag (NL) Proceedings Proceedings ofthe 24th Symposium on Infonnation Theory in the Benelux led. L.M.G.M. Tolhuizen, Eindhoven Werkgemeenschap voor Informatie- en Communicatietheorie ISBN: 90-71048-18-7 ii The Twenty-fourth Symposium on Information Theory in the Benelux has been orga- nized by Philips Research Laboratories Eindhoven, The Netherlands on behalf of the Werkgemeenschap voor Informatie- en Communicatietheorie and the IEEE Benelux Infonnation Theory Chapter. Program Committee: C.P.M.J. Baggen A.P. Hekstra A.A.C. Kalker L.M.G.M. Tolhuizen P. Tuyls R.J. van der Vleuten FM.J. Willems The organizing committee gratefully acknowledges the financial support of the Gauss foundation. iii Preface Since 1980, the Werkgemeenschap voor Informatie- en Communicatie theorie (WIC) has annually organized a symposium on Information Theory in the Benelux. This year's symposium is being held in Veldhoven, the Netherlands, and has been or- ganized by Philips Research Laboratories, Eindhoven, The Netherlands. We are most pleased that Dr. M.J.T. Reinders, Information and Communication Theory Group, Delft University of Technology, has accepted our invitation to be a guest lecturer at our symposium, where he will give a presentation on the analysis of DNA microarrays to unravel the gene function. These proceedings contain the papers that have been accepted for presentation at the 24th Symposium. We are grateful to the authors for submitting their latest results. The program committee, responsible for the selection of the accepted papers from 39 con- tributions, consisted of Stan Baggen, Andries Hekstra, Ton Kalker, Ludo Tolhuizen, Pim Tuyls, René van der Vleuten, and Frans Willems. The organizing committee gratefully acknowledges the co-sponsorship of the IEEE Benelux Information Theory Chapter and the financial support of the Gauss Founda- tion for the best Young Researcher Presentation Award. Finally, I express my thanks to Mrs. Yvonne Lansink for her assistance in the orga- nization of the symposium. We are confident that this symposium offers a good opportunity to improve personal contacts, exchange knowledge, experience and insights, thereby contributing to one of the aims of the WIC, viz. the stimulation of the work of professionals in the field of information and communication theory in the Benelux. Ludo Tolhuizen, editor Eindhoven, May 2003 v Table of Contents Session 1: Channel coding and decoding • On understanding the performance of the IEEE 802.11 a WLAN physical layer for the Gaussian channel Wim 1. van Houtum • Set Decoding of Convolutional Codes with Application to GSM/GPRS Andries P. Hekstra 9 • On the Use of the Cut-Off Rate for Determining Optimal Input Quantization of a Viterbi Decoder on Fading Channels Stan Baggen, Sebastian Egner, and Bertrand Vandewiele 17 • Static and Dynamic Chase-Like Bounded Distance Decoding Jos H. Weber 27 Session 2: Invited lecture Analyzing DNA microarrays to unravel gene function Marcel Reinders 35 Session 3: Cryptanalysis • Side-channel entropy for modular exponentiation algorithms Lejla Batina and Cees Jansen 37 • Extending the Boneh-Durfee-de Weger's attack to RSA-like Cryptosystems Fabien Laguillaumie and Damien Vergnaud 45 • Key-Dependent Approximations in Cryptanalysis - An Application of Multiple 24 and Non-Linear Approximations FX Standaert, G Rouvroy, G Piret, 11 Quisquater, and JD Legat 53 Session 4: Source coding • Huffman codes revisited R. Stasinski and G. Ulacha 63 • Improved Elastic Storage of Digital Still Images René 1. van der Vleuten 71 • Optimal Partitioning of Video Sequences for MPEG-4 Sprite Encoding Dirk Farin, Peter H.N. de With, and Wolfgang Effelsberg 79 • A SW-based Complexity Scalable MPEG Encoder for Mobile Consumer Equipment S. Mietens, P.H.N. de With, and C. Hentschel 87 VIl Session 5: Data-embedding and Signal Separation • Capacity of reversible information embedding for small distorsions Deran Maas, Ton Kalker, and Frans Willems 95 • Blind source separation of speech and background music for improved speech recognition P. Vanroose 103 Session 6: Biometrics • Biometrie verification: A result and an exotic example Raymond Veldhuis, Asker Bazen, and Maarten Boersma 109 • Verification using partially known biometrics Jasper Goseling, Stan Baggen, and Ton Akkermans 117 • Reliable (robust) biometrie authentication with privacy proteetion E. Verbitskiy, P. Tuyls, D. Denteneer, and J.P. Linnartz 125 • Experimenting with Face Detection and Recognition for Home Surveillance: a Status Report F Zuo and P.H.N. de With 133 Session 7: Transmission and Recording Channels • Equalization and Target Response Optimisation for High-Density Two-Dimensional Optical Storage J. Riani, J.W.M. Bergmans, S.J.L. van Beneden, W.M.J. Coene, and A.H.J. lmmink 141 • Index Assignment Schemes for M -description Coding Jean Cardinal 149 • An efficient algorithm for computing the entropy of output sequences for bitshift channels Stan Baggen and Vladimir B. Balakirsky 157 • Higher order asymptotics of mutual information for nonlinear channels with non-Gaussian noise V. V. Prelov and E. C. van der Meulen 165 viii Session 8: Cryptography • A structure of block ciphers achieving some resistance against fault attacks Mathieu Ciet, Gilles Piret, and Jean-Jacques Quisquater 171 • Tensor Transform of Functions over finite fields Alexander Kholosha 179 • Efficient Designated Verifier Signature Schemes Shahrokh Saeednia, Steve Kremer, and Olivier Markowitch 187 • Authenticated and efficient key management for ad-hoc networks Stefaan Seys and Bart Preneel 195 Session 9: Wireless Communication • An algebraic technique for blind MIMO deconvolution of constant modulus L. de Lathauwer, J. Vandewalle, and B. de Moor 203 • New algebraic techniques for the separation of DS-CDMA signals L. de Lathauwer, A. de Baynast, J. Vandewalle, and B. de Moor 211 • Power allocation and optimal TxlRx structures for MIMO systems R. Cendrillon, O. Rousseaux, M. Moonen, Etienne van den Bogaert, and Jan Verlinden 219 • A Power-Efficient Compound Modulation Scheme for Addressing Multiple Users in the Downlink Gerard J.M. Janssen 227 • Novel Sampling Method for increased spectral efficiency in wireless communication systems J. Levendovsky, L. Kovács, A. Olah, D. Varga, and E.e. van der Meulen 235 ix List of authors Author Page Author Page Akkermans, A.H.M. 117 Maas, D. 95 Baggen, C.P.M.J. 17,117,157 Markowitch, O. 187 Balakirsky, VB. 157 Meulen, E.e. van der 165,235 Batina, L. 37 Mietens, S. 87 Baynast, A. de 211 Moonen, M. 219 Bazen, A. 109 Moor, B. de 203,211 Beneden, S.J.L. van 141 Olah, A. 235 Bergmans, J.W.M. 141 Piret, G. 53,171 Boersma, M. 109 Prelov, V V 165 Bogaert, E. van den 219 Preneel, B. 195 Cardinal, J. 149 Quisquater, J.J. 53,171 Cendrillon, R. 219 Reinders, M.T.J. 35 Ciet,M. 171 Riani, J. 141 Coene, W.M.J. 141 Rousseaux, O. 219 Denteneer, D. 125 Rouvroy, G. 53 Effelsberg, W. 79 Saeednia, S. 187 Egner, S. 17 Seys, S. 195 Farin, D. 79 Standaert, F-X. 53 Goseling, J. 117 Stastiriski, R. 63 Hekstra, A.p. 9 Tuyls, P. 125 Hentschel, e. 87 Ulacha, G. 63 Houturn, W.J. van Vandewalle, J. 203,211 Immink, A.H.J. 141 Vandewiele, B. 17 Jansen, e. 37 Vamoose, P. 103 Janssen, G.J.M. 227 Varga, D. 235 Kalker, A.A.e. 95 Veldhuis, R.N.J. 109 Kholosha, A. 179 Verbitskiy, E. 125 Kremer, S. 187 Vergnaud, D. 45 Kovács, L. 235 Verlinden, J. 219 Laguillaumie, F 45 Vleuten, R.J. van der 71 Lathauwer, L. de 203,211 Weber, J.H. 27 Legat, J.-D. 53 Willems, FM.J. 95 Levendovsky, J. 235 With, P.H.N. de 79,87,133 Linnartz, J.-P. 125 Zllo,F 133 xi ON UNDERSTANDING THE PERFORMANCE OF THE IEEE-802.11A WLAN PHYSICAL LAYER FOR THE GAUSSIAN CHANNEl. Wim J. van Houtum Philips Research prof. Holstlaan 4, 5656 AA Eindhoven, Netherlands Wim.van.Houtum@Philips.com The physical layer (PHY) standard, "IEEE-802.11a", of an important Wireless Local Area Network (W LAN) achieves transmission data-rates from 6 Mbps to 54 Mbps within a transmission bandwidth of 20 MHz at a carrier frequency of 5.x GHz. We describe the functionality and show some simulation results of this P HY. Simulation results are given of the bit error rate (B ER) as function of the signal to noise ratio (SN R) at the input of the receiver. The aim of the simulations is to understand and identify some key factors of the IEEE- 802.11 a P HY for the Gaussian channel. The required SN R for a BER = 10-4 is approximately 12.9 dB away from the Shannon bound of 7.4 dB for 2.7 lr/e/Hz, where 10.9 dB is due to system definitions and approximately 2.0 dB to the choice of a simplified sub-optimal receiver. INTRODUCTION A WLAN PHY like the IEEE-802.11a shows at the moment a great potential to become a widely accepted standard for wireless networking. The IEEE-802.11a PHY is based on the combination of Bit-Interleaved Coded Modulation (BICM) with Orthogonal Frequency Division Multiplexing (OFDM) and achieves trans- mission data-rates from 6 Mbps to 54 Mbps within a transmission bandwidth of W = 20 MHz at a carrier frequency of 5.x GHz in a license free band. We explain the functionality and show simulation results of this WLAN PHY. The simulation results are given of the BER as function of the SNR at the input of the receiver. The aim of the simulations is to understand and identify some key fac- tors of the IEEE-802.11a PHY for the Gaussian channel. Our simulation results take into account: convolutional encoding, puncturing, modulation, frequency di- vision, filtering, channel estimation, demodulation, deinterleaving, depuncturing and soft-decision Viterbi-decoding. Moreover, we assume perfect synchronization and the only impairment is AWGN. The outline is as follows. In Section 1, the system model and some definitions are introduced. Sections 2-4 elaborate on the BICM-part, and Section 5 on the OFDM-part. Section 6 introduces a communication channel model for BICM with OFDM and AWGN. In Section 7 an analysis on the BER is performed. Section 8 shows simulation results in the form of BER vs SNR curves, which are 1 compared to the Shannon bound and the Bhattacharyya Union Bound (BUB). In Section 9 we summarize some conclusions. 1 SYSTEM MODEL OF THE IEEE-802.11A PHY The IEEE-802.11a PHY is a combination of convolutional coding, block- interleaving, M = 2m-QAM and OFDM so, the system model is based on OFDM and a model for BICM introduced by Caire et.al. in [2]. First we introduce, in accordance with [2], some notational conventions: lower case symbols denote scalars or complex numbers, boldface symbols denote vectors and underlined boldface symbols denote a sequence of vectors. Figure 1 shows the block-diagram of the IEEE-802.l1a PHY system model. Figure 1: Block-diagram of the IEEE-802.11a PHY system model. The incoming information bits S! are encoded by a 1/2-rate convolution en- coder with 64-states (1/ = 6) using the industry-standard polynomial go = 1338 and gl = 1718. Higher code-rates of 2/3 and 3/4 are obtained with puncturing. To avoid burst errors, the coded bits _ç are fed into a modified classical row-column block interleaver with a block size equal to mN" coded bits c. The interleaved coded bits 'if{ c} are divided into Nil groups of m bits. Each such group is con- verted via a labeling map f.L into a point x of the finite signal set X ç CCof size lXI = M [2]. For the IEEE-802.11a PHY, Nil = 48, X is square M-QAM with M = 2,4,16 or 64, and f.L is a Gray-labeling [6, Sec. 17.3.5.7]. Next, Nil points, x, are expand with null-symbols to suppress Adjacent Channel Interference (ACI) and pilot-symbols for channel estimation, to N' = 64 points. These points are converted via a N'-points complex Inverse Discrete Fourier Transform (IDFT) plus a cyclic prefix expansion to another group of N = 80 complex numbers, the OFDM-symbol s. Thermal noise n is added to the OFDM-symbol, r = s-l-n. The entries {7]} of n are circular complex Gaussian, i.e, the real and imaginary part are independently identically distributed (i.i.d.) with a Gaussian distribution N(O, ~o) and a probability density function (pdf) given by [4, Sec. 4.l.4] 1 _1'12 p,,(z) = -N eN;;"" (1) 'if 0 where [z] indicates the modulus (magnitude) of the complex number z . The transition pdfs of the channel are given by Ph(rls) = Ph(S + nis) = Ph(n) = Pn(r - sj. The cyclic prefix of OFDM-symbol r is removed, and an N'-points z Discrete Fourier Transform (DFT) is applied. Then, via a removal operation, a group of Nil complex numbers, y, is formed. Now, based on training symbol T a channel estimation H is performed. Then, y is used to compute a set of channel bit metrics, Ai(y, b), for the bit at position i of y, where b E {O, I} and i = I, ... ,m. The computation of Ai(y, b) is based on the Log-Likelihood Ratio (LLR). Actually, in this scenario the demodulator is a bit-metric computer. The bit-metric calculation is followed by deinterleaving. Depuncturing is performed by introducing erasures into a Viterbi decoder, which acts as a Maximum Likelihood Sequence Estimator (MLSE) for retrieving estimates ~ of the original information bits ~. 2 CONVOLUTIONAL ENCODING AND PUNCTURING To discuss the properties of the 64-stage Rc = kin = 1/2-rate convolutional code, we wil! use the transfer function T(D, N, J) of the code, where the expo- nent of D indicates the Hamming distance, the exponent of N the number of input bit 1 branch transitions, and the exponent of J the number of branches [4, Sec.8.2.1]. The number ad of paths with Hamming weight d is the coefficient of Dd in T(D, I, I), that is [4, Sec.8.2.1] 00 L adDd = T(D, I, 1) = llD 10 + 38D12 + 193Dl4 + 1331D16 + ... (2) d=dJree The number f3d of information bit errors on all incorrect paths with Hamming weight d is the coefficient of D" in the derivative of T(D, N, 1) with respect to N and setting N = 1 [4, Sec. 8.2.3], that is f f3dDd = d [T(D, dN N, 1)]1 N-I = 36D10 + 211D12 + 1404Dl4 + ... (3) d=dfn:e - The parameters dJree and f3d are referred to as the code weight spectrum and will be used, in Section 7, to derive the BUB. Puncturing is deleting specific coded bits according to a given perforation pattern. The perforation matrices for the IEEE-802.11a PHY are given by [P~] = [11] 10 [Pt] = [110] 10 1 (4) In [1] the weight spectra of these punctured codes can be found, 00 { D6 + 16D7 + 48D8 + ... Rc = 2/3 T(D, I, 1) = L adDd = (5) d=dt.... 8D5 + 31D6 + 160D7 + ... Rc = 3/4 and R; = 2/3 (6) Rc = 3/4 From (5) and (6) can be seen that puncturing the 1/2-rate parent code reduces dJree from 10 to 6 and 5 for the 2/3-rate, respectively, 3/4-rate code. 3 3 BLOCK-INTERLEAVING Caire et.al. showed in [2] that in the AWGN case, the only effect of interleav- ing is to break the correlation between the bits mapped onto the same M-QAM symbol. In the IEEE-802.11a case, where the label-size is maximum 6 bits, the modified classical row-column block-interleaver with a depth of 16 bits [6] should be sufficient to approach the ultimate performance in the AWGN case. 4 BIT-METRIC CALCULATION The bit metric calculation, where the ith bit of the label of x equals b, is based on the LLR (7) where X: is the subset of all the signals x E X whose label has the value b in position i, and b denotes the complement of b [2]. A simplified bit-metric calculation is based on the assumption that the sums in (7) are dominated by a single term, which typically occurs at high SN R, this yields , . maxPH(ylx) XEXb } 1 { . } A'(y, b) = In ( I) = N min Iy - Hxl2 - min lv - Hxl2 (8) { max p., Y x 0 xEX~ XEXb xEr1'i b To avoid noise power estimation at the receiver side the value is approximated ~D by a receiver parameter () with a finite number of possible values. In (8) per- feet Channel State Information (CS!), H, is assumed but in our simulations we perform a channel estimation H = YT = H + nT-1 = H + e (9) T where T is a training symbol according to [6, Sec. 17.3.3] and YT the received training symbol. This results in a set of simplified sub-optimal bit-metrics (lU) which, for all i and (), lie between - max and + max to ease quantization. Finally, a MLSE makes decisions according to the rule [2] I< ç = argmax ~ Ä_i(Yk> n(c1)), Vi (11) eEC Z:: - k=l where K is the number of blocks Y of the sequence Y (without YT). The Viterbi decoder, in our case, makes decisions based on the summation of L bit metrics, where L is the trace-back length. 5 ORTHOGONAL FREQUENCY DIVISION MULTIPLEXING It is well known, [5], [7, Ch. 2] and references therein, that OFDM is a method to divide ISI channels into a number of parallel ISI-free subchannels. For the IEEE-802.11a PHY, NI = 64 parallel subchannels are created but only Nil = 48 of these subchannels are used to transmit the sequence of coded bits £. The remaining 16 subchannels are reserved for null-symbols and for pilot-symbols. Thus, the IEEE-802.11a PHY is giving up N - Nil = 80 - 48 = 32 complex dimensions to combat channel impairments". We will take this dimension loss into account if we compare our simulation results against the normalized channel capacity as defined by Shannon ([4, Sec. 7.1.2]) - C C = W = log2(1 + SNR) [bis/Hz] or [bits/cplx.dim.] (12) 6 COMMUNICATION CHANNEL MODEL FOR BICM WITH OF DM In the AWGN case, the combination of BICM and OFDM can be seen as Nil parallel independent BICM transmissions [5]. Each of these Nil BICM communi- cation channels will be modeled by the equivalent channel model for BICM with ideal interleaving introduced by Caire et.al. in [2]. Figure 2 shows the channel model for BICM with OFDM. The model consists of mN11 parallel independent --1&navCho'Y1eI m(N"-lJ+ Ir- --1"""""';"_.'1+ y Binary C~nneI mN"~ Figure 2: Communication channel model of BlCM with OFDM and AWGN. and memoryless binary input channels connected to the convolutional encoder output via a random switch, which models ideal interleaving, so for every bit c the switch selects randomly a position index j E {I, ... , mNII} and sends c on the yth channel. 1 Here we neglect the complex dimensions required for pilot-symbols (preamble) at the be- ginning of a transmission. 7 BIT-ERROR PROBABILITY ANALYSIS To ease analysis, Caire et.al. in [2]showed that the Pairwise Error Probability (PEP) between _ç_ and ç_ can be represented as a function of the Hamming distance d between _ç_ and ç_ (and not the pair (_ç_, ç_)), the labeling M and the signal set X i.e. f(d, M, X) for the BICM channel with ideal interleaving. Now the usual union bound for linear binary codes can be used [2, Eq. (26)], 1 00 EER S k L f3df(d, M, X) (13) d=d"." For a single BICM channel with ideal interleaving and a maximum likelihood decoder with perfect CS!, Caire et.al. derived the BUB on the PEP [2, Eq. (27)]. Now, by rewriting [2, Eq. (27)] for Nil parallel BICM channel usage, as shown in Figure 2, we get the BUB, f(d, M, X < ) - ( NU 1 mN" m L Eb,¥_,H j=1 [ PH(ylb,j)- ( Ib) PH;r ,J l) d (14) where Eb,y,H[g(b, y, H)] is the average of 9 over b, y and H, which might be obtained via Monte Carlo simulations. Substitution of (14) into (13) gives an upper-bound on the EER for BICM with OFDM. 8 SIMULATION RESULTS This section shows simulation results of the IEEE-802.11a WLAN PHY at the highest bit-rate of 54 Mbps, i.e. X is 64-QAM and C is the rate 3/4 punctured convolutional code. The simulation results show the EER vs the SN R = E~2} = !Ju' The parameter values are set to: () = 2 (representing ~J,max = 8 and L = 96. Now, based on our simulations, we discuss different implementation losses at a EER = 10-4. Firstly, due to system definitions, the loss in SN R for giving up dimensions where Nil 18 {2= - = - =0.6 (16) N 80 is the ratio between the dimensions used for transmission of the sequence ~ and the total available dimensions. Next, the Shannon bound is only valid if the el- ements of the sequence ~ (the M-QAM symbols) have a Gaussian distribution [4, Sec. 7.1.2]. In our case, the M-QAM symbols are uniformly distributed, re- sulting in a shaping loss of 6.SN R'hap, ~ 1.53 dB, as shown in [3, p. 1125]. Now, we introduce the "IEEE-802.11a bound", that is the Shannon bound plus the dimension loss and shaping loss of the IEEE-802.11a PHY. The Shannon and the "IEEE-802.11a" bound are shown in Figure 3. 1O-1 L-___I___[_--,LO ------',------_L__L___l'6,------..L"------,2LO ____JL..L------,L--__[_-_J28 6 SNR in dB Figure 3: BER of the IEEE-802.11a PHY at 54 Mb/s on the AWGN channel. If we substitute for Re = 3/4 the set {,B5 ... ,Bll} of (6) and (14) with m = 6 into (13), we obtain the BUB on the BER as shown in Figure 3. The simulated reference curve of Figure 3 is obtained with almost perfect CSI i.e. based on a 100 dB power boosted T, no channel updating, almost no quantization effects i.e. 8 bits of quantization and the LLR bit-metrics given by (7). This reference curve is upper bounded by the BUB within approximately 0.9 dB, which is to be expected from the tightness of the BUB [2]. Figure 4 shows different SN R losses of the IEEE-802.11a PHY at 54 Mb/s on the AWGN channel. It can be seen that the non-ideal punctured 3/4-rate convolutional code introduces a fJ.SNReode ~ 3.4 dB Loss in SNR. Another fJ.SNRquant ~ 0.1 dB loss is caused by the quantization of the bit-metrics (7) into 4 bits. Further can be seen that the noisy channel estimation H introduces fJ.SNR;nit :=;:0 l.7 dB loss. Finally, the usage of the simplified sub-optimal bit-metrics, given by (10), introduces fJ.SN Rmetric ~ 0.2 dB loss. 9 CONCLUSION The IEEE-802.11a PHY is a combination of BlCM and OFDM. The required SN R for the highest rate of 54 Mb/s on the AWGN channel, at a BER = 10-4, is approximately 12.9 dB away from the Shannon bound at 7.4 dB for 2.7 bis/Hz. Of this 12.9 dB, approximately 10.9 dB is due to system choices i.e. to be robust against multipath, channelization, using square 64-QAM and the de Figure 4: SN R losses of the IEEE-802.11a PHY at 54 Mb/s. facto standard 64-state rate-l/2 binary convolutional code with puncturing rate- 3/4. The other approximately 2.0 dB is due to quantization effects, sub-optimal bit-metric usage and imperfect channel estimation. Further, all the simulation results are obtained with ideal synchronization and without RF-impairments. REFERENCES [1] G. Begin, D. Haccoun, and C. Paquin, Further results on high-rate punc- tured convolutional codes for Viterbi and sequential decoding, IEEE Trans. on Communications 38 (1990), no. 11, 1922-1928. [2] G. Caire, G. Taricco, and E. Biglieri, Bit-interleaved coded modulation, IEEE Trans. on Information Theory 44 (1998), no. 3, 927-946. [3] G. David Forney, Coset codes-part I: Introduetion and geometrical classifica- tion, IEEE Trans. on Information Theory 34 (1988), no. 5, 1123-1151. [4] John G. Proakis, Digital communications, fourth ed., Higher Education, McGraw-Hill, Northeastern University, 2001. [5] Dirk Sommer and Gerhard P.Fettweis, Aspects of coding and modulation for OFDM, 6th Int.OFDM-workshop (INOWo), 2001, pp. 21-1-21-4. [6] IEEE standards Department, High-Speed Physical Layer (PHY) in the 5 GHz Band, IEEE Std 802.11a-1999 Supplement to IEEE Std 802.11-1999. [7] Richard van Nee and Ramjee Prasad, OFDM for wireless multimedia commu- nications, first ed., Artech House Publishers, Boston, 2000. SET DECODING OF CONVOLUTIONAL CODES WITH APPLICATION TO GSM/GPRS Andries P. Hekstra Philips Research Prof. Holstlaan 4, 5600 AA Eindhoven, NL We define "set decoding", a variation of list decoding of convolutional codes for which the series of decoded codewords is unordered (w. r. t. likelihood). The size of our sets is a random variable, as opposed to the list size, which normally is an input to list decoding algorithm. For our set decoding prob- lem, we present an alqorithmic solution with low complexity. INTRODUCTION Sundberg and coauthors [1] consider the communication situation in which messages that include a eRe checksum are convolutionally encoded. They show that length L = 2,3, ... 8 list decoding of the convolutional code and selection of the most likely list entry for which the eRe checksum corresponds to the remainder of the message can achieve a significant decoding gain over classical Viterbi decoding (L = 1). In the following, when we speak of the trellis, we mean the trellis of the convolutional code. The main contribution of this paper is the so called depth- first B-algorithm, that can produce decoded sets of messages with a size in the hundreds, depending on the time and memory complexity limits that apply. The letter" B" stands for" budget", an input parameter of our algorithm. We start our development in section with a slight change in the formulation of the list decoding problem, which we call set decoding, which obviates the need for any sorting or ordering, thus striving for an algorithmic solution at a lower complexity than the original list decoding problem. The algorithm which we develop in sections, , and, the depth-first B-algorithm illustrates the advantage of using a Viterbi preprocessing step. This approach goes further than the single- wrong-turn technique of Allpress and Hahrn [2]. The main step of the B-algorithm then consists of either a depth-first or breadth-first tree search of the trellis. In section , we present a multi-layer application strategy, that can be used to deal with the random decoded set size of our algorithm. In section we discuss simulation results. Finally, we give conclusions. PROBLEM FORMULATION Our motivation to define the so called set decoding problem as a variant of the list decoding problem, is to avoid the need for sorting or ordering, which would follow from fixing the list size. Our intention is that this avoidance of sorting will 9 lead to decoding algorithm that can produce longer lists of most likely paths for a given complexity. As is customarily the case, we assume that the metrics in the Viterbi algo- rithm (VA) are log-likelihoods. Furthermore, we assume in the following problem formulation, that we know the path metric CM L of the maximum likelihood (ML) path. We define the cost C(p) of a trellis path pas C(p) = CML - "path metric of "p. Thus, the ML path has zero cost.'. In general, a path has nonnegative cost and quantifies the degradation of the path's log-likelihood with respect to the ML path. Now, fix a certain budget parameter B. By the trellis set decoding problem, we mean the following. Produce an unordered list, i.e. a set D(B), of all trellis paths pand their cost C(p), for which the cost C(p) are at most the budget B. Observe, that the size of the produced list will in general be random. For a given convolutional code, it depends on the received sequence, which typically consists of soft decision values from an equalizer or bit-detector". ALGORITHM DEVELOPMENT If one realizes that path metrics are sums of branch metrics, the trellis set decoding problem is an example of a computer science problem that could be solved by a depth-first or breadth-first tree search algorithm [3J. Depth-first tree search is also known as backtracking search. The name backtracking search has to do with the fact that during the execution of a depth-first search, sometimes any extension of a trellis path to deeper levels in the trellis would give a path for which the cost would exceed the budget. Then, the algorithm has to go back (" to a shorter trellis path"). Of course, these events of running into dead ends, do contribute to the time complexity of the algorithm. We will show, that using a Viterbi preprocessing step, one can create a look ahead property during tree search which avoids that the algorithm ever runs into such dead ends. For reasons of simplicity, we assume that the convolutional code" is binary and has rate R = 1/2, so that for each time unit, one bit is shifted into the encoder's register and one bit is shifted out. We assume that the trellis is terminated at both ends. By a trellis node n, we mean a tuple of a shift register state and a time index in the trellis. For our rate R = 1/2 code, a trellis node is connected lThe ML path may not be unique. In that case, it becomes arbitrary what to the call the ML path. Our algorithm still works in that case. Because it is more intuitive, we speak of "the" ML path. 2If one would seek maximurn generality, one could replace "convolutional code" by "trellis code". One could even consider an equalizer instead of a convolutional decoder, in the following. 3 more generally, a trellis code by at most two branches with trellis nodes one time index earlier and also, it is connected by at most two branches with trellis nodes one time index later. In the Viterbi algorith, for each node, for each incoming branch, the sum of the branch metric and the path metric of the node one time unit earlier is formed. We call these sums candidate path metrics. For n a trellis node, let 0(n) be the difference of the candidate path metric for that node given that a O-bit was shifted out of the encoder, minus the candidate path metric for that node given that a I-bit was shifted out. Storage of one trace back bit per trellis node is a common technique to obtain the decoded message in the VA [4]. This trace back bit of a given trellis node then equals the most likely bit shifted out of the encoder at that trellis node. In other words, if o(n) > 0, the trace back bit is "0", otherwise it is "1". In the VA, the maximum likelihood (ML) path is obtained by starting at the end of the trellis and following in the reverse time direction of the trellis the stored trace back bits. Tracing back a given path other than the ML path, one needs to divert from the trace back bits at certain nodes. We then say that at those nodes, "non-Ml: (bit) decisions are taken "4. A LEMMA We can now formulate a Lemma that enables us to express the cost of a path as a sum of quantities other than branch metrics. Lemma. The cost C(p) of a trellis path p equal the sum of the absolute values of the o(n)'s of the trellis nodes n on p for which non-Mi, decisions are taken. Whether an ML-decision or a non-ML-decisions is taken is a function of the branch, rather than of the node. Thus, we can say that the cost of a trellis path are the sum its branch cost, where we define the cost of an ML-decision to be zero, and the cost of a non-ML decision to be the 0 of the start node of the branch, where branches are directed from the final node of the trellis to the start node of the trellis. The Proof of this Lemma goes by induction, and is left to the reader. 1Note that in case the 15of a node is zero, it becomes arbitrary which branch to call ML and which branch to call non-MLo In that case, our algorithm still works. The cost of both branches are equal to zero, either way. 11 TREESEARCH Given a (binary) linear block code, e.g. a eRe, the syndrome of a block of (binary) symbols is a well known concept in coding theory. By a partial syndmme, we mean that not a complete block is available to compute the (full) syndrome, and that only those columns of the parity check matrix are summed that lie in the index range of the incomplete block. In the sequel we formally define the partial syndrome of the message sequence that corresponds to the path in the trellis of the convolutional code, and starts at the final node of that trellis, and end somewhere midway that trellis. The set of all trellis paths that start at the end of the trellis can be thought of as a tree with as root the final node of the trellis. When two paths p and pI from the final node of the trellis, end in the same trellis node n, they may have different partial eRe syndromes. Therefore, in general paths that meet at the same node cannot be merged, but one has to try to extend p and pI separately to paths that reach the start of the trellis. This is why we speak of a tree search in the trellis. Paths are not merged. The set of all trellis paths for which the cost are at most the budget B is a sub tree of this tree. It follows from the Lemma, that when tracing back from the final node, when we have reached a certain trellis node and thus far accumulated a certain cost, we can always continue that path with all ML-decisions up to the starting state of the trellis without an increase in cost. This means that the "dead end" events discussed in section, cannot occur if we do a depth-first tree search starting from the final node of the trellis while summing o's instead of branch metrics. If a certain non-ML decision is taken at a node n, the quantity 10(n)1 accounts for the total cost necessary to complete that path up to the start of the trellis. Let N be the block length of the eRe code and let m be the memory order of the convolutional code. Then, N + m is the block length of the truncated convolutional codeword. As the m bits that terminate the trellis of of the convo- lutional code are assumed not to be part of the CftC codewords. The trellis has N + m + 1 columns of trellis nodes with time index i = 0,1, ... , N + m, resp. At time index ° and at time index N + m, there is just one node. With this definition of the time index for trellis nodes, we give a trellis branch the same time index as its starting node. We direct all branches from the end of the trellis to the start of the trellis (this definition of direction is more logical during trace hack). A trellis stage consists of all branches with a common time index. Let Xi(P), i = 1,2, ... , N + m denote the output bit of the convolutional encoder's shift register at its node with time index i (we will also say "at stage i"). Observe that during a trace back, for i = m, m - I, ... ,1 the bits of the starting state of the trellis are shifted out; they are not real message bits. There is no output bit for the starting state 0. During the tree search which advances by trace back, the algorithm keeps track for a given path p from the final node of the trellis up to a certain trellis 1'2 stage i, what the partial syndrome S(p) of the eRe bits used for list reduction is over that path. The fact that we check only a limited number of the eRe checksum bits, means that we effectively consider a super code of the original eRe code. In other words, we use only a subset of the parity check equations, that involve those checksum bits that are tested for list reduction purposes. Let hj be the j-th column, j = 0,1, ... , N - lout of the parity check matrix H of the block length N eRe code, restricted in height to the columns used for list reduction. For the path p the partial syndrome is defined as, S(p) = (1) j=i+l,i+2, ... ,N+m,j>m The fact that our index range in this formula is {m, m + 1, ... , N + m} is due to the fact that Xj(p) is the output bit at of the encoder's shift register instead of the input bit. Observe that in the trivial case where p consists just of the final node of the trellis and i = N + m, we have S(p) = O. When p spans the entire trellis and i = 0, the partial syndrome S(p) equals the syndrome of p, as it is ordinarily defined for a linear block code, in casu the CftC. THE DEPTH-FIRST VERSION OF THE B-ALGORITHM In a depth-first or breadth-first tree search problem, one needs to define an ordering on the set of all possible vectors [3], in our case the trellis paths or the pertaining messages. It is quite common to choose a lexicographic ordering. For the depth-first algorithm, this would mean that the all zeroes message is explored first. Instead we prefer to have the algorithm explore the ML path first. Thus, we define a message bit which corresponds to an ML-decision to be smaller than a non-ML bit decision. The lexicographic ordering we use, with the high time index bits being most significant, and the ML message bits being the least bit value. Alternatives to this depth-first B-algorithm would be a breadth-first B-algorithm, or an algorithm that runs two breadth-first search on two halves of the trellis and then combines them using the technique of Dumer [5J. The maximum number of calls of the depth first B-algorithm, we call the "node quota." The required node quota can been reduced ifone "glues" together sequences of ML-branches for which a single corresponding non-Ml. branch would by itself already exceed the budget parameter. This way, one can create a trellis of pointers where each pointer is directed towards the trellis node one can im- mediately jump to, given the budget. We call such concatenations of branches, "super branches". We count taking a super branch as one node visit. A further modification - which we only mention for the sake of completeness - of e.g. the depth-first B-algorithm would be not to try to reach the end of the trellis, during the search, but to stop u stages before that, if u eRe bits are used for list reduction. These last u bits can then be computed from the u bits partial 13 syndrome up to that point so that always a eRe codeword will be obtained. In general, the extension of a path with u computed bits will carry non-zero cost. At that point the criterion no longer is whether one can reach the starting node of the trellis with acceptable cost, but whether one can reach u stages before the starting state, with acceptable cost including the aforementioned last cost charge. MULTI-LAYER STRATEGY TO DEAL WITH RANDOM LIST SIZE In this section, we answer to question of how to choose the B parameter in relation to the decoded set size ID(B) I. Given a received soft bit sequence r , the decoded set size ID(B) 1 strongly depends on the sequence r , and is in general a "steeply increasing" function of B. The time complexity of the decoding operation is also a steeply increasing function of B. Apart from that it is steeply increasing, it is in general difficult to accurately predict the function B ~ ID(B)I or its inverse. It depends on • the distribution of the ó(n)'s which are smaller than B, • the location of those Ó(n)'s in the trellis, • how many such "small" ó(n)'s there are. A practical solution to this problem of choosing B, is not to try to predict B as a function of the channel conditions or the received sequence, but instead to try a sequence BI, B2, B3,'" ofsuccessively larger values, BI < B2 < B3 < ... , with an upper limit on the total computation time or an estimate thereof. The resulting decoded sets also form an increasing sequence, D(Bd c D(B2) c D(B3) c . ... For instance, assume that D(B3) is the first decoded set that contains a message for which the eRe checksurn bits used for list reduction correspond to the remainder of the message. As the time complexity for a call of a B- algorithm is a also a steeply increasing function of B, the computation time spent on the evaluation of D(BI) and D(B2) is in general negligible with respect to that of D(B3). In simulation experiments for GSM/GPRS packet channel coding schemes 1 and 2 with 12 eRe bits used for list reduction, a linearly increasing sequence of three B values turns out to be perform well. The results of such simulations are discussed in the next section. SIMULATION RESULTS Our interest is in the GSM/GPRS mobile communication system in which many instances occur of the communication situation studied by Sundberg and coauthors, e.g. GPRS packet channel coding scheme 2. This coding scheme uses a punctured memory order m = 4, originally rate R = 1/2 convolutional codec and has a 16 bit eRe. Our aim is to achieve a larger decoding gain through the exploitation of significantly more than 4 eRe bits, which necessitates the use of longer decoded lists. Optimal decoding of a memory order m = 4, rate R = 1/2 convolutional code and up to 10 eRe bits can still be performed in reasonable computation time using a joint trellis. In such a joint trellis, a joint state is the combination of the convolutional encoder state and a number of partial syndrome bits of the eRe. For 10 eRe bits, a joint trellis with 2m+lO = 214 states is obtained. We present simulation results for GSM/GPRS packet channel coding (eS) scheme 1 and 2. The SAeeH control channels use the same channel coding as CS-I. The difference between the two coding schemes is that • in eS-2 the convolutional code is punctured, in eS-l it is not, • CS-2 uses a 16 bit eRC, eS-l uses a 40 bit shortened Fire code eRe. The graphs that follow compare • classical Viterbi decoding of the convolutional code, • joint trellis decoding of the convolutional code and a 5 bit CRe syndrome, • B-decoding, using 10 CRe bits for list reduction, using the depth-first B- algorithm, • joint trellis decoding of the convolutional code and a 10 bit CRe syndrome. The parameters of the depth-first Bvalgorithm" were tuned to give small computation times. To give an idea, on a 650 MHz Pentium III laptop, for eS-1 over an AWGN channel at 0 dB, the average decoding time for a non-optimized e++ program was ca. 6 ms per codeword. In fact, the fraction ofthe computation time used by the B-algorithm was negligible. The majority of the computation time was due to Viterbi processing. The maximum computation time is what counts in an implementation in a mobile device. Since the computation times are so short, this is difficult to measure in a C++ implementation. Also, complexity in an implementation on a chip is an entirely different measure of complexity as when running on a Pentium. For the Block Error Rate (BLER) graphs, see figure 1. CONCLUSIONS We have formulated the set decoding problem as a variation of the list de- coding problem and have presented in detail one algorithm to solve this decoding problem. In the set decoding problem, the set size (list size) is random. Using 10 eRe bits for list reduction, for eS-l (identical to SAeeH channel coding) and CS-2 packet channels of GSM/GPRS, we obtained a decoding gain of around 1.5 dB. When using an optimal decoding technique using more CRe bits for list reduction, a law of diminishing returns becomes evident. 5with super branches, node quota 4000, three B values, 10 CRC bits SNA Figure 1: Block Error Rate (BLER) for (1) Viterbi decoding, (2) joint trellis decoding of the convolutional code and 5 GRG syndrome bits, (3) decoding with aB-algorithm (10 GRG bits used for list reduction), (4) joint trellis decoding of the convolutional code and 10 GRG bits used for list reduction, as a function of SNR (top to bottom curves, resp.).SNR in dB. GPRS coding scheme 2. Static AWGN. SNR in dB. ACKNOWLEDGMENTS The author would like to thank Juergen Petersen of Philips Semiconductors Nuremberg, for providing him with the references on the List Viterbi algorithm [1]. Furthermore, the author acknowledges important discussions during his re- search with his colleague Dr. Stan Baggen of Philips Research. REFERENCES [1] N. Seshadri, C.E.W. Sundberg: "List Viterbi Decoding Algorithm with Appli- cations", IEEE Transactions on Communications, Vol. COM-42, No. 2/3/4, Feb/Mar/ Apr 1994, pp. 313-323. [2] A. Allpress, D. Hahrn, "Viterbi decoding using single-wrong-turn correction," US Patent 6378106, 1999. [3] T. Corrnen, C. Leiserson, R. Rivest, "Introduction to algorithm," MIT Press, McGraw-Hill, 1992. [4] C. Rader, "Memory management in a Viterbi decoder," IEEE Transactions on Communications, Vol COM-29, pp. 1399-1401, Oct. 1981. [5] 1. Dumer, "Sort-And-Match Algorithm," IEEE Transactions on Information Theory, Vol. IT-45, No. 7, Nov. 1999. U sing Ra for Determining the Quantization of the input of a Viterbi Decoder on Fading Channels Stan Baggen, Sebastian Egner, and Bertrand Vandewiele Philips Research Laboratories Prof. Holstlaan 4 5656 AA Eindhoven The Netherlands ABSTRACT The input to a practical Viterbi decoder consists of quantized soft decision informa- tion. We study the impact of this quantization on the performance of the commu- nication system for the infinitely interleaved Rayleigh fading channel. It turns out that optimal quantizers can be designed by maximizing the cut-off rate Ro of the equivalent discrete memoryless channel. This extends similar results known for the Gaussian channel. We have verified our conclusions with extensive simulation. INTRODUCTION We consider the case of digital communication over the Rayleigh fading channel. Binary information, encoded by a convolutional code, is transmitted via this channel using BPSK modulation. The channel introduces fading and Additive White Gaussian Noise (AWGN). In the discrete-time equivalent baseband channel (Figure 1), fading is represented by multiplying each transmitted symbol by H, where I H I is i.i.d. Rayleigh distributed (infinite interleaving). H--------- I n ----~ransmitter Figure I: Communication over the Rayleigh fading channel. H is assumed to be known at the receiver. Therefore any rotation of the signal constellation due to H can be undone. We assume H to be non-negative real. 17 In order to limit the implementation complexity, the soft-decision BPSK demod- ulator output is quantized using a fixed number of m bits before sending it to the in- put of a Viterbi decoder which decodes the convolutional code. The concatenation of BPSK modulator, channel, demodulator and quantizer results into an equivalent discrete memoryless channel (DMC) with input alphabet of size A = 2 and output alphabet of size Q = 21n (see Figure 2). A~2 inputs OMe Q~8 outputs Figure 2: Equivalent discrete memoryless channel, m = 3 bit quantization. Quantization leads to an implementation loss, i.e., a slightly larger average SNR on the channel is required for obtaining the same decoded bit error rate as compared to sending real numbers to the Viterbi decoder. We are interested in designing the quantizer such that the implementation loss is minimal for given m. For the AWGN-only'case (H = 1), it is known how to optimally quantize the channel outputs given m, the number of bits we want to spend. Viterbi has remarked that the optimal quantizer settings are also found by studying the cut-off rate of the resulting DMC. For instance, it is found that with m = 3 bit quantization, the spacing of the quantizer levels can be chosen uniformly with a distance of about 0.6u, where uZ is the noise variance. The resulting implementation loss for m = 3 is 0.2 dB. This result is also found in [4]. In the sequel, we first recapitulate what is known for the AWGN channel and then we explain how a similar approach can also be used for the Rayleigh fading channel. QUANTIZATION FOR THE AWGN CHANNEL For BPSK, the symbols" 1" and "0" are transmitted using antipodal signaling. At the proper sampling times and in absence of noise, the output r of a matched filter at the receiver equals r = +~ or r = -.../Es, depending on whether a "1" or a "0" has been sent. Due to the additive noise, r becomes a Gaussian distributed random variable having a mean ±.../Es and a variance uZ (Figure 3). The signal to noise ratio (SNR) is defined as Es/uZ. A quantizer operating on r results in the subdivision of the r-axis into a finite number of Q intervals. For example Q = 2 may correspond to two intervals being r < 0 and r ::: 0, respectively. With each interval j, 0 :'S j < Q, we associate two Figure 3: Distributton oir. Gaussian channel, 3 dB SNR, "1" was transmitted. probabilities qij, 0 ::s i < 2, corresponding to the probability of r falling in interval j conditioned on a "0" and a "1" being sent, respectively. The cut-off rate Ro of a DMC having A inputs, Q outputs, transition probabilities qij, and an input distribution Pi equals [1, Eq. (6.62b)] Ro = - log2 ~ Q-l [A-l t; Pi,fiiij ]2 For BPSK modulation A = 2. The transition probabilities qij depend on the setting of the thresholds separating the intervals. From symmetry arguments, we can deduce that optimal thresholds are symmetric around zero. This leads to a symmetric DMC; in other words qO,j = ql,Q-l-j for all j. It can be shown that Ro assumes its maxi- mum for the uniform input distribution PO = PI = 1/2 for any symmetric two input DMC. Moreover, it is known that non-uniform quantization, i.e. with intervals of dif- ferent size, increases Ro only marginally, [3]. As uniform quantization (all intervals the same size) is also much more attractive for implementation, we restrict ourselves in the remainder to uniform quantization of the output, symmetrically around zero. This means, the quantizer is determined by just two parameters, the number of quantization intervals Q = 2m and the spacing of thresholds b.. > O. As an example, Figure 4 shows Ro as a function of b../u with m = 4 bit quan- tization (Q = 16) for two different SNRs. Note that Ro assumes its maximum for both SNRs at about b.. = 0.32u. Furthermore, observe that Ro decreases quickly if b.. is chosen too small whereas Ro is less sensitive if b.. is chosen too large. This skew sensitivity of Ro on b.. can be observed for all SNR~'-and all m. Figure 5 shows how the optimum b.., the one maximizing Ro, depends on the SNR. 0.55 __. Delta/sigma 0.' 0.' 0.5 0.8 0 .• 5 Figure 4: Cu t-off ra te Ro(l'!.la). Gaussian channel, 2dB or4dB SNR, m = 4. This illustrates the well-known (but often forgotten) result that I'!.opt!a hardly depends on the SNR, i.e., the optimum quantizer spacing only depends on the noise variance. Deltaoptl sigma 0.3 0.' 0.1 10 -- snr [dB] Figure 5: Optimum spacing I'!.optla as function of SNR. Gaussian channel, m = 4. Similar results are obtained for other values of m, albeit with different optimal quantizer spacings I'!.opt. Figure 6 shows how Rü, the cut-off rate for m bit quantization and I'!.opt. depends on the SNR The righthand side is a detail around Ro = 0.5. The implementation losses correspond to the horizontal distance between curves as this distance tells us how much more signal energy we need to operate a code with a given rate on the Gaussian channel if we quantize the modulator output. Note that it does not make much sense to make m larger than 4 for a Gaussian channel. By simulation we have confirmed that the losses estimated by studying Rü are in agreement with the losses observed in a simulation of the system consisting of convo- 2.0 1 ~ ... m o.S R. RIP o ,. 1nt Ro ~~.- »: -- f ,." l. c .• ~ ..... .. ···~0 ,., snr ------+ [dB] 5 nr --------+ [dB] Figure 6: Maximal cut-off rate Ra as a function of SNR. Gaussian channel. lutional encoder, channel, quantizer and Viterbi decoder. Also the numerical value of !lapt for each m and each SNR, and other discussed consequences of picking a certain !l are in remarkable agreement with those found in simulation. QUANTIZATION FOR THE RAYLEIGH FADING CHANNEL A Viterbi decoder finds the maximum likelihood (ML) sequence from the set of all possible input sequences [2, Sect. 4.2]. The ML sequence corresponds to the se- quence for which the sum of the properly weighted log likelihood ratios (LLRs) of each received symbol is maximal. For a Gaussian channel, this corresponds to finding the code sequence which has minimum Euclidean distance to the received sequence r. In case of BPSK, we can search for the code sequence that has maximum correlation with r. We now consider the case of independent Rayleigh fading, with the channel trans- fer H known to the receiver (Figure I), BPSK modulation, and u.i.i.d. transmitted symbols. In this situation, the log-likelihood ratio (LLR) of each received matched filter output r is (r-H-../Esl2) Pr[IJr] exp ( - 2a2 ..JES y = In = In -----'-----~ = 2-2-H . r. Pr [0 r] J exp ( _ (r+~ffs)2) (5 Quantization at the input of the Viterbi decoder means that LLR y is quantized before being passed to the Viterbi decoder. This leads to an equivalent discrete memoryless channel (DMC) of which we now derive the cut-off rate Ro. In order to obtain the transition probabilities of the DMC, we first compute the the probability density function (pdf) of the unquantized LLRs of the Rayleigh fad- 21 ing channel. The transmitted signalof amplitude ffs is multiplied by the Rayleigh distributed real number H 2: O. The pdf of H is Pr[H] = - H exp (H-- 2f32 f32 2 ) . We choose the parameter f3 = I/-J2 such that the expected value E [H2] = 1, i.e., the average SNR at the receiver equals ES/(J'2. The pdf of y, for the case "1" is transmitted and for a given H, is Gaussian dis- tributed with mean E [y] = 2H2 E~ u and variance Var [y] = 4H2 E~. u Formally, Pr [y I 1, H) = 1 exp - ( Y -2H 2E )2) Eu 22 J87CH2ES u2 ( 8H2-f u • Hence, the marginal pdf of y for the case a "1" has been sent equals Pr[y 11] = 00 10o Pr[y 11, H]Pr[H]dH = -E-exP 2a-f 1 (I --alyl 2 1) + -y 2 , u where we have used Pr [H I 1] = Pr [H), as the fading does not depend on the trans- mitted symbol, and have introduced the parameter a= 1+ 2 (Es)-l (J'2 > 1. Figure 7 shows Pr [y I 1] for an average SNR of 3 dB. Note that Pr [y I 1] is piecewise exponential with a discontinuous derivative at y = O. Pr (y 11) Y [LLR] Figure 7: Distribution ofy. Rayleigh fading, 3 dB average SNR, "1" was transmitted. 2.2 Hence, its cumulative distribution function, i.e., the probability Pr [y < x I 1], is also piecewise exponential with two pieces x < 0 and x 2: O. By symmetry we obtain Pr [y I 1] = Pr [- y I 0] and this allows us to compute the transition probabilities % of the DMC for any choice of quantization intervals. As an example, Figure 8 shows Ro as a function of the quantization spacing !l, assuming a uniform quantization symmetric around zero with Q = 2m intervals, m E {4, 5}, for the Rayleigh fading channel with average SNR 4 dB or 8 dB. The horizontal axis is dirnensionless as it is an LLR. (In the Gaussian case we have quantized the received signal r.) m=4 m=5 8 dB RO RO 8 dB c . ,,;-- 4 dB 4 dB 2 2.5 -----+ Delta -. Delta Figure 8: Cut-off rate Ro as a function of !l. Rayleigh fading, 4 dB or 8 dB average SNR, m = 4 or m = 5. As in the Gaussian case, we find that the optimal spacing of quantization intervals depends only weakly on the average SNR. Moreover, for the fading channel, it is even more pronounced that the spacing should better be chosen too large than too small. Figure 9 shows how the optimal t:,. depends on m and the SNR. LCR Delta opt 4 bit ~ .......................... 5 bit :~::~.:.~:.~:.~_ .. ..-. -.,,--- 6 bit ------+ snr [dB] Figure 9: Optimum spacing !lopt (SNR). Rayleigh fading, 4 ~ m ~ 6. 2.3 Although !::lapt slightly increases with increasing SNR, we may pick a fixed !::l without loosing much as we have learned from Figure 8, provided this !::l is large enough for all operating conditions. For instance !::l = 1 seems quite reasonable, both for m = 4 and m = 5, in a broad range of SNRs. Finally, refer to Figure 10 for studying the implementation loss of quantization for the Rayleigh fading channel. The figure shows the cut-off rate Rón with uniformly quantized LLR such that the interval spacing !::l is optimal for given m, the number of bits for quantization. 0.8 0.5S m 0.7 R: O_~4 Rf 0." 0.' 0.' 1 R. 1 0.53 O_~:iI 0.3 0.' 0.51 0.1 -- Sol!> 10 snr [dB] snr -- [dB] Figure 10: Maximal cut-off rate Rö' as a function of SNR. Rayleigh fading channel. Observe that some form of soft-decision information is very important as the hor- izontal difference between the curves R~ (unquantized) and RÓ (hard decision) is in the order of 6 dB. On the other hand it does not seem to make much sense to go beyond m = 5, provided that a proper spacing of thresholds is used. We have verified all results found for the Rayleigh fading channel by extensive simulation of the convolutional encoder, the channel, the quantizer, and the decoder. DISCUSSION We have found that the implementation losses due to quantization of the input of a Viterbi decoder can be studied by considering the cut-off rate Ro of the resulting discrete memoryless channel. This holds both for the Gaussian channel and for the infinitely interleaved Rayleigh fading channel. In particular we can find the quantizer setting minimizing the implementation loss for given m, the number of bits represent- ing a log-likelihood ratio. We find that m = 4 for a Gaussian channel and m = 5 for the Rayleigh fading channel lead to a negligible implementation loss, using a uniform quantizer symmetrically around zero. We also find that an interval size of about f). = 1 in terms of LLR results in close to minimum implementation loss for m = 5 for a broad range of SNRs on the Rayleigh fading channel. Since the latter quantizer also works excellent on the Gaussian channel, we believe that the same quantizer choice is also usable if thefading exhibits memory or if the fading has a different characteristics, e.g. Ricean. This presumption seems reasonable given the fact that the Gaussian channel corresponds to the case Pr[H] = 8(H - 1) and a slowly fading channel behaves locally Gaussian. Moreover, the design of the quantizer is only critical close to the limit of the op- erating region. If the channel is substantially worse, the system cannot deal with the channel anyhow. In case the channel is substantially better, a smallloss in accuracy of the soft-decision information due to a non-optimal quantizer setting is uncritical. For simplicity, we have only analysed the BPSK case. The analysis can be ex- tended to 4-PSK in a straight forward way. The results are also applicable to systems using higher order modulation systems (e.g. IEEE802.11a), provided the demapper delivers bit-wise LLRs at its output. SYMBOLS Es average signal power, Es> 0 a2 variance of Gaussian noise (No = 2a2), a > 0 Esla2 signal to noise ratio (SNR) H channel transfer coefficient, H ::::0 real, E [H2] = 1 f3 parameter of the Rayleigh distribution, f3 > 0 r,r received vector, one component, r real y log-likelihood ratio, y = In (Pr [1 Ir] IPr [0 Ir]) m number of bits after quantization, m ::::1 Q number of quantization intervals, Q = 2m f1 spacing of quantization interval thresholds, f1 > 0 f10pt the spacing maximizing Ro for given m Ro cut-off rate ofthe discrete memoryless channel (DMC) Rö' value of Ro for f1 = f10pt and given m A number of input symbols of OMC, A = 2 for BPSK index for input symbols of OMC, 0 ::: i < A j index of output symbols of OMC, 0 ::: j < Q Pi distribution of input symbols of OMC, Li Pi = 1 % transition probabilities of OMC, Lj qij = 1 a parameter of Pr [y I 1] for the Rayleigh fading channel Pr[x] probability/pdf of variable/event x Pr [x I y] conditional probability/pdf of x given y E [x] expected value of random variable x Var [x] variance of random variable x REFERENCES [1] J. M. Wozencraft and I. M. Jacobs. Principles of Communication Engineering. John Wiley & Sons, 1965. [2] A. J. Viterbi and J. K. Omura. Principles of Digital Communication and Coding. McGraw-Hill,1979. [3] J. A. Heller and 1. M. Jacobs. Viterbi decoding for satellite and space communica- tions. IEEE Transactions on Communication Technology, Com-19 (October), pp. 835-848,1971. [4] I.M. Onyszchuk, K.-M. Cheung, and O. Collins. Quantization Loss in Convolu- tional Decoding. IEEE Transactions on Communications, Vol. 41, No. 2, pp. 261- 265, 1993. STATIC AND DYNAMIC CHASE-LIKE BOUNDED-DISTANCE DECODING Jos H. Weber Delft University of Technology, Fac. ITS POB 5031, 2600 GA Delft, The Netherlands J.H.Weber~ITS.TUDelft.NL A soft-decision decoder for an error-correcting block code of Hamming dis- tance d is said to achieve bounded-distance (BD) decoding if its error- correction radius is equal to that of a complete Euclidean distance decoder. The Chase decoding algorithms are reliability-based algorithms achieving BD decoding. The least complex version of the original Chase algorithms ("Chase-3") uses about d/2 trials of a conventional binary decoder. In this paper, we propose two Chase-like decoding algorithms which also achieve BD decoding: a static method requiring about d/6 trials, and a dynamic method requiring only about d/12 trials. Hence, the complexity is reduced by factors of three and six, respectively, compared to the Chase-S algorithm. 1 INTRODUCTION Over the years, many soft-decision decoding techniques have been proposed for binary linear error-correcting block codes [4]. Although a maximum-likelihood (ML) decoding algorithm minimizes the decoding error probability, other sub- optimum algorithms are still of interest as well, due to the (prohibitively) high computational complexity of ML decoding for long codes. Of particular interest are the ones which achieve bounded-distance (BD) decoding, i.e., for which the error-correction radius is the same as for a complete Euclidean distance decoder. On certain channels, such as the additive white Gaussian noise (AWGN) channel, this property guarantees that an algorithm is asymptotically optimal, i.e., it has the same error performance as ML decoding at high signal-to-noise ratios (SNR). Various classes of sub-optimum algorithms provide an efficient trade-off be- tween error performance and decoding complexity. One such class is formed by the Chase algorithms [2], running a number of trials of a conventional algebraic binary decoder and thus generating a set of candidate codewords, of which the most likely one is chosen as the final decoding result. In each trial, some of the most unreliable symbols are inverted before the actual decoding starts. The inversion patterns, also called test patterns, are taken from a (fixed) test set. Al- though the Chase decoding approach is rather old, such decoders are still highly relevant. They are not only used as stand-alone decoders, but also as constituent components in modern techniques like iterative decoding of product codes ( "block turbo codes") [8]. All three methods proposed in [2] achieve BD decoding when applied to any binary linear block code C of length n, dimension k, and Hamming distance d < n. The numbers of trials are (ld/2J)' 2ld/2J, and ld/2 J + 1, respectively. Note that for the last one, known as "Chase-3", the number of trials grows only linearly in the Hamming distance d. Limited-trial Chase-like decoding algorithms, not necessarily achieving BD decoding, are proposed in [1]. In [7], a BD decoding method using about d/4 trials was presented. The basic idea is to split the Chase-3 test set into two smaller test sets, and to choose between the two, for each received word, based upon a brief analysis of the associated reliability information. Therefore, such a method is said to be dynamic, whereas a method with a fixed test set is said to be static. In this paper, we present both a static and a dynamic Chase-like decoding method achieving BD decoding. The numbers of trials are only about d/6 and d/12, respectively, thus realizing a considerable complexity rednotion over exist- ing methods. The rest of this paper is organized as follows. First, BD decoding issues are reviewed in Section 2. Then, the Chase decoding principle is described in Section 3. Next, low-complexity algorithms are presented in Sections 4 (static case) and 5 (dynamic case), including proofs that these indeed achieve BD de- coding. Finally, the paper is concluded in Section 6. 2 BOUNDED-DISTANCE DECODING We assume the following setting. A sequence of k information bits is en- coded into a codeword x = (Xl, X2, ... ,xn) according to code C. Binary phase- shift keying (BPSK) modulation is used, i.e., a binary codeword x is represented by the vector X = (Xl, X2,' .. , Xn) through the usual componentwise mapping from {O, I} to {±1}. Let {! = (&'1, (22,···, (2n) denote the received sequence in n-dimensional Euclidean space, and y = (Yl, Y2, ... , Yn) denote the binary hard- decision vector for which each Yi follows merely from the sign of [}i We define the binary error vector 1J.y z = x I··y. A complete Hamming distance (or binary) decoder generates for any y a codeword x which is closest in Hamming distance sense. The largest sphere in n-dimensional Hamming space centered at x such that all points in the sphere uniquely decode to x has radius l(d - 1)/2J. A decoder A is said to achieve bounded Hamming distance decoding if it generates the original transmitted code- word x for all error vectors z of Hamming weight at most l(d - 1)/2 J . Similarly, a complete Euclidean distance decoder generates for any received {! a codeword x for which its ±1-representation X is closest in Euclidean distance sense. The largest open sphere in n-dimensional Euclidean space centered at X such that all points in the sphere uniquely decode to x has squared radius d. A decoder A is said to achieve bounded Euclidean distance decoding if it generates the original transmitted codeword x for any received {! for which the squared Euclidean distance to X is smaller than d. In general, a complete channel measurement decoder generates for any re- ceived (! a codeword x minimizing the analog weight of z = y + x, defined by w",(z) = I:~=1 aiZi, where the summation is over the real numbers, and a = (al, a2,.· ., an) contains the channel measurement information, which is of the format ai = IWiQil with the w;'s being positive weight factors. When choosing Wi = 1 for all i, then minimizing the analog weight is equivalent to minimizing Euclidean distance. For certain channels, such as the AWGN channel, this is also equivalent to ML decoding. For other channels, fixing the weights Wi may not be the best thing to do. For example, for the coherent Rayleigh fading channel with channel state information (CSI), Wi should be set as the fading coefficient [2]. The term bounded-distance decoder mayalso be reserved for decoders cor- recting up to the error-correcting radius, but not beyond. This is particularly the case in Hamming space. In this paper, however, the term bounded-distance decoding is used for any decoder for which the squared error correction radius in Euclidean space equals the code's Hamming distance d. For a soft-decision decoding algorithm A and any ±l-vector X representing a codeword x, let r A(X) be the region in n-dimensional Euclidean space consisting of those {! for which algorithm A gives X (or x, equivalently) as the decoding result, and let rA(X) be the complementary region. Hence, the squared error-correction radius ,6. of A can be formulated as 11 ,6. = min inf ~)Xi - Qi)2 (1) X I1Er~(X) i=1 Since rA(X) = (rA (X) n rA" (X)) u (rA (X) n rA" (X)), (2) where A* is a complete Euclidean distance decoder, and since 11 min inf ~)Xi - Qi)2 = d, (3) x l!Er~(X)nrA'(X) i=1 we define n Ij = min inf 2)Xi - Qi? (4) x l!Er~(X)nrA"(X) i=1 It follows from (1), (2), (3), and (4) that ,6. = min{ d, Ij}. (5) If 1'1 = d, i.e., Ó ;:::: d, then A achieves BD decoding. In [4), a unified method for computing Ó (and thus 1'1) for reliability-based soft-decision algorithms has been proposed. In case of an AWGN channel, (} is the sum of the transmitted sequence X and the noise sequence l/ = (VI, V2, ... ,vn), where the v;'s are independent zero- mean Gaussian random variables. For ML decoding, or equivalently complete Euclidean distance decoding, the decoding error probability PML has an asymp- totic error exponent determined by d. For a sub-optimum decoding algorithm A, the decoding error probability PA has an asymptotic error exponent determined by 1'1. Hence, the asymptotic loss of algorithm A compared to ML decoding is 10 10glO(d/1'1) dB, and thus any BD decoding algorithm A is asymptotically optimal, i.e., log PML/ log PA -> 1 as the signal-to-noise ratio approaches infinity. 3 CHASE DECODING A complete Euclidean distance or channel measurement decoder may be far too complex for practical implementation. The idea behind the Chase decoding approach is to use a binary decoder in a multi-trial fashion, in combination with the reliability vector a = (0'1,0'2, ... , an), to obtain a relatively small set of possible binary error patterns, of which one of minimum analog weight is the final decoding result. The algorithms have been designed to work with a conventional (algebraic) binary decoder, which determines the codeword which differs in the least number of places from the decoder's input sequence, provided that this number is Hot greater than l(d - 1)/2J. The set of error patterns is obtained by the following procedure. A binary test pattern t = (tl, t2, ... , tn) from a test set T of size I is added to the received vector y. The resulting vector v' = y + t is fed into the binary decoder, giving either an error pattern z' or a decoding failure. In case an error pattern has been found, the error pattern Zt = z' + t relative to y is calculated. After this has been done for all test patterns t from T, the Zt with minimum analog weight is detennined and added to y to obtain the estimate for the transmitted codeword. In case all I trials result into decoding failures, the decoder output is the received vector y itself. In [2] Chase has proposed three algorithms, i.c., three test sets T. For Algo- rithm 1 the set T consists of all binary vectors of length n which contain exactly ld/2 J ones. For Algorithm 2 the set T consists of all binary vectors of length n which have the n - ld/2 J most reliable positions equal to zero. For Algorithm 3 the set T consists of all binary vectors of length n which contain ones in the i most unreliable positions and zeros elsewhere, where i = 0,2,4, ... , d - 1 if d is odd and i = 0,1,3,5, ... , d - 1 if d is even. All three algorithms achieve BD decoding, and give essentially the same performance as ML decoding at high SNR in case of binary antipodal signaling and transmission over the AWGN or coherent Rayleigh fading channel [2]. 4 STATIC METHOD Before presenting our decoding methods, we first introduce some notation. For i = 0,1, ... , n, let ti denote the test pattern of length n which contains ones in the i most unreliable positions and zeros elsewhere. Let aj denote the concatenation of j times the vector a, e.g., (01)302 = 01010100. For convenience, we assume without loss of generality throughout the rest of this paper that the ordering of the received symbols is such that (6) for i = 1, ... n - 1. Under this assumption, note that (7) for i = 0,1, ... , n. Note that using this notation, the Chase-S test set reads {to, t2, t4,·.·, td-d if d is odd, and {to, tI, t3,···, td-d if d is even. Obviously, the original Chase-S inversion patterns were inspired by Forney's Generalized Minimum Distance (GMD) decoding algorithm [3], in which unreliable symbols are erased (instead of inverted) in the various trials. Indeed these patterns are very well suited for erasures, but this paper shows that we can do better in case of inversions. For codes of even Hamming distance d, we allowasmall improvement in the binary decoder, like in [5]. A binary decoder for a code of even Hamming distance d can be designed in such a way that any pattern of d/2 - 1 errors is corrected, while d/2 errors are corrected if one of these errors occurs in a pre-determined position, for which we choose the most unreliable. Throughout the rest of this paper we assume the binary decoder is implemented using this feature. Now we are ready to present a static Chase-like decoding method for binary linear block codes of Hamming distance d 2: 7. It is similar to Chase-S in the sense that all test patterns are of the ti format, but it is different from Chase 3 in the sense that the numbers of inversions per trial have the same parity as the Hamming distance d (except for the. all-zero test pattern in case d is odd) The test set reads (8) r Note that the size of the test set is thus 2 + L(d - 1)/6J = d/61 + 1. In the rest of this section we show that the algorithm based on this test set achieves BD decoding in case we set ai = I~J;Ifor all i. We follow the approach from [4]. Let A be the Chase-like algorithm based on the test set from (8), let X be the ±l-representation of any codeword x, and let {}E rA(X) n rA- (X), where A* is a complete Euclidean distance decoder. Hence, upon receipt of {},algorithm A * does deliver the true codeword, while algorithm A does not. This implies that algorithm A does not generate the transmitted codeword x in any of its trials. Thus, since to is in the test set, the error vector z = x + y contains at least Id/21 ones in the first n - b positions, where if d is odd, (9) if d is even. Furthermore, z contains at least Id/21 - (i - 1) /2 ones in the first n - i - b positions, for any odd i such that ti+b is in the test set. The error vector with the minimum number of ones and with these ones in the least reliable positions, while satisfying the restrictions just mentioned, reads z" = on-d-l1(0313)lCd-l)/6JOv+l1vOb, (10) where v = led - 1)/2J - 3l(d - 1)/6J, (11) and b is as defined in (9). The squared Euclidean distance between {}and X satisfies n n i=l i:::..n-d i=n-d i=n-d i=n-d n-d+3 n-d+3 2: d + 1 + I:(ai)2 + 2a n_d - 2 I: ai i=n-d i=n-d+l 2: d + 1 + min(4,82 - 4,8) = d, (12) f3?:_O where the first inequality is trivial, the first equality follows from the facts that ai = Igil and that Xi and gi have the same sign if and only if Zi = 0, the second equality is trivial, the second inequality follows from (10) and (6), the third inequality follows by observing that under the restrietion an-d 2: an-d+1 2: ",n-d+3 ( an-d+2 2: an-d+3 2: O,t h e va Iue 0 f Di=n-d )2 2 ai + an-d - 2 ",n-d+3 . Di=n-d+1 ai 1S minimum in case all four involved ai are equal to the same nonnegative real number equal ,8, and, finally, the third equality follows from the observation that this minimum value is -1 (achieved for,8 = 1/2). Since (12) holds for any X representing a codeword and any {}E rA(X) n I'A-(X), it follows from (4) that Ó 2: d, and thus from (5) that .6. = d. Hence, algorithm A achieves BD decoding. 32 5 DYNAMIC METHOD In this section we present a dynamic Chase-like decoding method for binary linear block codes of Hamming distance d 2: 13. The basic concept of such dynamic decoding is not new, it has been applied before in the context of GMD decoding [6] as well as Chase decoding [7]. The methods from [6] and [7] added a dynamic feature to the original static GMD [3] and Chase-3 [2] algorithms, respectively. Our method adds a dynamic feature to the static method presented in the previous section. We define two sets (13) and (14) Note that the sizes of test sets from (13) and (14) are thus 3 + L(d- 7)/12J = r(d + 6)/121 + 1 and 2 + L(d- 1)/12J = rd/121 + 1, respectively. At the start of the decoding process, we check the inequality l(d-ï)/12J 5 6 vI-I L L i=1 j=O ctn-d+6+12i-j + L.ctn-d+j + L ctn-b j=4 j=O j :::: l(d-I)/12J 5 v2-1 L L i=1 j=O ctn-d+l2i-j + L ctn-b-j, j=O (15) where b is as defined in (9), VI = l(d-7)/2J -6l(d-7)/12J, (16) and V2 = l(d - 1)/2J - 6l(d - 1)/12J. (17) If (15) is satisfied, then we use test set 71, else test set 72. Further, the usual Chase procedure is followed. In the rest of this section we show that this dynamic algorithm achieves BD decoding. The proof follows the same steps as in the static case. The equivalents of z' are zi = on-d-l1(0313)(0616)l(d-7)/12JOvl+1PlOb (18) in case 71 is chosen as the test set, and (19) in case 72 is chosen as the test set, where b, VI, and V2 are as defined in (9), (16), and (17), respectively. The analysis from (12) remains valid. The second inequality in this analysis follows by applying (15) in combination with (18) in case T" is used, and by applying the counterpart of (15) in combination with (19) in case 72 is used. Hence, again 0 2: d, and thus also the dynamic method achieves BD decoding. 6 CONCLUSION In this paper we have presented static and dynamic Chase-like decoders. The numbers of trials are id/61 + 1 and i(d + 6)/121 + 1, respectively, and thus they are about three times less complex than the static Chase-3 algorithm and its dynamic version from [7]. Still, the proposed methods achieve bounded-distance decoding, and thus they are asymptotically optimalon the AWGN channel, for example. A very interesting open research problem is to investigate whether or not BD decoding can be achieved by a Chase-like decoder using less than d/12 trials. For example, we may consider introducing more than two possible test sets. The choice of which test set to use upon receipt of a certain reliability vector a could then be made based upon a more comprehensive analysis of a than merely a single check such as in (15). REFERENCES [1] G. Arico and J.H. Weber, "Limited-trial Chase decoding", submitted to IEEE Trans. on Inform. Theory, Jan. 2002, revised March 2003. [2] D. Chase, "A class of algorithms for decoding block codes with channel mea- surement information", IEEE Trans. Inform. Theory, vol. 18, pp. 170-182, Jan. 1972. [3] G.D. Forney, Jr., "Generalized minimum distance decoding", IEEE Trans. Inform. Theory, vol. 12, pp. 125-131, April 1966. [4] M.P.C. Fossorier and S. Lin, "A unified method for evaluating the error- correction radius of reliability-based soft-decision algorithms for linear block codes", IEEE Trans. Inform. Theory, vol. 44, pp. 691-700, March 1998. [5] M.P.C. Fossorier and S. Lin, "Chase..type and GMD coset decodings," IEEE Trans. Commun., vol. 48, pp. 345-350, March 2000. [6] SJ. Kovalev, "Two classes of minimum generalized distance decoding algo- rithms," Problems] Peredachi Inform., vol. 22, no. 3, pp. 35-42, 1986. [7] J. Nilsson, A Geometric Analysis of Algebraic Soft Decoding, Lic. Thesis, Linköping University, Sweden, Feb. 1991. [8] RM. Pyndiah, "Near-optimum decoding of product codes: block turbo codes", IEEE Trans. Commun., Volume 46, pp. 1003-1010, Aug. 1998. 34 Analyzing DNA microarrays to unravel gene function Marcel Reinders Information and Communication Theory Group, Delft University ofTechnology Email: m.j.t.reinders@its.tudelft.nl Fifty years after Watson and Crick's discovery of the fundamental structure of DNA, numerous genome projects reveal the exact DNA sequence, as well as the genes that they encode, of a growing number of organisms including humans. This growing body of data, together with the development of DNA microarrays, has made it possible to record the activity of virtually all genes of the organism under study in a rapid and parallel way. The resulting snapshots of the transcriptional activity within cells can be used to study fundamental biological phenomena by examining the gene expressions across many experiments that survey a wide range of cellular responses, phenotypes and conditions. This promises a wealth of data that can be used to develop a more complete understanding of gene function, regulation and interaction. In this talk, I will discuss the computational analysis tools used to interpret the microarray data. Selected reading Microarrays, normalization, transformation I. Duggan et al. Expression profiling using cDNA microarrays. Nature Genetics, 21, 10-14, 1999. 2. Cheung VG, et al. Making and reading microarrays. Nature Genetics, 21, 15-19, 1999. 3. Loekhart DJ, et al. Genomics, gene expression and DNA arrays. Nature, 405, 827-836, 2000. 4. Chen Y, et al. Ratio-based decisions and the quantative analysis of cDNA microarray images. Journalof Biomedical Optics, 2,364-374, 1997. 5. Quaekenbush J. Microarray data normalization and transformation. Nature Genetics, 32 Suppl.2, 496-50 I, 2002. Gene selection, clustering 6. Eisen MB, et al. Cluster analysis and display of genome-wide expression patterns. PNAS, 95,14863-14868,1998. 7. Alizadeh AA, et al. Distinct types of diffuse large B-cell lymphoma identified by gene expression profiling. Nature, 403, 503-511,2000. 8. Hastie T, et al. Gene shaving as a method for identifying distinct sets of genes with similar expression patterns. Genome Biology, 1(2), research0003.1-0003.21, 2000. 9. Quaekenbush 1. Computational analysis of microarray data. Nature Review 2(8),418- 427,2001, 10. Bittner M, et al. Molecular classification of cutaneous malignant melanoma by gene expression profiling. Nature, 406, 536-540, 2000. 11. Hughes TR, et al. Functional discovery via a compendium of expression profiles. Cell, 102, 109-126, 2000. 12. Brazma A, and Vilo J. Gene expression data analysis. FEBS Letters, 480,17-24,2000. Molecular classification and gene selection 13. Dudoit, S, et al. Statistical methods for identifying differentially expressed genes In replicated cDNA microarray experiments. Statistica Sinica, 12, 111-140,2002. 14. Tusher VG, et al. Significanee analysis of microarrays applied to ionising radiation response. PNAS 98(9), 5116-5121, 2001. 15. Perou CM, et al. Molecular Portraits of human breast tumours. Nature 406:747-752, 2000. 16. Ben-Dor A, et al. Tissue classification with gene expression profiles. Journalof Computational Biology, 7, 559-584,2000. 17. Golub TR, et al. Molecular classification of cancer: class discovery and class prediction by gene expression monitoring. Science 286, 531-537, 1999 18. Van't Veer L, et al. Gene expression profiling predicts clinical outcome ofbreast cancer. Nature, 415, 530-536, 2002. 19. Tibshirani, R, et al. Diagnosis of multiple cancer types by shrunken centroids of gene expression. PNAS 99(10),6567-6572,2002. 20. Hedenfalk I, et al. Gene expression profiles of heredity breast cancer. New England Journalof Medicine, 344, 539-48, 200 I. 21. Khan J, et al. Classification and diagnostic prediction of cancers using gene expression profiling and artificial neural networks. Nature Medicine, 9, 505-512,2002. 22. West M, et al. Predicting the clinical status of human breast cancer by using gene expression profiles. PNAS, 98, 11462-11467,2001. 23. Nguyen DV, and Rocke DM. Tumor classification by partial least squares using microarray gene expression data. Biofinformatics, 18,39-50,2001. 24. Dudoit S, et al. Comparison of discrimination methods for the classification of tumors using gene expression data. Statistical Association, 97, 77-87, 2002. 25. Hedge P, et al. Identification of Tumor Markers in Models of Human Colorectal Cancer Using a 19,200-Element Complementary DNA Microarray. Cancer Research 61, 7792- 7797,2001. Genetic network modeling and systems Biology 26. Creighton C, and Hanash S. Mining gene expression databases for association rules. Bioinformatics 19, 79-86,2003. 27. De Jong HJ. Modeling and simulation of genetic regulatory systems: a literature review. Computational Biology, 9(1), 67-103, 2002. 28. Friedman N, et al. Using Bayesian networks to analyse expression data, Journalof Computational Biology, 7, 601-620, 2000. 29. Pe'er D, et al. Inferring subnetworks from perturbed expression profiles. Bioinformatics, 17, S215-S224, 2001. 30. Van Someren EP, et al. Genetic network mudeling. Pharmacogenornics, 3(4):507-525, 2002. 31. Wahde M, and Hertz J. Modeling genetic regulatory dynamics in neural development. Journal ofComputational Biology 8, 429-442 (2000). 32. Dhaeseleer P, et al. Genetic network inference: from eo-expression clustering to reverse engineering. Bioinformatics, 16 (8), 707-726, 2000. 33. Yeung, M.K.S., Tegnér, J., Collins, J. J. Reverse engineering gene networks using singular value decomposition and robust regression. PNAS 99, 6163-6168, (2002) 34. Ideker, T, et al. Integrated genomic and proteomic analyses of a systematically perturbed metabolic network. Science 292, 929-934, (200 I). 35. Kitano, H. Computational systems biology. Nature 420, 206-210, (2002) SIDE-CHANNEL ENTROPY FOR MODULAR EXPONENTIATION ALGORITHMS Lejla Batina'v' and Cees Jansen? 1 K.U. Leuven ESATjSCD-COSIC Kasteelpark Arenberg 10, B-3001 Leuven-Heverlee, Belgium Lejla.Batina®esat.kuleuven.ac.be 2SafeNet BV Boxtelseweg 26a, Vught, The Netherlands cjansen®safenet-inc.com In our previous work we used the combinatorial approach to develop a simple model for Hamming weight leakage. In this paper we go one step further by considering exponents to be random but co-prime to some even composite number. This is based on the assumption that a private exponent is a unit in Z;(Nl' chosen uniformly at random. The probability of such an exponent depends on the choice of the modulus N, i.e. what type of primes are pand q. We consider safe primes, strong primes and the situation where p - 1 and q - 1 are products of small prime factors. The result is given by an upper bound on the information leakage in this refined model. It is shown that the worst case information leakage amounts to only 3.6 bits for 1024 bit moduli. 1 INTRODUCTION Today many analysis methods exist which are used to attack implementations in hard- ware and software of cryptographic algorithms. Rather than attacking the algorithms themselves, specific properties of the implementation such as timing behaviour [3, 8] and power consumption [9], during execution of the algorithm are exploited to gain informa- tion about the secret key. These, so called side channel attacks can be very effective in breaking the cryptosystem, necessitating careful implementation and consideration of countermeasures. In a first order approximation in a previous paper [1] it was assumed that the secret exponents are chosen at random from the set of odd numbers. For this random exponent model (REM) the exact probability distribution was 'derived, and the entropy H(I<) of the number of operations I< determined. In this paper the validity of this model is shown to hold when the exponent is relatively prime to the Euler (Totient)
0, where Pi are prime factors of N. Then, by definition
bk+1 4. (JCI + C3 ;::: 0 and (JC2 + (;4 ;::: 0
The following theorem gives a bound on the determinant of a geometrically pro-
gressive matrix, from which some rows have been removed.
Theorem 1 ([1]) Let M be an (a+1)bx (a+l)b geometrically progressive matrix
with parameters (C,D,CO,Cl,C2,C3,C4,(J), and E a real number.
Define SB:= {(k,l) E [0,0,] x [l,b]IM(k,l, k,l) < E}, and set w:= ISBI. If Lis
the lattice defined by the rows (k, I) E SB of M, then
det(L) < «a + 1)b)w/2(1 + C)W
2
IT
M(k, I, k, I).
(k,l)ESB
1 if we suppose that mini l!uTI! ~ 1.
2 OVERVIEW OF RSA-LIKE CRYPTOSYSTEMS
2.1 LUC scheme ([13])
Let's consider x2 - Px + Q E Z[x], and let a and ai he its
a polynomial
roots in the quadratic field Ql( vi D), where D = p2 - 4Q. The Lucas se-
quence (Vn(P, Q))nEN with parameters Pand Q is the integer linear sequence
defined by Vn = an + an, for all n E N. This sequence satisfies the recursion
Vn+2 = PVn+1 - QVn, for all nE N, and each term can be computed in O(log(n))
using a square-and-multiply algorithm. Furthermore, it can be shown that for all
prime l, the sequence (Vn(P, Q) mod l)nEN is periodic with a period that divides
l - (D jl), and that for all (k, n) E ~, Vkn(P, Q) = Vk(Vn(P, Q), Qn).
KEY GENERATION: Alice chooses two large primes pand q and computes the
product N = pq and lu,v(N) = lcm(p + (-1)u, q + (-1)V), for (u, v) E [1,2]2.
She chooses an integer e which is coprime to lu,v(N) for all (u,v) E [1,2]2 and
computes integers du,v with (u,v) E [1,2]2 such that edu,v == 1 mod lu,v(N).
Alice's secret key is (d1,l,d1,2,d2,I,d2,2,P,q) and her public key is (N,e).
ENCRYPTION AND DECRYPTION: Let m E ZjNZ be a plaintext. Using the
square-and-multiply formulae, Bob computes the ciphertext c = Ve (m, 1). By
computing t = c2-4 E ZjNZ and setting (-I? = (tjp) and (_I)V = (tjq), Alice
can recover the plaintext since Vdu,v (c, 1) = Vedu,v (m, 1) = VI (m, 1) = m mod N.
2.2 Elliptic Curve-based Cryptosystems
We consider elliptic curves 2 over Zj NZ, where N = pq is a product of two
primes p > q > 3. Let a, s e Z such that gcd(4a3 + 27b2, N)
= 1 and let Ep(a, b),
Eq(a, b) denote the set of points (x, y) satisfying y2 = x + ax + b in (ZjpZ)2
3
and (ZjqZ)2 together with infinity points Op and Oq. Ep(a, b) and Eq(a, b) are
abelian groups under the tangent-and-chord operation, and #Ep(a, b) = p+ 1- tp
and #Eq(a, b) = q + 1 - tq, where Itpl :::; 2VfJ and Itql :::; 2...ji.
Defining EN (a, b) as the direct sum Ep (a, b) EBEq (a, b), we get an abelian group of
order (p+l-tp)(q+l-tq). Every point (x, y) E (ZjNZ)2 satisfying y2 = x3+ax+b
gives by reduction modulo pand modulo q a point in EN(a, b) and when the
tangent-and-chord operation makes sense for such points (which is almost always
the case), it coincides with the group law in EN(a, b).
2 A detailed description of the theory of elliptic curves can be found in [12].
KMOV scheme ([8])
KEY GENERATION: Alice chooses two large primes pand q such that p == q ==
2 mod 3 and computes the product N = pq and Y(N) = lcm(p + 1, q + 1).
She chooses an integer e which is coprime to Y(N) and computes d such that
ed == 1 mod Y(N). Alice's secret key is (d, p, q) and her public key is (N, e).
ENCRYPTION AND DECRYPTION: Let M = (mx, my) E (ZINZ)2 be a plain-
text. b = m; - m~ E ZINZ and the cyphertext C = eM =
Bob computes
(cx, cy) EN(O, b), using the tangent-and-chord
E operation. By computing b =
c; - c~ E ZINZ, Alice can recover the plaintext M = dC E EN(O, b), since
#Ep(O, b) = p + 1, #Eq(O, b) = q + 1 and #EN(O, b) = (p + l)(q + 1) = Y(N).
Demytko's scheme ([4])
KEY GENERATION: q and computes N = pq ;
Alice chooses two primes pand
she picks two integers a and b such that gcd( 4a + 27b2, N) = 1 and computes
3
tp = P + 1 - #Ep(a, b), tq = q + 1 - #Eq(a, b), and Yu,v(N) = lcm(p + 1 -
(-1) tp, q + 1 - (-l)Vtq), for (u, v) E [1,2]2 Alice's keys are as in LUC.
U
ENCRYPTION AND DECRYPTION: Let M = (mx, my).E EN(a, b) be a plaintext.
Bob com.putes the ciphertext C = eM = (cx, cy) E EN(a, b), using the tangent-
osui-chord operation. By computing t = c~+acx+b E ZINZ and setting (-1)u =
(tip) and (_l)V = (tlq), Alice can recover the plaintext du,vC = M E EN(a, b).
2.3 Cryptosystem based 011 orders of quadratic imaginary fields
The ring of integers OJ( of a quadratic field K is the maximalorder of K,
aud satisfies OK = Z + [(dJ( + Jd;)/2]Z, where dK is the discriminant of K.
For any order Od of discriminant d in a quadratic field K, we consider the set of
proper fractional Od-ideals, and the ideal class group C( Od) is the quotient by
the principal ideals. The class number is h(d) -= IC(Od)l.
HMT3 scheme ([7])
We consider the third scheme of [7J, which uses totally non-maximal orders.
KEY GENERATION: Aliee chooses two large primes pand q and set the funda-
mental discriminant ,6.1 = -8 so that h(,6.1) = l. ,6.pq = ,6.1P2q2 is public. Th.
7.24 of [3] gives the value h(,6.pq) = (p ± l)(q ± 1). The public key e is such that
gcd (h( ,6.pq), e) = 1 and the secret key d satisfies ed == 1 mod h( ,6.pq).
ENCRYPTION AND DECRYPTION: Let rn, an ideal of O':;pq be a plaintext. The
computations are analoguous to RSA in the multiplicative group C(O':;pJ.
3 A NEW EXTENSION OF BONEH-DURFEE-DE WEGER ATTACK
Let N = pq, and let's write ed + kY(N) = 1, for k E Z and with
lcm(p ± 1, q ± 1) for LUC and HMT3 cryptosystems,
Y(N) = !cm(p + 1, q + 1) for KMOV cryptosystem,
{
lcm (p + 1 - (~) tp, q + 1 - (~) tq) for Demytko's cryptosystem.
For each case, we can write (up to some small multiplicative constants depending
on gcd's related to Y(N)) ed + k(A + s) = 1, with (A, s) = (N ± 1, ±p ± q) for
LUC and HMT3, (N + l,p+q) for KMOV and (N + 1, SDem) for Demytko, where
SDem = P (1 - U) tq) + q (1 - (~) tp) - (~) tp - Ü) tq + Ü) (~) tptq.
We need now to evaluate some bounds on k and s, in order to solve the small
inverse problem. Let f(x, y) = x(A + y) - 1 E Z[x, y], this polynomial has (k, s)
as a solution modulo e.: This solution has to be small enough so that we can
apply the following theorem.
Theorem 2 (cf. [6]) Let P(x, y) be a polynomial which is a sum of at most w
monomials. Suppose P(xo, Yo) == 0 (mod em) for some positive integer m, where
Ixol < X and IYol < Y. If IIP(xX, YY)II < em /..;w, then P(xo, Yo) = 0 E Z.
Let's write d = NJ and assume for simplicity that e ~ N. As de Weger
pointed out in [14], it is relevant to consider the distance between the two primes
in the modulus: let ~ := lp -ql = N(3. We assume f3 E ]~, ~[. Using the following
bound: 0 < p +q - 2VFi < ~2 /4VFi we deduce that, up to some multiplicative
constant we ignore, Ikl :::; é and [s] :::; e2(3-1/2 (resp. e(3, e3/4), when s = ±(p + q)
(resp. ±(p - q), SDem)' We call X the bound on [s] and Y the bound on Ikl.
The main idea developped by Boneh and Durfee is to find two polynomials gl
and 92 which have (k, s) as a solution modulo em for a m to be found, thanks to
polynomial i, and which have small enough norms so that to apply Th. 2. So our
two polynomials will have (k, s) as a solution in Z, and computing Resx(91, g2)
will make it possible to recover s, with classical techniques of factorization in
Z[x], if gl and 92 are not algebraically dependent, which is heuristically often the
case. Recovering s gives the factorization of the modulus.
To find these two polynomials of low norm, we construct a lattice L from
two families of polynomials as defined in [1]: gi,k(XX, yY) (called x-shifts) and
hj,k(xX, yY) (called y-shifts), with k E [0, m~, i E [0, m - k], j E [0, t~, where
m and t are parameters of the dimension of L. As in [1] their coefficients form a
triangular matrix corresponding to L. Using LLL on this lattice allows low norm
integer linear combinations of these polynomials to be found.
We know the bound on the norm of the two first vectors by Lemma 1, so we
can find conditions on b so that the norm of the first two basis vectors is small
enough to have (k, s) as a solution over the integers.
We have det(L) = detxdety with
m(m+l)(m+2) m(m+l)(m+2) m(m+l)(m+2)
d et, = e 3 X 3 Y 6
{ det., 'm(m+l) 'm(",+I) .(m+l)(m+'+I) (2)
= e 2 X 2 Y 2 •
where det; is the determinant of the matrix spanned only by the x-shifts, and
det., is the product of the diagonal terms of the part of the matrix involving
only the y-shifts. Computing those determinants will give a bound on b, but the
matrix corresponding to det., is actually a geometrically progressive matrix, and
we can improve this bound, by deleting the rows whose diagonal term is greater
than em and applying Th. 1. Let's l\1y be the matrix made up with the rows
corresponding to the y-shifts of the matrix and whose columns correspond to the
columns of this matrix such that x'yJ with j > i:
Lemma 1 For all positive integers m, and ti the matrix My is geometrically pro-
gressive with parameters
(m2m, e, m, 2(3 - 3/2,.5 + 2(3 - 1/2, -1, 1,2) when X = é and Y = e2(3-1/2
(m2m,e,m,(3-1,o+(3,-I,I,2) when X = é and Y = e(3
{
(m2m, e, m, -1/4, b + 3/4, -1, 1,2) when X = eÓ and Y = e3/4
Proof: As h1,k(XX, yY) = em-kylylr(xX, yY) = I::=o I:~=ocu,vxuyv+l ([1]),
with cu,v = (k)(U)(_I)k-u
u V em-kAu-vX"uyV+l
J,
we.. can compute NI Y l·i, J. , k , l) =
Ci,i+j-l = (~)(i+;_J(-I)k-iem-kAl-jXiyi+j. Cond. 3 of Def. 1 is satisfied, and
because A ~ e, we have: IMy(i,j, k, l)1 ::; m2mem-k+l-j Xiyi+j. And by replacing
for each case X and Y by their value, we obtain Cond. 1 and 2. Finally, the two
inequalities of Cond. 4 are effective, so we obtain the stated result. •
Instead of using Eq. (2) directly, we can transform our matrix into the
following form and use the fact that the matrix My is geometrically progressive.
1 x xy ... xmym y y2 ... yt I ... I xmym+l . .. xmym+t
x-shifts D 0
selected y-shifts 0 M~
50
In this matrix, D is diagonal (obtained with a Gauss elimination) and M; is the
matrix obtained by removing the rows of My when the diagonal term is greater
than em. This matrix corresponds to a lattice L1 of dimension w = m( m + 1) /2 +
w', where w' is the dimension of the lattice L~ of matrix M;. We are able to
bound its determinant because My is geometrically progressive, and therefore we
can apply Th. 1. We only keep the rows with a diagonal term lower than em, i.e.
M(k l k l) < em which leads to l < (3/2-ó-2{3) k (resp l < (l-ó-{3) k l < (l-4ó) k)
, , " 2{3-1/2' {3' 3
when Y = e2{3-1/2 (resp. Y = e{3, Y = e3/4). To compute the dimension of
Ly' we nee III eac case to compute w = uk=O lCkj were
' d . h I ~m h c = (3/2-ó-2{3)
2{3-1/2'
(1-~-{3) or (l-;4Ó) and t = cm for each case. Using Th. 1, the determinant of
the lattice L~ can be bounded by det(L~) S À n::o
nlL~~ M(k, l, k, l), where
À of 0 which can be ignored.
is only a function Using this bound, det(L1) =
det(D) det(L~) S À'ec'm3+o(m3) where c' depends on the situation. To apply Th.
2 we need it to be less than ern(w"-l), where Wil = ~(m + l)(m + 2) + w', which
leads to -20 2 + 40 - 3 + 4,8 < 0 (resp. -02 + 20 +,8 - 1 < 0, -202 + 40 - ~ < 0)
when Y = e2{3-1/2 (resp. Y = e{3, Y = e3/4).
Finally the following table gives our bounds on 0 = 10gN (d) as a function
of ,8 (and the limit values when ,8 = 0.5 or 0.25), up to which we recover s in
(heuristical) polynomial time and so break the cryptosystems.
Our results
Pinch's results (fJ = 0.5) fJ fJ = 0.5 fJ = 0.25
HMT3 - 1 - J8fJ - 2/2 0.292 1
1 - J8fJ - 2/2 1
LUC 0.25 0.292
1- v-g 0.5
KMOV 0.25 1 - J8fJ - 2/2 0.292 1
Demytko 0.125 0.133
5 CONCLUSION AND OPEN PROBLEMS
We have improved Pinch's results with some techniques of resolution of mod-
ular polynomials. Such attacks work for fast variants of RSA (cf. [5J and [2]) but
determining if such performant attacks work for RSA moduli of the form pr qS
and on cryptosystems based on non-maximal orders in imaginary quadratic fields
of discriminant _pq2 is still an open problem. What should be borne in mind
is that it is extremely dangerous to use a small secret exponent, in particular
because the correct bound is thought to be the square root of the modulus ([1]).
51
Ackowledgements
We express our gratitude to Jean-François Misarsky and Éric Reyssat who read
a draft of this paper and made many helpful comments. Many thanks to Pierre
and Laura for correcting some misprints and our broken english.
REFERENCES
[1] D. Boneh, G. Durfee: Cryptanalysis of RSA with Private Key d Less Than
NO 292. Adv. in Crypto. - Proc. of Eurocrypt '99, LNCS 1952 (1999) 1-11
[2] M. Ciet, F. Koeune, F. Laguillaumie, J.J. Quisquater: Short Private Exponent
Attacks on Fast Variants of RSA. Tech. Rep., UCL Crypto Group (2002)
[3] D.A. Cox: Primes of the form x2 +ny2, John Wiley & Sons, New-York (1989)
[4] N. Demytko: A new elliptic curve based analogue of RSA. Adv. in Crypto. -
Proc. of Eurocrypt'93, LNCS 765 (1994) 40-49
[5] J. Hinek, M.K. Low, E. Teske: On some Attacks on Multi-prime RSA,
SAC 2002, LNCS 2595 (2002) 385-404
[6] N. Howgrave-Graham: Finding Small Roots of Univariate Modular Equations
Revisited. Cryptography and coding, LNCS 1355 (1997) 131-142
[7] D. Hühnlein, A Meyer, T. Takagi: Rabin and RSA Analogues based on Non-
Maximal Imaginary Quadratic Orders. Proc. of ICICS'98 (1998) 221-240
[8] K. Koyama, U.M. Maurer, T. Okamoto, S.A. Vanstone: New Public-key
Schemes based on Elliptic Curves over the Ring Zn. Adv. in Crypto. - Proc.
of Crypto'91, LNCS 576 (1992) 252-266
[~] A.K. Lenstra, H.W. Lenstra Jr., L. Lovász: Factoring Polynomials with Ra-
tional Coefficients. Math. Ann. 261 (1982) 515-534
[10] R.G.E. Pinch: Extending the Wiener Attack to RSA-type Cryptosystems.
Electronic Letters, 31:20 (1995) 1736-1738
[11] R.L. Rivest, A. Shamir, L. Adlernan: A Method for Obtaining Digital Sig-
natures and Public-Key Cryptosystems, Technical Report, MIT jLCSjTM-82,
MIT Laboratory for Computer Science, Cambridge, Massachusetts (1977)
[12] J.H. Silverman: The arithmetic of elliptic curves, Graduate text in mathe-
rnatics 106, Springer, Berlin (1986)
[13] P. Smith: LUC Public Key Encryption: a Secure Alternative to RSA, Dr
Dobb's Journal, 18:1 (1993) 44-49
[14] B. de Weger: Cryptanalysis of RSA with Small Prime Difference. Appl.
Algebra Eng. Commun. Comput. 13:1 (2002) 17-28
[15] M.J. Wiener: Cryptanalysis of Short RSA Secret Exponents. IEEE Trans-
action on Information Theory 36:3 (1990) 553-558
52
KEY-DEPENDENT APPROXIMATIONS IN CRYPTANALYSIS.
AN APPLICATION OF MULTIPLE Z4 AND NON-LINEAR APPROXIMATIONS.
FX Standaert, G Rouvroy, G Piret, JJ Quisquater, JD Legat
Universite Catholique de Louvain, DCL Crypto Group,
Place du Levant, 3, 1348 Louvain-Ia-Neuve,
sta ndaert, rouvroy, pi ret,q uisq uater, legat@dice.uel.ac.be
Linear cryptanalysis is a powerful cryptanalytic technique that makes use of a
linear approximatioti over some rounds of a cipher, combined with one (01' two)
roundis] of key guess. This key quess is usually performed by a partial decryp-
tion over every possible key. In this paper, we investigate a porticuier class of
non-linear boolean functions that allows to mount key-dependent approximations
of s-boxes. Replacing the classical key guess by these key-dependent approxima-
tions allows to quickly distinguish a set of keys including the correct one. By
combining different relations, we can make up a system of equations whose solu-
tion is the correct key. The resulting attack allows larger flexibility and improves
the success rate in some contexts. We apply 'it to the block cipher Q. In parallel,
we propose a chosen-plaintext attack against Q that reduces the required number
of plaintext-ciphertext pairs from 297 to 287.
1. INTRODUCTION
In its basic version, linear cryptanalysis is a known-plaintext attack that uses a linear
relation between input-bits, output-bits and key-bits of an encryption algorithm that
holds with a certain probability. If enough plaintext-ciphertext pairs are provided,
this approximation can be used to assign probabilities to the possible keys and to
locate the most probable one.
Non-linear approximations are commonly used in cryptanalysis in order to increase
the probabilities of linear approximations. The key-dependency of non-linear approx-
imations is mentioned in several papers and allows more flexibility in the attacks. In
this paper, we underline how a particular class of non-linear approximations can be
used to mount interesting key-dependent relations. Then, we combine these relations
to make up a system of equations whose solution is the secret key. It allows a great
flexibility in the number of key-bits we want to recover and improves the success
rate in some contexts. We apply the method to the block cipher Q, where potential
improvements exist in multiple approximations. 'vVe also improve the linear crypt-
analysis of Q by moving to the chosen-plaintext context.
This paper is organized as follows. Section 2 lists some previous works in the area of
cryptanalysis that are closely related to this paper. Section 3 explains the basic prin-
ciple of our attack. Section 4 describes the block cipher Q as well as an iterative linear
characteristic of the block cipher. We stress that moving to the chosen-plaintext con-
text can significantly improve the linear attack. Section 5 compares our key-dependent
attack with the classical attack against Q. Finally, section 6 poses some open problems
and underlines potential improvements. Conclusions are in section 7.
53
2. RELATED WORKS
Since the first description of linear cryptanalysis by Matsui [9], plenty of papers
tried to take advantage of the method in different attempts to break public ciphers
and some of these papers include theoretical improvements. We try here to list the
improvements that are directly connected to our work.
In 94, Nyberg [10] introduced the concept of linear hull and explains why the practical
success rate of the attack is sometimes better than theoretically predicted by Matsui.
In the same time, Kaliski and Robshaw [11] investigate the possibility to use multiple
linear approximations in order to improve this success rate. Although practical im-
provements in the cryptanalysis of DES are limited, their work underlines situations
where multiple approximations can be efficiently combined.
In 96, Knudsen and Robshaw [12] tried take advantage of non-linear approximations
to improve the probabilities of the characteristics used to approximate block ciphers.
They underlined the key-dependency of non-linear approximations and concluded that
the problem of connecting them together is complex. Practically, their improvements
are limited to the outer rounds of block ciphers. Shimoyama and Kaneko use similar
ideas to improve the cryptanalysis of DES in 9S [13].
In 2000, Knudsen and Mathiassen [14] illustrate that moving from the known plaintext
to the chosen plaintext context can improve matters in linear cryptanalysis. Finally,
we refer to Lite recent work of Parker and Raadum! [7, S], who generalize linear crypt-
analysis to larger fields than Z2'
This paper tries to take advantage of Z4 approxirnations when we directly recom-
bine them into the binary case. This allows to get several approximations with very
interesting biases. Then, we investiga.te the possibility to mount key-dependent re-
la.tionships and underline that these can help to quickly distinguish a small set of
keys including the correct one. By combining different approxirnations, we can find
a system of equations whose solution IS the correct key. Potential advantages could
then be found in the large number of equations making up the system.
In terms of connections, these results are directly connected to Z1 cryptanalysis but
the recombination into the binary case can be viewed as a partjeular case of non-
linear approximations. However, our objective is to underline that the classical way
to perform the key guess, using a real s-box in the last round, is not necessarily the
best way to do it. Key-dependency in non-linear approximations offers interesting
alternatives. The combination of several equations is also closely related to multiple
approximations. Finally, we take advantage of the chosen-plaintext context in order
to improve the crypt.analysis of the block cipher Q.
3. BASIC PRINCIPLE
We assume that the reader is familiar with linear cryptanalysis as well as with its
improvements presented in section 2.
3.1 Z4 Approximations of s-boxes: Let's take a simple 4-bitx4-bit substitution
lTechnical reports of the NESSIE project.
box. For example:
SB = {a, 15, 11,8,12,9,6,3,13, 1,2,4, 10,7,5, 14} ( 1)
In a linear attack, we try to approximate this s-box with a linear boolean function.
For every output bit, there exist 24 different linear functions and if we combine out-
put bits together, we have 24 x 24 possible linear approximations of the s-box. The
problem of finding good linear approximations is easily done by exhaustive search.
Practically, the best linear approximations of SB holds with a bias E = 4/162.
Obviously, other approximations are possible. For example, non-linear approxima-
tions offer more possibilities by combining XOR (or addition modulo 2) operations
with AND (or multiplication modulo 2) operations. The classical problem in non-
linear cryptanalysis is to combine these non-linear relations with key addition layers.
In linear cryptanalysis, key additions only influence the sign of the bias. When using
non-linear approximations, also the value of the bias is key-dependant.
In [7, 8], a generalization of the linear cryptanalysis in Z4 is proposed. We observed
that a simple recombination of this generalization into the binary case allows to ob-
serve very interesting biases. In this paper, we propose to approximate n-input s-boxes
with functions f : (Z4t -> Z2 whose coefficients are in Z4 . We recombine symbols
(or function outputs) of Z4 into Z2 with the simple rule:
1. Symbols 0,1 in Z4 are 0 in Z2.
2. Symbols 2,3 in Z4 are 1 in Z2.
The obvious consequence of this generalization is a larger number of possible approx-
imations, moving from 2 in the binary case to 4" in Z4' However, this is nothing
71
else than a kind of non-linear cryptanalysis. Indeed, when we recombine into Z2,
coefficients 1 and 3 will give rise to quadratic terms and coefficients 2 and 3 to linear
terms. For example:
(3)
YI = Xo EEl XI EEl XOX2 EEl XOX3 EEl X2X3 (4)
when we recombine" it into Z2 and it holds with a bias E = 6/16.
3.2 Key Dependent Approximations: Now the question remains: "What can
we do with these non-linear relations?". As the problem of combining non-linear
approximations together has not changed, we propose here to take advantage of the
21n this paper, we define the bias of a lineal' or Z4 approximation that holds with probability p
as E = P - 1/2. This definition allows to determine the probability P of an approximation involving
several active s-boxes approximated with biases Ei (pilling-up lemma):
1
P = - + 2,,-1 IT
"
Ei (2)
2 i=l
3We mean that both functions have the same truth table.
43xO and 2Xl give rise to lineal' terms Xo and Xl' Then we have 3 quadratic terms XOX2, XOX3
and X2X3 (because X2 and X3 have coefficient 1 and Xo has coefficient 3).
6/l6x 1
21l6x 1
-142:=----_ O/16x2
Figure 1: Linear Cryptanalysis and Key Dependant Attack.
key-dependant behavior of these relations. 'vVecan easily investigate the influence of
this key addition on a non-linear approximation. for example, if the 4-bit input of the
s-box is XORed with 4 key-bits, we have:
(5)
The next table gives the probability that 5 holds depending on the key added:
K Probability K Probability K Probability K Probability
0 14/16 4 6/16 8 8/16 12 8/16
1 8/16 5 8/16 a 6/16 13 14/16
2 2/16 6 10/16 10 8/16 14 8/16
3 8/16 7 8/16 11 10/16 15 2/16
We observe that the largest bias (é = 6/16) can happen for 4 different keys (0,2,13,15).
Remark that a coefficient 2 only introduce linear terms in the boolean function and
therefore, the associated key bits do not affect the magnitude of the bias. For example,
the bias magnitude of (4) is independent of bit kj which cause 1< = 0 and 1< = 2 to
have the same bias magnitude.
Definition: Let equation Y be considered" independent" of equation X if the highest
bias achieved by X suggest a set of k (in our example k = 4) keys, and the highest
bias achieved by Y suggest another set of keys, so that X and Y do not suggest the
same keys.
Definition: Let a complete set of equations be a set of equations where everyone
of the 2n possible keys are suggested by only one equation.
A simple exhaustive search allowed us to find several complete sets of equations. Fur
a complete set of equations of SB, the biases are always distributed in the following
way:
é(good.case) = ±6/16, E(bad.cased = ±0/16
E(bad.case2) = ±0/16, ctbad.case-} = ±2/16 (6)
Distinguishing the good case obviously involves determining that the key is in a 4-
element set.
3.3 An Attack using Key Dependent Approximations: In a classical lin-
ear cryptanalysis against a r-round block cipher, the attacker uses a (r - I)-round
56
approximation. Then the ciphertext is partially decrypted through the final round
under every possible key in order to get the active bits of the linear approximations
at round r - 1. The linear approximation is checked for every possible key and the
correct key will cause the relation to hold more significantly. However, some wrong
keys will also cause the approximation to hold, but with a lower bias, as shown in
Figure 1. In our practical example with SB, the problem is to distinguish a curve
(representing the good key) that holds with a bias e = ±8/16 from 6 curves with
bias e = ±4/16 and 9 with bias e = 0/16. The resulting success rate depends on the
probability that the linear approximation holds, the number of plaintext-ciphertext
pairs and the correlation between the different curves.
Computation of the Success Rate (9): Let N be the number of given ran-
dom plaintext-ciphertext pairs and p be the probability that the linear approximation
holds (assume lp - ~I is sufficiently small). Let q(i) be the probability that a wrong
key candidate K~;) produces the same partial decryption in the final round than the
correct key Kg. Then, if q(i)'s are independent, the success rate of the attack is:
(7)
In our alternative approach, the final round is replaced by a key-dependent Z4 approx-
imation. Then we decrypt the ciphertext under the 4 equations of a complete set and
one of these equations will cause the linear approximation to hold more significantly.
In our practical example with SB, the problem is to distinguish a curve (representing
the good 4-element set of keys) that holds with a bias e = ±6/16 from 1 curve with
bias e = ±2/16 and 2 with bias e = 0/16. In section 5, we apply both approaches
to the block cipher Q and compare them. We also investigate how different sets of
equations can be combined to recover the key.
4. THE BLOCK CIPHER Q
4.1 Description: Q [3] is a block cipher submitted as a candidate to the NESSIE
project. It is already broken by differential and linear cryptanalysis [4, 5]. It has
a straightforward SPN structure with s-boxes based on those in Rijndael (The AES
selection) and Serpent, leaving out linear transformations excepted a simple permu-
tation of the bytes. As a result, its diffusion properties are suboptimal. Q has 128-bit
text and key blocks. The block is divided into 4 words and 16 bytes as shown in
Figure 2. The round function of Q is represented in Figure 3 and is repeated 8 or 9
times in order to get a secure cipher. In the round function, Bytesub is taken from
Rijndael. It substitutes the value of each byte independently. The bit-slice s-boxes
(SA and SB) are taken from Serpent. For i = 0, ... , 31, we construct a 4-bit input i by
taking bit i from every word, then we replace each input according to the s-box and
return the new bit values to their original place. Finally, the permutation changes the
order of the bytes in the words in the following way: word 0 is not changed, word 1 is
rotated by 1 byte: (4,5,6,7) becomes (7,4,5,6), word 2 is rotated by 2 bytes and word
3 is rotated by 3 bytes. All these transforms are combined with classical key addition
3 7 11 15
2 6 10 14
1 5 9 13
0 4 8 12
WO W1 W2 W3
Figure 2: Q Blocks.
KA KB KR
input_
message
.. ~1 .
BYTESUB . ~ . S-BOX A ~
f-E±11 I '-!.I I
PERMUTATION HS.BOX
. .
B ~
.
output
message
Figure 3: Q Round.
layers (KA, KB, KR). For clarity, we ignore the modifications of the first and final
rounds. Only a final key addition is added after the last s-box SBS.
4.2 A Simple and Iterative Linear Approximation: Due to the very simple
structure of Q, movements of bits and bytes are specific for every part of the round:
l. A vertical shift of bytes is achieved by the perrnutation only.
2. An horizontal shift of bytes is achieved by s-boxes SA and SB only.
3. Bit modifications inside one byte are achieved by Bytesub only.
Combining this observation with the absence of a specific diffusion layer, we can easily
build an iterative characteristic with only one active s-box in every layer of the cipher.
Our iterative characteristic uses the following approximations and we illustrate the
first round in Figure 4 where the grey bytes are active.
Bytesub:
l. Round 1 : X7 EB.To = Y7, e = 16/256. 3. Round 3 : X2 = Ys,e = 16/256.
2. Round 2 : X7 = Y2, e = 16/256. 4. Round 4 : X5 = Y7, e = 12/256.
SA and SB: (the same approximations are used in every round)
l. SA: Xo = YI, e = 2/16. 2. SB: Xl = Yo, e = 2/16.
The output of round 4 can be linked to the input of round 2 if we want more rounds
to be approximated, On the same figure, we illustrate that by moving to a chosen
plaintext context, we can easily fix the input bits of Bytesub and SA in the first round
(black bytes are fixed). This provides a significant improvement of the probability that
the linear approximation holds by a factor 25. Equations 8, 9, give the probabilities
that our 4-round approximation holds in a known- or chosen-plaintext context.
(8)
(9)
5The bias e is defined in the appendix.
58
Figure 4: Iterative characteristic and chosen plaintext effect.
Note that applying this simple observation to the best-known attack against 8 rounds
of Q [5], we can improve the probability of the approximation by a factor 25 and the
number of plaintext needed by about 210 The resulting attack would need about 287
chosen-plaintexts to reach a success rate of 98.4%. The 32 fixed bits leave us with 296
chosen-plaintexts to mount an attack and therefore do not restrict the plaintext area
too much.
Finally, it is important to note that by changing approximations of SA and SB (with
the same biases), we can easily construct similar characteristics where we change the
last active s-box S B6. Everyone of these characteristics allow to recover 4 different
key bits with the same plaintext-ciphertext set. For example,by simply changing the
approximation of SA in the final round, (xo = Y1, xo = Y2 and Xo = Y3 have the same
bias), we could have bytes 4, 9 and 14 active in the last round and recover 12 key
bits. More approximations exist if more bits are needed. Every attempt to recover 4
key bits is an independent experiment and if p is the probability to recover 4 key bits,
the probability to recover 4 x n key bits equals the probability that the nattempts
success: P = p":
5. A CHOSEN-PLAINTEXT ATTACK AGAINST 4 ROUNDS OF Q
5.1 Comparison: In this section, we evaluate the success rate of our attack
against 4 rounds of Q and compare it to a classical key guess.
In the classical case, we have 9 active s-boxes because the first Bytesub and SA are
fixed and the last SB is used to perform the key guess. The resulting probability is:
1 1 1 1 12 1
Pchosenplaintext =2
8
·s·( 2
16' S·S) .(256'S) = 2
-22.41
(10)
As mentioned in section 3, the keys are correlated in the following way: the correct
key exhibits the best bias (±8/16), 6 wrong keys exhibit a bias ±4/16 and the 9 last
ones have a bias ±0/16.
When using a key-dependent approximation with bias e = ±6/16 in the last round, we
have 10 active s-boxes because only the first Bytesub and SA are fixed. The resulting
6The same reason causes a significant linear hull effect.
Method/N 242 243 244 245 24b 241 24~ 249
Classical 11.17 16.36 25.08 38.62 56.71 76.57 92.73 99.31
Key-dep 25.51 32.26 42.61 57.43 75.31 90.61 98.11 99.86
Table 1: Success rate of both methods (given in %).
probability is:
p .
ch.osesi.ploiritext.
= 29 . ~8' (~16' ~8' ~)2 (E ~~)= 2-22.83
8 . 256' 8' 8 (11)
The next table indicates a possible complete set of equations and the keys suggested
by every equation:
Equation Keys suggested
Xl = 3Y3 + Y2 + 2Yl + Yo 0,2,13,15
Xl = Y3 + 2Y2 + 2YI + Yo 1,3,5,7
Xl = Y3 + Y2 + 2YI + 3yo 4,6,9,11
Xl = 3Y3 + 2Y2 + 2YI + 3yo 8,10,12,14
For every key, these equations are correlated in the following way: the correct equa-
tion exhibits the best bias (±6/16), one wrong equations exhibit a bias ±2/16 and
the 2 last ones have a bias ±0/16.
From this, we can evaluate the success rate of both methods, as shown in Table I,
where N is the number of plaintext-ciphertext pairs. Our method is obviously faster
because we only distinguish a 4-element set including the correct key, in place of the
correct key itself in a classical linear cryptarialysis.
5.2 How to Find More Bits: The previous section underlines that we can quickly
distinguish a 4-element set of keys using a key-dependent approximation of s-box SB.
Then, the problem becomes to decrease the size of this key-set. Practically, this in-
volves the use of other complete sets of equations and we illustrate this in Figure 5.
For the input bit Xl of SB, WP found12 equations, making up 3 complete sets (1,2,3)
of equations. As every key is suggested by a different combination of these equations,
we can recover the key as soon as all our 3 complete sets suggest the good 4-element
set of keys. These 3 complete sets have the same success rate (say sr) Considering
them as independent experiments, the probability that they all suggest the correct key
would be sr3 We observe that after a certain level of computations (about N = 242 in
our example), this is more efficient that the classical key guess. Note that in practice,
these complete sets are not independent" but we also found approximations involving
other bits as we will explain in the next section. Another interesting point is the ob-
servation that some situations can never appear. Imagine that, after a certain level of
computations, the first set suggests equation la and the second set suggests equation
2b. As they have no common keys, we obviously know that one (or both) of these
experiments are wrong.
7 All these equations involve the same bits.
bo
la lb le Id 2a 2b 2e 2d 3a 3b Je 3d
~n y
0
• • •
1
• • •
2
• • •
3
• • •
4
• • •
5
• • •
6
• • •
7
• ••
8
•• •
9
•• •
10
• • •
11
• • •
12
• • •
13
• • •
14
• • •
15
• ••
Figure 5: 3 Complete Sets of Equations involving Xl and the Suggested Keys.
6. OPEN QUESTIONS AND IMPROVEMENTS
At this time, we have shown that the way to perform the final key guess in linear
cryptanalysis does not necessarily involve the use of a real s-box. Situations where we
use a non-linear key-dependent approximation to guess the key could be useful and at
least, this method offers a great flexibility compared to the original one. The princi-
pal open problem is to investigate if this can help to make an efficient use of multiple
approximations. This last point would be a great improvement as we demonstrate
now.
In the preceding section, we investigated an efficient combination of 3 complete sets
of equations, allowing to recover the 4 key-bits at the input of a non-linearly ap-
proximated s-box. These 12 equations all involve the same input and output bits.
However, our exhaustive search allowed us to find other complete sets of equations,
involving different input bits. As we suggest in section 4, it is also possible to find
other linear approximations by simply changing the way we approximate SA and
SB. Consequently, we can connect different linear approximations with our addi-
tional complete sets. Practically, for the same s-box SB, we found 9 complete sets of
equations, including the 3 sets of Figure 5. As a result, we have a large redundancy
in the information we get from a plaintext-ciphertext pair. The way we could com-
bine this additional information is an open problem and of course, is very similar to
the combination of multiple approximations in linear cryptanalysis, perhaps with a
slightly different point of view.
Another open question concerns the choice of non-linear approximations. We inves-
tigated a particular case of quadratic relations, where our boolean functions can be
represented as functions in 24, Other approximations are possible and perhaps allow
better results. Algebraic descriptions of block cipher components, as presented in [15],
could for example be useful.
b(
Finally, our investigations were limited to the final round of the block cipher Q. This
allowed to evaluate a different way to guess the key. Previous papers presented differ-
ent methods to use non-linear approximations in order to improve linear cryptanalysis.
Most of these techniques could be combined with this work.
7. CONCLUSIONS
We explored a different way to perform the key guess in linear cryptanalysis. It allows
great fiexibility because the key is dynamically specified when additional plaintext-
ciphertext pairs are provided. From a 4-element set including the correct key, we limit
the set to 2 elements and finally recover the key itself.
In practice, we used a particular class of non-linear approximations to make up a
system of equations whose solution is the secret key. An advantage is to be found in
the large number of possible approximations (from 2n to 4n). As a consequence, we
found a large number of equations that over-define the system. The best use of these
multiple approximations is an open problem.
Compared to classical cryptanalysis, we improved the probability of success after a
number of plaintext-ciphertext pairs is provided. We also have additional information
because some solutions of the system are not allowed, informing the attacker about
possible wrong experiments. Finally, we suggested a chosen-plaintext attack against
the block cipher Q that reduced the required number of plaintext-ciphertext pairs
from 297 to 287.
REFERENCES
[1) .J.Daemen and V.Rijmen, AES Proposal: Rijndael, http://csrc.nist.gov
/ encryption/ aes/ rijndael/Rijndael. pdf.
[2) R.Anderson, E.Biham, L.Knudsen, Serpent: A Flexible Block Cipher With Maximum Assurance,
The First Advanced Encryption Standard Conference, Ventura, California, August 1998.
[3) L.McBride, Q : A Proposal JOT NESSIE, submitted to NESSIE, 2000.
[4) E.Biham et al, Differential Crypta.nalysis o] Q, in the proceedings of Fast Software Encryption
2001, LNCS 2355, pp.174-186, Springer-Verlag.
[5) L. Keliher, H. Meijer, and S. Tavares, High Probability Linear Hulls in Q, Proceedings of Second
Open NESSIE Workshop, Royal Holloway College, University of London, Egham, U.K, 2001.
[6) L.Keliher, H.Meijer, S.Tavares, New Method JaT' Upper Bounding the Maximum Average Linear
Huil Proba.bility Jar SPNs, proc. of Eurocrypt 2001, LNCS 2045, pp.420-436, Springer-Verlag.
[7) M.G.Parker, Genmlized s-box Nonlinearity, NESSIE Report NRS/DOC/UIB/ WP5/020/ A, .June
2002.
[8) H.Raadum, M.G.Parker, Z4 Linear C1'Ypta.nalysis, NESSIE Report NES/DOC/UIB/
WP5/018/1, June 2002.
[9) M.Matsui, Linear Cryptanalysis Method Jar DES Cipher, in the proceedings of Eurocrypt 9~,
LNCS 0765, pp.386-397, Springer-Verlag.
[10) K.Nyl>erg, Linear Approximatiun o] Block Ciphers, in the proceedings of Eurocrypt 94, LNCS
OY50, pp.439-444, Springer-Verlag.
[Ll] B.S.Kaliski, M ..J.B.Robshaw, Linea,' Cryptanalysis using Multiple Approximations, in the pro-
ceedings of Crypto 94, LNCS 0839, pp.26-39, Springer-Verlag.
[12) L.R.Knudsen, M.J.B.Robshaw, Non-Linear Approximations in Linear Crupiomolusis, in the pro-
ceedings of Eurocrypt 96, LNCS 1070, pp.224-236, Springer-Verlag.
[13) T.Shimoyama, T.Kaneko, Quadmtic Relations o] s-box and Its Application to the Linear Attack
oJ Full Round DES, in the proceedings of Crypto 98, LNCS 1462, pp.200-211, Springer-Verlag.
[14) L.R.Knlldsen, J.E.Mathiassen, A Chosen-Plaintext Linear Attack on DES, in the proceedings
of Fast Software Encryption 2000, LNCS 1978, pp.262-272, Springer-Verlag.
[15) A.BirYllkov, C.De Canniere, B.Preneel, Block Ciphers and Systems oJ Quadratic Equations, in
the proceedings of the Third NESSIE Workshop, November 6-7 2002, Munich, Germany.
62
HUFFMAN CODES REVISITED
R. Stasiáski, and G. Ulacha
Dept. of Electronics and Telecom., Poznan University of Technology, and
Faculty of Computer Science, Szczecin University of Technology
Piotrowo 3A, PL-60-965 Poznari, and Zofnierska 49, PL-71-210 Szczecin, Poland
rstasins~et.put.poznan.pl, gulacha~wi.ps.pl
In the paper Huffman codes that mix different ri-nary code elements in one
code are presented, i = 1,2, ..., k, k is an integer. The r-nary elements
are then binary coded, and two based on well known facts coding techniques
are described. In general, appropriately chosen mixed Huffman codes are
not worse than r-nary ones for any r , hence, the idea of optimal Huffman
codes is introduced. The method is relatively simple, as this is basically an
extension of the Huffman coding approach, while examples show that indeed,
savings in the average code lengths are obtained.
INTRODUCTION
Huffman coding is the best known systematic approach to generation of com-
pact block source codes [1, 2]. The average code length of compact block source
code (counted in r-nary code elements) is upper-bounded by the source entropy
value increased by one, however, this is usually a rather pessimistic evaluation.
It is also a well known fact that for some sources code improvement is obtained
when using r-nary codes for specially chosen r [3, 4, 5], the simplest example are
here sources having symbol probabilities of the form r :", i are integers. In such a
case the average code length for an r-nary Huffman code is exactly equal to the
theoretical minimum, which in general is not true for other codes.
In the paper Huffman codes mixing binary and multilevel code elements in
one message are described. Namely, the goal is to obtain optimal Huffman codes
having the shortest possible average code lengths, section 3. For these codes
nodes of Huffman trees may have variable numbers of sons coded using r-nary
elements for variable r, Then, multilevel elements are grouped in blocks which are
binary coded, section 2. The code is sent immediately when a block is completed
and coded, section 4. Section 5 contains examples illustrating different aspects
of the technique. The method is relatively simple, as it is basically an extention
of Huffman coding approach.
g m = b(rq) bq(r) log r Ibq(r)
5 8 1.60000000000000 0.99060156295072
17 27 1.58823529411765 0.99793935230591
29 46 1.58620689655172 0.99921548958508
41 65 1.58536585365854 0.99974557737796
94 149 1.58510638297872 0.99990922864288
147 233 1.58503401360544 0.99995488242923
200 317 1.58500000000000 0.99997634114899
... ... ... .,.
190537 301994 1.58496250072164 0.99999999999969
log 3 = 1.58496250072116 ... 1.0
Table 1: Best approximations of log 3 by rational numbers mig for growing al-
lowable m, q values.
EFFICIENT CODING OF MULTILEVEL CODE ELEMENTS
Let us introduce the number length b(r), being the smallest number of bits
necessary to represent a non-negative integer r. Of course:
logr ::::b(r) < logr I- 1, (1)
b(r) is the number of bits necessary to represent an r-nary digit using fixed-length
binary code. Note that for powers g of number r:
b(rq) < g. b(r),
e.g.: b(5) = 3, b(53) = b(125) = 7 < 3· b(5) = 9. This is the hint how to reduce
the number of bits for coding sequencies of r-nary signals. Namely, we collect.
them in groups of size g, interpret as r-nary numbers, and then code using b(rq)
bits. We define average number of bits necessary for coding an r-nary element:
(2)
Note that the best q values are obtained when rq is the closest possible but
smaller than some power of 2. The obvious way to find such q values is to search
for pairs of integers (g, m) which proportions approximate number logr in the
best possible way, mig> logr. Then, the number m = b(rq). Table 1 shows how
these proportions improve if we allow greater and greater m, q values for r = 3.
r l2(r) q m bq(r) i2,,(r) g(r) g'(r) log r Ibq(r) logrl!2q(r)
3 11 5 8 is 1.5893 0.06667 0.07737 0.99060 0.99727
3 11 41 65 I¥, 1.5851 0.08130 0.08158 0.99975 0.99991
5 2~ 3 7 3~ 2.3253 0.06667 0.07467 0.99511 0.99855
7 2% 6 17 2~ 2.8143 0.02381 0.04283 0.99083 0.99753
7 2% 11 31 2fï 2.8104 0.03896 0.04678 0.99616 0.99892
11 3fi 13 45 3f:J 3.4601 0.08392 0.08539 0.99939 0.99981
Table 2: Binary coding of r-nary symbols, m = b(rq).
In fact, it is possible to use somewhat smaller numbers q and m than in
Table 1 for precise approximation of logr. Namely, q-element blocks of r-nary
elements can be coded using variable-length binary code. Not having any a
priori information about frequency of each r-nary value in the coded data we
assume that the values have the same probabilities, and apply the Huffman coding
scheme. When q = 1 we get a binary code in which one part of codewords is of
length b( r), and the other of length b( r) - 1. The average code length is:
l2(r) = b(r) - (2b(r) - r)lr = b(r) - 2b(r) Ir + 1. (3)
We are interested in cases when bq(r) < l2(r), hence, the code length gain is
introduced:
g(r) = l2(r) - bq(r). (4)
The gain can be increased when q-element r-nary blocks are coded using variable-
length binary code:
g'(r) = l2(r) - !2q(r), !2q(r) = l2(rq)lq. (5)
Table 2 contains some interesting values of the above parameters for few r . When
comparing the last columns with that in Table 1 we can see that variable-length
code for pairs (q,m) = (5,8),(41,65) from first and fourth row in Table 1 are
approximately as efficient as fixed code for pairs from rows second and fifth.
MIXED AND OPTIMAL HUFFMAN CODES
In our considerations we will be working with n-element data sources ordered
in accordance with increasing probabilities of alphabet letters, i.e. Pi < P2 <
... 0 let
o; d;j {z E Rlp(z) > tJ.}, C~ d;j R \ c: (6)
Assume further that there exist some constants À > 0, M > 0, and tJ.o > 0 such that
for all 1:::.,0 < tJ. :S 1:::.0, the following inequality holds:
[c Ip(z)logp(z)ldz:S
6.
tJ.À(log ~)M. (7)
I~b
Denote by p = p(À) the minimum (nonnegative) number such that
(8)
and
(9)
for all 6.,0 < 6. :::::6.0 (mes (-) denotes the Lebesgue measure). Finally, for a given
integer n define the quantity N = N(n, À, p) as
N d:;j r(1 + ~)nl, (10)
r
where x 1 denotes the minimum integer that is greater than or equal to x.
In terms of the parameters n, N, À, M, and 6.0 we formulate the following assump-
tions (A) - (D) on p(Z) under which the main results will be proved:
(A) p(z) is bounded on R, has bounded derivatives p(kl(z), k = 1,· .. , N, and
lim p(z) = lim p(kl(z) =0 (11)
Izl-+oo Izl-+oo
for all k = 1,· .. , N - 1;
(B)
1
Ip(klzl :::::(log 6.)Mp(z), ZEGt::,., (12)
for all 6., 0 < 6. :::::6.0, and k = 1,···, N;
(C)
(13)
for all 6.,0 < 6. :::::6.0, and k = 0,1,···, N (here and below p(Ol(z) d:;j p(z)). In
particular, for k = 0 condition (13) reduces to (7);
(14)
for all6.,O < 6.::::: 6.0, and for all k = 0,1,··· ,N, and j = 2,···, L~J;
sup
v:lvl 0 and some e = e({3) > 0;
(D)
limsup D(pllpV) < 00 (16)
Ivl-+oo lyIN+<>
for some a > 0, where
D(pllpY)=
de! /00 p(z)log (p(z) )dz (17)
-00 p z - y
is the divergence between p( z) and its shift by distance y denoted by pY. Finally, for
any given random variables V and W, denote by
ms(V) d~ E(1! - EV)S (18)
and
ms(1!IW) d~ E[(V - E(1!IW))SIW]' (19)
the central moment of V of order s and the conditional central moment of V of order s
given W, respectively. Also, let us introduce the following characteristics of the random
variable Z:
(20)
for any integers k, n, il,' . " in, and jl,"', i-: provided the integrals on the right-hand
side of (20) converge. In particular,
(21)
is the Fisher information of the random variable Z.
3. STATEMENT OF THE RESULTS
We are now ready to formulate the main results of this paper.
Theorem 1. Assume that the probability distriinitioti (that can depend on c) of the
input signal X in the channel (1j satisfies the condition
(22)
for all 6 > OOI where 60 > 0 and 1/ > 0 are some positive constants independent o]
e. Assume also that the noise Z has a finite second moment and a probability density
function p(z) which satisfies for a given inieqer ti 2': 2 conditions (A) - (Dj. Finally,
assume that the random function f(X) satisfies the conditions
(23)
and
a.s. (24)
fOT some finite positive constants C and £ where the constants N and a are the same
as in conditions (A) - (Dj. Then uniformly in all X satisfying the conditions of the
theorem the following asymptotic expansiori holds :
n n [~l
I(X; ff(X) + Z) = loge[L Aplfs + L L( _1)k+S(k - 2)!B;~2fSl + O(fn), f --+ 0, (25)
s=2 s=4k=2
where
A~l) = (-S~)s l\:i:;_l(l)[ms(f(X)) - E[ms(f(X)IX)]] (26)
and
(27)
Here L~s,~),n-2
2,
i means that the summation is taken over all indices i2, ... ,in-2 such
that i2,···, in-2 E {O,···, k}, i2 + ... + in-2 = k, and 2i2 + 3i3 + ... + (n - 2)in-2 = s.
For the channel with a random parameter (2) it is of interest (cf. literature of fading
channels) to find not only the asymptotics ofthe mutual information I(X; eipt X, U)+Z)
as f. -+ 0 but also the asymptotics of the conditional mutual information I(X; f.cp(X, U)+
ZIU) as f. -+ o. The latter case means that the receiver knows the realization of the
random parameter U. To obtain the asymptotics of I(X; apt X, U) + Z) we can di-
rectly apply Theorem 1 if Zand cp(X, U) satisfy the conditions of that theorem, in
particular, cp(X, U) should satisfy conditions (23) and (24) where f(X) is replaced by
cp(X, U). The corresponding asymptotic expression of 1(·;·) would be given by (25) -
(27) with f(X) replaced by cp(X, U). The asymptotic expansion for the conditional
mutual information I(X; f.cp(X, U) + ZIU) in the channel with a random parameter (2)
is given by the following theorem.
Theorem 2. Assume that the random parameter U in the channel model (2) satisfies
the condition
(28)
for all 6 > 60 where 60 > 0 and v > 0 are some positive constants (independent of e).
Assume also that the noise Z satisfies the conditions of Theorem 1, and the non-random
function cp(., .) and the input signal X are such that
(29)
for some finite positive constants c and e where the constants N and Cl are the same
as in conditions (A) - (D). Then uniformly in all input signals X satisfying condition
(29) the following asymptotic expansion for the conditional mutual information holds:
n n l~J
I(X; f.cp(X, U) + ZIU) = log elL A~2)f.S+ L L (_l)k+S(k - 2)!B;~iES] + 0(£'), E -+ 0,
s=2 s=4k=2
(30)
where
(31)
and
(32)
As corollaries we obtain asymptotic expansions for the mutual information I (X; f.UX +
Z) in channel model (3), and for I(X; f.X +Z +EU) in channel model (4). We also carry
out these asymptotic expansions in the special case that Z is Gaussian. Furthermore,
we obtain in an explicit form the first few terms of the asymptotic expansions for the
mutual information in the different cases considered. The proofs of Theorems 1 and 2
and of the corollaries can be found in [6J.
REFERENCES
[IJ I.A. Ibragimov and R.Z. Khasminsky, "Weak signal transmission in a memoryless
channel", Probl. Inform. Transmission, Vol. 8, no. 4, pp. 28-39, 1972.
[2J V.V. Prelov and E.C. van del' Meulen, "An asymptotic expression for the informa-
tion and capacity of a multidimensional channel with weak input signal" , IEEE Trans.
Inform. Theory, Vol. 39, no. 5, pp. 1728-1735, 1993.
[3J V.V. Prelov, "Communication channel capacity with almost Gaussian noise", The-
ory of Probab. and Applications, Vol. 33, no. 3, pp. 405-422, 1988.
[4J V.V. Prelov, "Asymptotic expansions for the mutual information and for the ca-
pacity of continuous memoryless channels with weak input signal" ,Probl. Control and
Inform. Theory, Vol. 18 (2), pp. 91-106,1989.
[5J V.V. Prelov and S. Verdu, "Second-order asymptotics of mutual information", sub-
mitted to IEEE Trans. Inform. Theory, 2002.
[6J V.V. Prclov and E.C. van der Meulen, "Higher order asymptotics of mutual infor-
mation for nonlinear channels. with non-Gaussian noise", submitted to Probl. Inform.
Transmission, 2002.
11°
A STRUCTURE OF BLOCK CIPHERS ACHIEVING SOME
RESISTANCE AGAINST FAULT ATTACKS
Mathieu Ciet, Gilles Piret and Jean-Jacques Quisquater
UCL Crypto Group
Place du Levant, 3. B-1348 Louvain-Ia-Neuve. Belgium.
{eiet, piret, jjq}~diee.uel.ae.be - http://www.dice.ucl.ac.be/erypto/
In this paper, we are concerned on countermeasures against differentiol [auli
attacks in the case of block ciphers. We propose to use error correcting codes
in their design.
Keywords. Block Ciphers, Fault Attacks, Countermeasures.
1. INTRODUCTION
Cryptography is concerned with the conceptualization, definition and con-
struction of computing systems that address security concerns. Cryptography is
also concerned with concrete implementations of such systems.
There are mainly two families of implementation attacks: faults attacks [4, 2] and
side-channel attacks from Kocher et al. [8, 9]. In this article we deal with the
first family.
Recently, lot of work has been done in the sense of attacking block ciphers by
faults [3, 7, 5], but less for countermeasures [6]. The only used countermeasures
for block ciphers, contrary to RSA where the Shamir trick can be used, are
to encrypt twice or encrypt and then decrypt, and then compare respectively
the encrypted or plain texts. This is generally satisfactory because block cipher
encryption is fast.
In this paper, we propose to use error correcting codes in the design of a block
cipher to avoid fault attacks. This gives a better performance than encrypting
twice. We also prove that our modification applied to a block cipher does not
affect its security against the classical attacks. However, we show that bad use of
error correcting codes can help the attacker to retrieve the secret key. Then we
have to be very careful when using them. Finally, the use of an error correcting
code does not seem to be the panacea to immunize block cipher against fault
1
1 1
but this is the first proposal for advanced countermeasures compared with the
previous basic ones.
This paper is organized as follows. In section 2, we deal with fault correction
on block ciphers, we detail the basic components and give a general structure.
Then, in section 3, we present a variant that allows fault detection. We show
how, in some cases, fault countermeasures can help an attacker and how this can
be avoided. Section 4 is the conclusion.
2. A FAULT CORRECTING BLOCK CIPHER
The error correcting code
The general principle is the following: the data to encrypt is divided into words
of 8 - r bits. Each word is encoded using a [8,8 - rl linear error-detecting code
over IF2. Codewords are thus 8-bit length.
We denote the code used (i.e. the space of all codewords) by C. By Nb or n
we denote the block size in bytes, including error-detecting bits. Thus the real
block size (in a cryptographic sense) is (8 - T') . Nb bits. If we want to be able
to correct any fault on one bit, we need to choose T' = 3. Furthermore r > 3
has no sense, as then it would become more efficient tol. encrypt twice and check
the result validity. In the remaining of this section we reep speaking about r for
better readability. ?
Basic components
We now detail the different components of the block cipher, taking care of im-
plementation issues, such that each component receiving a faulty byte as input
(with a I-bit difference) do the error correction before the computation itself.
S-LIl.J)ces
As the words of the code are 8-bit long, it is necessary to use 8 x 8 S-boxes; however
cryptographically speaking the S-boxes to be designed are (8 - T') x (8 - r) (we
call them reduced S-boxes; the 8 x 8 S-boxes are called full S-boxes), as the r last
bits are used for error correction 1 Functionally speaking, the full 8 x 8 S-box
performs the following computation:
1We could also use 16 x 16 S-boxes (with (16 - 2,.) x (16 - 21') reduced S-boxes), but so big a
S-box is more difficult to design and impossible to implement in very constrained environments
such as smart cards.
• LeL x E GF(28) be the input byte to the S-box. Check whether x is a word
of the code or not.
• If x is indeed a word of the code, compute y = S(x), where x denotes the
first 8 - r bits of x, and S is the reduced S-box. Then compute y the word
of the code whose first 8 - r bits are y.
• If x is not a word of the code, correct it into the nearest word in the code,
denote it by x*. Then compute y = S(x*), and the word y E C whose first
8 - r bits are y.
It is clear that such a S-box maps any byte x to a byte y E C. But as it is
described, a fault occurring during the S-box computation (for example, just
after the error correction step) would ruin this property. Most of the time, S-
boxes are implemented by table lookups (except in hardware implementations).
A fault-resistant implementation of the S-box consists in using a 256-bytes long
table.
Key mixing and key schedule
As the code is linear over lF2, the E9of two codewords is still a codeword; moreover
if x tf. C, k E C, and sp denotes the decoding application, then r.p( x E9k) = r.p( x) E9k,
Thus it seems reasonable to use E9 as the key mixing operation. Note however
that we may have x, ij tf. C, and x E9ij E C. It means that occurrence of several
faults at different locations could make fault correction fail. However this is not
too worrying, as such an event is difficult to induce and exploit by an attacker.
The second part of the problem of designing a key mixing compliant with the code,
is to select a key schedule such that every byte of every subkey is a codeword.
The easiest way of doing this is to use a key schedule which is the ciphering
algorithm itself. It implies that the input to the key schedule is compound of
codewords. We will denote by Nk the key size in bytes, including error-detecting
bits; thus the real size of the key space is 2(8-r)Nk.
If we are not satisfied with Nk = Nb, and prefer Nk = 2 . Nb, a Feistel whose
round function is the one of the ciphering algorithm can be used. Finally, note
that the" round keys" used during the key scheduling are round constants, which
are codewords as weIl.
Linear Transform
In order to be compatible with the code, the linear transform needs to be byte-
oriented. Therefore we suggest the reduced linear transform (ignoring the parity
bits) e:GF(28-r)n ---7 GF(28-r)n to be expressible by a matrix H E GF(28-r)nxn:
e(a) = b {=> b = a· H2 Such a linear transform can be implemented using only
EBand multiplications by the polynomial g(x) = x in GF(28-r).
Consider what happens with the full linear transform B : GF(2)8n -> GF(2)8n
associated with e. We already showed that EBis compatible with the code. Mul-
tiplications by g(x) = x can be implemented in a fault-resistant way using a
256-bytes long table T exactly as we did for the S-boxes.
General structure
We suggest the overall structure of the cipher to be a classical substitution-
permutation network. There are two reasons for this choice: the first one is that
it is a simple and robust structure, which minimizes the danger of a structural
weakness. The second one is that it is perfectly compatible with the conclusions
of our discussion about the basic components (see previous section).
The different layers of a round Q[k] are thus:
• The nonlinear layer "( it consists in the parallel application of Nb 8 x 8
S-boxes. They are all identical.
• The linear diffusion layer B: it is a linear mapping based on a MDS code,
which implies maximal diffusion properties.
• The key addition layer CJ[k]: it consists in the EBof each byte of the state
with a byte of the round key.
One round Q[k] consists in the composition CJ[k] oBo-y. Given a sequence of round
keys KO, tc-, ..., KR, the full R - rounds algorithm is given by:
R-l
cxR[KO, ... , KR] = CJ[KR] 0 -y 0 (0 Q[Kr]) 0 CJ[KO]
r=l
Note that this structure is similar to the one of cipher Khazad [1]. We can choose
a block size of 128 bits (i.e. Nb = 16); then the real block size, cryptographically
2It requires to specify a primitive polynomial PB-r(X), in order to represent GF(2B-r) as
GF(2)[xIIPB_r(x).
speaking, is 80 bits. Similarly, a 256-bit input to the key schedule (i.e. Ni; = 32)
will imply a real key size of 160 bits.
Security Analysis
We prove that the parity bits introduce no weakness with respect to classical
attacks (linear and differential cryptanalysis, slide attacks, ...). Indeed, in the
same way as we defined a reduced S-box, we can define the reduced cipher as
the cipher we obtain if we remove all parity bits and adapt the computations
accordingly. If we denote by C the complete cipher (with parity bits) and by C*
the reduced cipher, C can be alternatively described by the following three steps:
l. Remove the parity bits of the plaintext.
2. Apply Co.
3. Compute the parity bits of each word of the ciphertext, and append them.
The input-output behavior of these three steps is the same as the one of the
implementation of C previously described; the only difference is that it does not
have fault correction properties. From this alternative description, it is clear
that C and C* have the same security properties. Thus designing a secure C* is
enough to have a secure C.
3. AN ERROR DETECTING VARIANT ...
The Design
The weak point of the error-correcting block cipher we described until now is that
it allows correction of bit-flipping faults only. Although some physical attacks are
intended for this [10], the most common ones disturb one whole byte. Using our
technique in order to correct faults affecting one whole byte is not interesting:
in this context it is better to use double encryption. Thus in this section we
investigate how to detect these faults.
Again, we use a [8,8 - rJlinear code over lF2. The probability for a fault affecting
an entire byte to get detected increases with the value of r (more precisely a
fault remains unnoticed with probability 1/2T). On the other hand, the amount
of computation needed to encrypt a given amount of data increases with r, A
tradeoff is thus to be made, keeping in mind that there is no point in choosing
r > 3. In the following we consider the case r = 1.
The components of the cipher are designed such that every input x E C results
in an output y E C, and every input :i; 1- C results in an output ij 1- C. We give a
brief description of each of them.
S-boxes
Cryptographically speaking the S-boxes to be designed are 7 x 7. Functionally
they can be described as:
• Let x E GF(28) be the input byte to the S-box. Check whether x is a word
of the code or not.
• If x is indeed a word of the code, compute y = S(x), where x denotes the
first 7 bits of x, and S is the reduced S-box. Then compute y the word of
the code whose first 7 bits are y.
• If x is not a word of the code, the output of the S-box is some particular
byte not in the code. We denote it by CL
Once again, table lookup-is the ideal way to implement S-boxes in a fault-resistant
way. As all bytes 1- C result in the same value, we hope the attacker will not be
able to recover any inforrnation from a faulty ciphertext.
Key mixing and key schedule
The EBoftwo codewords is still a codeword; moreover if xE C and ij 1- C, xEBij 1- C.
Thus EBis adequate for key mixing. We can still use the algorithm itself (or a
Feistel whose round function is the one of the algorithm) as key schedule.
Linear Transform
We use the same type of linear transform as in section 2. The multiplication by
g(x) = x is viewed as an S-box and thus irnplemented by a table lookup .
...Is not secure? ..
The most immediate way to use the fault detection property of our construction
would be to check whether all bytes of the ciphertext are valid codewords. How-
ever this way of doing could lead to a ravaging fault attack. We illustrate it in
Figure 1, where exhas already been defined, and (3, (31, ... , (3n denote any words
not in the code.
• • •
• • •
Figure 1: An attack against bad use of error detection.
The attack is the following: suppose a fault on one byte before the last linear
transform eR-1 turns it into a byte ti. C. It is easy to prove that after application
of e R-l, none of the bytes are codewords. Thus application of the last S-boxes
layer will turn them into Q. It means that an attacker can obtain the whole last
round key by a simple EBof the ciphertext bytes and Q (he knows that a fault
occurred, as he observes that the ciphertext bytes ti. C). A single fault allowed
him to recover a whole round key! Thus as it is applied, our fault detection
construction makes fault attacks easier instead of preventing them ...
But may be repaired.
However it is possible to avoid this problem: after every S-box lookup and every
multiplication by g(x) = x, we check whether the output is a codeword. If not,
the computation is stopped.
4. CONCLUSION
In this paper, we have dealt with countermeasures against fault attacks
against block ciphers. We have suggested the use of error correcting codes to
design a dedicated block cipher immunized against fault. We have first proposed
to correct faults generated by fault induction. This allows corrections of one
flipped bit per 8-bit word. Then, we have presented an error detecting variant,
and we have seen that contrary to the first feeling, this can be an advantage for
the attacker if badly used.
111
This approach is the first proposal to immunize block ciphers against faults,
except the trivial double-encryptions or encrypt-then-decrypt algorithms.
REFERENCES
[1] P.S.L.M. Barreto and V. Rijmen. The Khazad Legacy-Level Block Cipher.
Available at http://www.cryptonessie.org.
[2] E. Biham and A. Shamir. Differential Fault Analysis of Secret Key Cryp-
tosystems. In B. S. Kaliski Jr., editor, Advances in Cryptology - Proceedings
of Crypto 97, volume 1294 of Lecture Notes in Computer Science, pages
513-525. Springer, 1997.
[3] J. Blöemer and J.-P. Seifert. Fault based cryptanalysis of the advanced
encryption standard. Cryptology ePrint Archive: Report 2002/075, 2002.
[4] D. Boneh, R. DeMillo, and R. Lipton. On the importance of checking cryp-
tographic protocols for faults. In W. Fumy, editor, Advances in Cryptology
- Proceedings of Eurocrypt '97, volume 1233 of Lecture Notes in Computer
Science, pages 37-51. Springer, 1997.
[5] P. Dusart, G. Letourneux, and O. Vivolo. Differential fault analysis on a.e.s.
Cryptology ePrint Archive: Report 2003/010, 2003.
[6] S. Fernández-Gómez, J-J. R.odriguez-Andina, and E. Mandado. Concurrent
Error Detection in Block Cipher. Pr-oceedings IEEE International Test Con-
ference 2000, 2000. IEEE Computer Society 2000.
[7] C. Giraud. DFA on AES. Cryptology ePrint Archive: Report 2003/008,
2003.
[8] P. C. Kocher. Timing Attacks on Implementations of Diffie-Hellman, RSA,
DSS, and Other Systems. In N. Koblitz, editor, Advances in Cr-yptology -
Proceedings of CRYPTO 1996, volume 1109 of Lecture Notes in Computer
Science, pages 104-113. Springer, 1996.
[9] P. C. Kocher, J. Jaffe, and H. Jun. Differentlal Power Allalysis. In
M. Wiener, editor, Advances in Cryptology - Proceedings of CRYfJTO 1999,
volume 1666 of Lecture Notes in Computer Science, pages 388-397. Springer,
1999.
[10] S. Skorobogatov and R. Anderson. Optical Fault Induction Attacks. In
B. S. Kaliski Jr. and Ç. K. Koç, editors, Advances in Cryptology - Proceedings
of CHES 2002, volume 2523 of Lectur-e Notes in Computer Science, pages
2-12. Springer, 2002. To Appear.
TENSOR TRANSFORM OF FUNCTIONS OVER FINITE
FIELDS
Alexander Kholosha
Department of Mathematics and Computer Science
Technische Universiteit Eindhoven
P.O. Box 513, 5600 MB Eindhoven, The Netherlands
A.Kholosha~tue.nl
We introduce a tensor transform for multivalued logical functions. Partic-
ular instances of this trasisjorm cover the classical algebraic normal and
Walsh transforms. Our approach facilitates proving of basic matrix identi-
ties and allows to establish some new properties of the ajorecited transjorms.
1 INTRODUCTION
With the development of computer technology, multivalued logical functions
become more and more important in cryptography, particularly in the design of
stream ciphers. It is currently generally accepted that secure functions to be used
in key-stream generators must satisfy the following properties: balancedness, high
nonlinearity, sufficiently high algebraic degree that should be optimized with re-
spect to certain correlation properties. The algebraic degree of a multivalued
function is the degree of its algebraic normal form (ANF); balancedness, nonlin-
earity, and correlation properties are defined by its Walsh transform [IJ. Thus,
the algebraic normal and Walsh transforms of a multivalued function define the
most important cryptographic characteristics of the function.
Recently, in [2J we introduced a tensor transform for pseudo-Boolean func-
tions that covers the algebraic normal and Walsh transforms but which also allows
for the definitions of new, probabilistic and weight transforms. The objective of
this paper is to generalize the tensor transform to the case of functions over
GF(q). We describe the general basis for a tensor transform of multivalued func-
tions. Special cases of this approach not only provide easy proofs for known
important relations in the theory of algebraic normal and Walsh transforrns, but
also allow to establish some new properties of these transforms.
2 TENSOR TRANSFORM AND ITS INSTANCES
Let Mn(P) denote the ring of n-dimensional square matrices over the field
P. For a pair of matrices A E Mn(P) and B E Mm(P) let A ® B denote the
Kronecker product of these matrices and Alk] denote the kth Kronecker power
of A. For a matrix A E Mqn(P) we use notation A = (go, ... ,gq"-I), where gi
(i = 0, ... , qn - 1) denotes the ith column of A and the coordinates of gi are
indexed lexicographically by the elements in {O,... , q - l}n, so
gi(O, ,0) J
gi(O, ,I)
a. = ( gi (q ., 1, ... , q _ 1) .
Let O'i (i = 0, ... , qn - 1) denote the n-digit q-ary expansion of i. Then gi =
(gi(O'O), ... , gi(O'qn-df, where the superscript T denotes transpose of a matrix.
Lemma 1 Let A = (go, ... ,gqn-Il E Mqn(P) arui=A' = (gS, ... ,g~n-l_l) E
Mqn-l(P). Suppose that A = B ® AI for some matrix B = (bm,k)qxq (m,k =
O, ... ,q-l). ThenforanyiE{O, ... ,qn-l}
where O'i' is the (n - I)-digit vector, q-ary expansion of if and Im(xd is the
indicator function of the event {Xl = m}.
Proof: By the definition of the Kroneekor product, A = (bm,kAf)qnxqn (m, k =
0, ... , q-l).Therefore, the entry gi(XI,'" , x,,) of matrix A lies in the cell bm,kA'
of size qn-l X qn-l, where m = XI and k is equal to the most significant digit of
ai· Local coordinates of gi(Xl,""Xn) in this cell are equal to (X2,""Xn) and
ai'. Thus, for any m = 0, ... , q - 1
This proves the claimed identity. 0
The following proposition easily follows from Lemma 1.
\ 8D
Proposition 1 Let A = BI ® ... ®Bn, uiltere Bj = (b;;')k) qxq (m, k = 0, ... , q-1)
I
fOT j = 1, ... ,n, and A = (go, ... ,gq"_I). Then fOT any iE {O,... ,qn - 1}
uihere ai = (a}, ... , ai).
In this paper we consider functions of ti variables over GF(q). In order to
define the string of values for such a function we need to order the elements in
GF(q)n Let ç denote a primitive element of GF(q). Then all nonzero elements of
the field are exactly {ç, e, ..., ç-q-I} and we can build the one-to-one correspon-
dence between GF(q) and the set of integers in the range 0, ... , q - 1 in such a
way that 0 corresponds to the zero-element of the field and i E {1, ... , q - 1} cor-
responds to c: With this correspondence any element in GF(qt has the unique
counterpart ai for some i E {O,... , qn -1} and, therefore, the elements in GF(q)n
can be ordered lexicographically.
Let function f(XI' , xn), mapping GF(qt to P, be defined by its string of
values T! = (J(ao), , f(aqn-I)f E Pï", Here, z, denotes the variable taking
on its value in GF(q). However, using the above described correspondence, x,
can be also seen as an integer in the range 0, ... , q - 1. Similarly, (XI, ... , xn)
can either be an element of GF(q)" or an integer in the range 0, ... , qn - 1 in
its q-ary expansion. In the rest of this section we will use the same notations to
denote both the elements of the field and the corresponding integers hoping that
any ambiguity can easily be resolved by the reader in each specific case.
Further, let A E Mq"(P) be an invertible matrix, A = (go, ... ,gqn-d, and
let function F(XI' ... , xn) be defined by the string TF = A-IT! = (F(ao), ... ,
F(aqn_I))T E pq". Vectors T! and TF are considered further as column-vectors.
Then T! = ATF,
q"-I q"-I
T! = :L giF(ai) and f(XI, ... ,Xn) = :L gi(XI, ... ,xn)F(a;) (1)
i=O i=O
for any (XI, ... , xn) E GF(q)n. Equations (1) represent the decomposition of
function f in the basis vector set (go, ... , gqn_I). Hereafter, by ff,:';;~= for any
1 :::::il < < im ::::: n, we denote the subfunction of f obtained by fixing
variables Xi" , Xi= with values f31, ... , f3m respectively.
18 {
It is well known that if BI and B2 are invertible matrices over P then the
Kronecker product matrix B10B2 is invertible too and (B10B2)-1 = B110B;;1
In particular, if B E M2(P) is an invertible matrix and A = B[nJ then A is
invertible too and A-I = (B-1)[n J.
Now we will demonstrate how Proposition 1 substantially facilitates proving
some basic matrix identities for the most important representations of functions
over GF(q).
The Identity Transform. Let P be an arbitrary field and set B = Eq - the
identity matrix of size q, and A = B[nJ = Eqn. Then, by Proposition 1,
if ai = (Xl, ... , xn),
otherwise
and
The Algebraic Normal Transform. Take P = GF(q) and set
1 0 0 0 0
1 ç e çq-2 1
B=
1 e e e(q-2) 1
(2)
çq-2 ç(q-2)2 ç(q-2)(q-2)
1 1
1 1 1 1 1
and A = B[nJ. Then, by Proposition 1,
n
gi(X1, ... , xn) = IT bXj,o.~ = IT (Xj)~,
j=l j=l, ...,n: 0.;",0
where Xj on the right hand side of the last identity denotes the element of GF(q).
Therefore,
18 L
One can easily recognize the ANF of function f over GF(q) on the right hand
side of the last identity, where F(ai) (i = 0, ... , qn - 1) are the coefficients of
the ANF polynomial. Denote matrix (2) as Rq and set Rqn = R~nl. If P! is the
coefficient vector of the ANF polynomial for function f then
where R;;2 = (R;;l )[nl and
1 0 0 0 0
_çq-2 _ç(q-2)2 _ç(q-2)(q-2)
0 -1
R-q l=
0 -Ç2 -e _Ç2(q-2) -1
0 -ç -Ç2 -e: -1
-1 -1 1 -1 -1
The algebraic normal transform over GF(q) was introduced in [3, Sect. 4.5] where
it also was proved that R;;l has the specific form stated above.
The Walsh Transform. The Walsh transform of a complex-valued function f
of n variables over GF(q) can be defined as the n-dimensional discrete Fourier
transform over the complex field k2Vt:
In the proposed solution (4), Qk = V k so (8) is satisfied if
Sk = V, [diag {À - p,k, ... , À - p,f} -1 - a~k2]Vt:
KKT CONDITION 2
From the previous condition we have
D«= dilag {\A-P,k,···,A-P,k
1 \ N}-1 -ak'J!k
2",,-2
Examining (9) we find two cases.
Case 1 dk > 0
dk > 0 implies P,k = 0 hence
dnk = ~
1 2 (n)-2
- ak 'h >0
and
Case 2 dk = 0
dk = 0 implies fJ,k = À - (0"2 (CPk)-2r1. Hence
À fJ,~+ (0"2(cp~)-2)-1
> (0"2 (cp~)-2rl
since /-Lk 2: o. Hence
and
d~ = [~ - 0"2 (cp~)-2] + = 0, "In s.t. d~ = 0
Combining both cases yields
KKT CONDITION 3
Note that À = 0 implies s~,n = 00. Clearly this violates the power constraint
(3). Hence À > O. Using (10) this implies
So any optimal solution must meet the total power constraint with equality.
At this point notice that the solution
satisfies all 3 KKT conditions and thus is optimal.
REFERENCES
[IJ T. Cover and J. Thomas, Elements of Information Theory. Wiley, 1991.
[2J A. Naguib, N. Seshadri, and A. Calderbank, "Increasing Data Rate over Wire-
less Channels," IEEE Signal Processing Mag., pp. 76-92, May 2000.
[3J G. Ginis and J. Cioffi, "Vectored Transmission for Digital Subscriber Line
Systems," IEEE J. Select. Areas Commun., vol. 20, pp. 1085-1104, June 2002.
[4J G. Taubock and W. Henkel, "MIMO Systems in the Subscriber-Line Network,"
in Proc. of the 5th Int. OFDM- Workshop, pp. 18.1-18.3,2000.
A Power Efficient Compound Modulation Scheme
for Addressing Multiple Users in the Downlink
Gerard J.M. Janssen
Wireless and Mobile Communications Group, Faculty EEMCS, Delft University
of Technology, The Netherlands. E-mail: g.janssen@its.tudelft.nl
Abstract
A method is presented to increase spectral efficiency in the downlink of a cellular system by
addressing multiple users simultaneously using a single compound QAM (C-QAM) signal. The
C-QAM modulation is based on stacking a number of M-PSK (M = 2,4) modulated signals
each intended for a different user. The optimum phase relations between the signals and the
required amplitudes for minimum transmit power, which are link gain dependent, are given.
The power penalty is compared to single user/channel cases using QAM schemes with the same
spectral efficiency. It is shown that the power penalty can be very small if users with sufficiently
different channel qualities are addressed.
1. INTRODUCTION
The vast increasing number of users in mobile communication systems and the
increasing demand for more capacity per user requires exploitation of the available
frequency spectrum as efficiently as possible. In future cellular systems, where
besides voice traffic more and more digital information will be transmitted, the
required capacity in the downlink (from the base station to the mobile) is expected
to be higher than for the uplink.
Simultaneous sharing of a single channel among multiple users in the uplink
has been investigated for narrowband M-PSK signals in [1], [2]. By narrowband
we refer to the fact that, unlike in CDMA, no bandwidth expanding signature
code is applied to separate the users. The downlink channel is substantially
different from the up link when serving multiple users, since the base station has
full contra I over the signal parameters: amplitude, phase and symbol timing. In
a broadcast scenario, multiple users receive the same signal, where the amount
of received information may depend on the channel quality, like in DVB. This
is obtained by applying a hierarchical modulation scheme, which allows users
to receive only high priority data in case of bad channel conditions or high and
low priority data when the channel is good, [3]. The information capacity of a
degraded broadcast channel, where independent data is transmitted to different
users, has been investigated in [4].
The capacity of a cellular system, expressed as the number of served users/cell,
is interference limited in stead of noise-limited. Therefore, increase of spectral
efficiency should go at a minimum increase of the transmit power. In this paper,
we present a compound QAM (C-QAM) modulation scheme, which allows simul-
taneous transmission of independent data to several users with the same signal.
The technique is based on stacking a number of M-PSK modulated signals, each
intended for a different user. The signal amplitudes and phases are optimized for
given link gains and interference level, in order to obtain a required symbol error
probability performance at each of the user locations with minimum transmit
power.
The system model and the method to construct the C-QAM signal are given in
Sections Il and Ill, respectively. In Section IV, the power penalty to obtain the
increased spectral efficiency of the C-QAM signal is determined and compared
with conventional schemes with the same spectral efficiency. Conclusions are
drawn in Section V.
Il. SYSTEM MODEL
We consider the downlink of a single cell where users receive information from
the base station (BS) as shown in Fig. 1. The link gain of the channel between
the BS and user i is indicated by Gi. The received signal at user location i can
be written as
Ti(t) = .;c:s(t) + ni(t) (1)
where s(t) is the transmitted signal; ni(t) represents the location dependent co-
channel interference received from other cells plus receiver noise, which is assumed
zero-mean Gaussian distributed with variance ar
Fig. l. Cell model.
The BS addresses K users simultaneously with a single signal which contains
independent data for each user. The signal send to each user corresponds to an
M-PSK modulation with M = 2L, L = 1,2, .... So the compound signal has a
bandwidth efficiency p = K log2 (M) = KL bits/a/Hz, which increases linearly
with the number of addressed users K. The equivalent lowpass of the transmitted
signal during the nth symbol can be written as:
J(
sn(t) = LAié(