LINEAR TRANSFORMATION FOR SYMMETRIC-KEY CIPHERS

Abstract: A method of generating a linear transformation matrix A for use in a symmetric-key cipher includes generating a binary [n,k,d] error-correcting code, where k < n < 2k, and d is the minimum distance of the binary error-correcting code. The code is represented by a generator matrix G ∈ Z2<kxn> in a standard form G = (Ik ‖ B), with B ∈ Z2<kx(n-k)>. The matrix B is extended with 2k-n columns such that a resulting matrix C is non-singular. The linear transformation matrix A is derived from matrix C. Preferably, the error correcting code is based on an XBCH code.

Description: Linear transformation for symmetric -key ciphers The invention relates to a method of generating a linear transformation for use in a symmetric-key cipher based on a binary error-correcting code. The application of cryptography in the area of copyright protection of digital audio and/or video is becoming increasingly important. These applications include contents encryption/decryption and access management functions. For such applications block ciphers can be used. A well-known family of block ciphers are Feistel ciphers. In a Feistel cipher, the input data block is processed in a number of rounds. In each round, the two sub-blocks (halves) of the block are operated on differently. A first sub-block is combined with the output of a round function; the second sub-block is left unmodified. At the end of the round, the two sub-blocks are swapped, ensuring that the unmodified sub-block will be processed in the next round. The round function takes as input the second sub-block and a round key. Normally, the round function combines the round key with the second sub-block, for instance using an XOR operation. Additionally, the round function performs a non-linear operation and a linear transformation on the second sub-block. Typically, the non-linear transformation consists of a substitution box (S-box) layer, consisting of a number of S-boxes operating in parallel on smaller sub-blocks of, for instance 4 to 8 bits. After the S-box layer, a linear operation ensures that a proper diffusion occurs so that bit changes caused by the individual S-boxes are propagated over as many as possible S-boxes in the next round(s). A well-known example of a Feistel cipher is DES, consisting of sixteen rounds. In each round, first the 32 bits of the right half of the data are expanded to 48 bits. Next, an 48 bit round key, which is computed from a 56 bit DES key with a key scheduling algorithm, is bit-wise added modulo two to these 48 bits. Then a layer of S-boxes performs a non-linear operation on the data. In DES, the S-box layer consist of eight six-to-four bit S- boxes in parallel, i.e. each of the S-boxes converts a 6-bit input block into a 4-bit output block using one fixed mapping table per S-box. The output of the S-box layer is a 32 bit data block. The linear transformation, which is performed on this 32 bit data block, is a bit- permutation, which ensures that bit changes caused by an S-box are propagated over many other ones in the following round(s). A drawback of DES is its small key size of 56 bits, which is considered to be insufficient nowadays for offering a high level of security. However, an exhaustive key search can be avoided by using a longer key combined with a different key scheduling algorithm for computing the sixteen 48-bit round keys. The two most powerful attacks on DES published in the open literature are differential and linear cryptanalysis, which are general attacks that can be applied to a wide range of block ciphers. It has been shown that DES can not be strengthened much against these attacks by modifying the key length and/or the key-scheduling algorithm. However, changes in the round function of the algorithm can influence its strength against these attacks considerably. For the linear transformation, it is desired that the transformation has good diffusion properties. Recently, S. Vaudenay proposed to use linear error-correcting codes for constructing linear transformations, a description can be found in "On the Need for Multi- Permutations: Cryptanalysis of MD4 and SAFER", Fast Software Encryption (2 nd ), LNCS 1008, Springer, 1995, pp. 286-297. The diffusion properties of the linear transformation are associated with the minimum Hamming distance of the corresponding error-correcting code; the higher this distance, the better the diffusion properties of the associated linear transformation matrix. Vaudenay proposes the use of Maximum Distance Separable (MDS) codes over finite fields, which reach the so-called Singleton bound and therefore provide optimal diffusion. However, this construction has the disadvantage that the resulting linear transformation contains additional mathematical structure, e.g. linearity over the finite field (and all its sub-fields) that was used for the construction, which could be exploited in cryptanalysis. It is an object of the invention to provide an invertible linear transformation, represented by a non-singular binary matrix, for use in symmetric-key ciphers with guaranteed optimal diffusion characteristics on bit-level based on an optimal binary linear error-correcting code. This transformation has the advantage over the MDS construction that it is more irregular, in the sense that additional mathematical structure of the resulting linear transformation which could be exploited in cryptanalysis, is avoided. To meet the object of the invention, a matrix derived from an error-correcting code is extended with a number of columns such that the length of the code equals twice the dimension and the resulting matrix, which can be used as the basis for the linear transformation, is non-singular. This avoids attacks based on the non-uniformity of the round function. As defined in the measure of the dependent claim 2, the new columns can be (pseudo-)randomly generated in order to find suitable columns. As defined in the measure of the dependent claim 3, the matrix C is permuted to find a linear transformation matrix with the associated linear error-correcting code having a predetermined multi-bit weight. As defined in the measure of the dependent claim 4, this multi-bit weight ensures proper diffusion over the S-boxes of the cipher. For instance, for an S-box layer consisting of a number of S-boxes operating in parallel, in which each S-box provides an m-bit output, it is relevant to look at the diffusion of m-bit parts of the words in the associated binary error-correcting code, which can be expressed in the minimum m-bit weight over all non-zero codewords. These and other aspects of the invention will be apparent from and elucidated with reference to the embodiments shown in the drawings. Figure 1 shows a block diagram of a cryptographic system; Figure 2 shows one round of a cipher incorporating the linear transformation; Figure 3 illustrates the steps of the round function; Figure 4 shows a preferred arrangement of an S-box construction; and Figure 5 shows the steps of generating the linear transformation matrix. For the purpose of explaining the invention, the cryptographic system, wherein the linear transformation is used, is described as a block cipher in the Electronic Codebook (ECB) mode. Persons skilled in the art will be able to use the system in other modes as well. These include the standard FIPS modes of operation for DES, i.e. the Cipher Block Chaining (CBC), the Cipher Feedback (CFB) and the Output Feedback (OFB) mode of operation. In addition, the system can also be used in well-known constructions for pseudo-random number generators, Message Authentication Codes (MACs) and Manipulation Detection Codes (MDCs). Figure 1 shows a block diagram of an exemplary cryptographic apparatus 100. The cryptographic apparatus 100 comprises an input 110 for obtaining a digital input block X. The digital input block X may be any suitable size. The apparatus further comprises a cryptographic processor 120 for converting the digital input block X into a digital output block E(X). Advantageously, the digital output block has substantially equal length as the digital input block. The apparatus 100 comprises an output 130 for outputting the digital output block. In a preferred embodiment, the cryptographic processor converts the digital input block into the digital output block by merging the digital input block with key bits K, producing the output block E(X, K) which non-linearly depends on the input block X and the key K. To obtain the key (or an initial key feeding a key scheduler), the cryptographic apparatus comprises a second input 140. It will be appreciated that the cryptographic appar- atus may be implemented using a conventional computer, such as a PC, or using a dedicated encryption/decryption device. The digital input block may be obtained in various ways, such as via a communication network, from a data storage medium, such as a harddisk or floppy disk, or directly being entered by a user. Similarly, the digital output block may be output in various ways, such as via a communication network, stored on a data storage medium, or displayed to a user. Preferably, secure means are used to this end. The cryptographic processor may be a conventional processor, such as for instance used in personal computers, but may also be a dedicated cryptographic processor. The processor is usually operated under control of a suitable program (firmware) to perform the steps of the algorithm according to the invention. This computer program product is normally loaded from a background storage, such as a harddisk or ROM. The computer program product can be stored on the background storage after having been distributed on a storage medium, like a CD-ROM, or via a network, like the public Internet. Sensitive information, like an encryption key, is preferably distributed and stored in a secure way. Techniques for doing so are generally known and not described further. The cryptographic apparatus may, in part or in whole, be implemented on a smart-card. The linear transformation according to the invention performed by the cryptographic processor will be described in the form of a round function /in a block cipher as an exemplary application. In itself, persons skilled in the art will be able to use the linear transformation in other cryptographic systems as well, and in other ciphers than the one described in detail below. Notations and definitions The following notation is used in the description of the exemplary algorithm. Let Z 2 n be the set of all binary vectors of length n (n > 1) with the addition Θ : Z 2 n x Z 2 n — > Z 2 n , which is defined as a coordinate-wise addition modulo 2 (also referred to as an exclusive-or, or XOR). For example, (1,0,1,0) and (0,1,1,0) are elements of Z 2 4 and (1,0,1,0) ® (0,1,1,0) = (1,1,0,0). Moreover, the scalar multiplication •: Z 2 x Z 2 n - Z 2 n is defined as 1 • x = x and 0 « x = (0,0, ... ,0) e Z 2 n for all x e Z 2 n . If n is even and x e Z 2 n , then x (L) e Z 2 n/2 and x (R) e Z^ 2 are defined as the left and the right half of x respectively. For example, if x = (1,0,1,1,0,0,1,0) e Z 2 8 , then x (L) = (1,0,1,1) e Z 2 4 and x (R) = (0,0,1,0) e Z 2 4 . The symbol || is used to denote a concatenation of vectors, e.g. x = (x (L) || x (R) ). The elements (also called bits) of a vector x e Z 2 n are numbered from zero to n-1 from the left to the right, i.e. x =: (xo,Xi,x 2 , ... ,x n -ι). The Hamming distance dπ : Z 2 n x Z 2 n — » Z between two elements x 6 Z 2 n and y e Z 2 n is defined as the number of coordinates in which the two vectors differ, i.e. dκ(x,y) = #{ Xi ≠ Yi I i = 0,1, ... ,n-l }. The Hamming weight W H : Z 2 n — > Z of an element x e Z 2 n is defined as the number of non-zero coordinates, i.e. W H (X) = #{ i ≠ 0 | i = 0,1, ... ,n-l }. The set of k x m matrices (k,m > 1) over Z 2 is denoted by Z 2 kxm . The k x k identity matrix over Z 2 is denoted by I k . The symbol || is also used to denote a concatenation of matrices with an equal number of rows, e.g. if A e Z 2 4x6 and B e Z 2 4x8 then C := (A || B) A binary error-correcting code C of (block) length n is a linear subspace of Z 2 n . The elements of this subspace are referred to as codewords. If the dimension of the subspace is k then C is called an [n,k] code. Such a code can be represented by a generator matrix G e Z 2 kXn , for which the rows form a basis for C, i.e. C = {mG | 6 Z 2 k }. The minimum distance d of the code is defined as the minimum over all distances between any two distinct codewords, i.e. d = min{dH(x,y) | x,y e C and x ≠ y}. An [n,k] code with minimum Hamming distance d is also referred to as an [n,k,d] code. Note that dκ(x,y) = W H (X Θ y), which implies that the minimum Hamming distance of a linear code equals the minimum Hamming weight over all non-zero codewords. Block cipher structure The exemplary block cipher is a Feistel cipher and consists of sixteen rounds (like DES). The block length equals 64 bits and the key length equals 128 bits. Encryption in Electronic Codebook (ECB) mode of a plaintext X e Z 2 64 into its ciphertext C e Z 2 64 under the key Ke Z 2 128 is denoted by C = E(K,X). The round function is denoted by/and is a mapping from Z 2 40 x Z 2 32 to Z 2 32 . This round function incorporates the linear transformation of the invention and will be described in more detail below. The first input argument of the round function is the round key K; e Z 2 40 (where i indicates the round number, i = 1, 2, ..., 16). These round keys are computed from the 128 bit key K with a so-called key scheduling algorithm. Any suitable key scheduling algorithm may be used and is not described in detail. The second input argument is the right half of the intermediate result after round i. This intermediate result is denoted by Xj e Z 2 64 (i=0,l, ... ,16) with X =: (X 0 (R) || X 0 (L) ). With this notation the computation of the ciphertext C e Z 2 64 consists of the following steps, as illustrated in Figure 2: 1. Compute X R) = X ( ) ®f(Ki, X M (R) ) and set Xi (L) = X M (R) for i = 1,2, ... ,15. 2. Compute X 16 (L) = X 15 (L) ®/(K 16 , X 15 (R) ) and set X 16 (R) = X 15 (R) . The ciphertext is defined as C := (X 16 (L) || X 16 (R) ) Fig. 2A shows the cipher structure used for the first fifteen rounds (i = 1, 2, ..., 15). Fig. 2B shows the last, sixteenth round. Note the irregular swap in Fig.2B compared to the previous rounds of Fig.2A. This is usually done in Feistel structures, because in this case the decryption algorithm (i.e. computing X = E _1 (K,C)) is the same as the encryption algorithm (with the round keys in reverse order). It has no meaning in a cryptographic sense. Round function Fig. 3 shows an overall block diagram of a preferred embodiment of the round function/ First a part of the round key, of for instance 32 bits, is added to the data bits in step 310. Next, in step 320, the S-boxes perform a non-linear substitution, preferably providing an optimal (local) resistance against differential and linear cryptanalysis. In addition, preferably the non-trivial (local) characteristics with a predetermined maximum probability are made (round) key dependent, as described below in more detail. Finally, in step 330 a linear transformation is used to provide a high diffusion over multiple rounds. The method of generating such a linear transformation from an error-correcting code will be described in more detail below. The Feistel structure puts no restrictions on the surjectivity of the round function. However, preferably the round function is bijective for every choice for the fixed (round) key. This avoids attacks based on the non-uniformity of the round function. Figure 4 provides more details of a preferred arrangement incorporating the S- .in "x " boxes. In this exemplary system the round function/is a mapping from Z 2 x Z 2 to Z 2 . The first input argument is the round key K; e Z 2 40 , the second one the right half of the intermediate result X M . The output is denoted byf(K X\-ι m ) e Z 2 32 . In this figure, ; (1) G Z 2 32 and Ki (2) e Z 2 8 are defined as Kj =: (Ki (1) || K ; (2) ). In step 310, the key addition takes place, followed in step 320 by a key dependent Substitution box (S-box) layer. In this example, the S-box layer consists of eight smaller S-boxes (S 0 , Si, S 2 , ... , S ), each operating on 1/8 of the data block. The S-box transformation is a mapping from Z 2 8 x Z 2 32 to Z 2 32 , the first input argument in round i is the round key Ki (2) , the second one the result of the key addition, i.e. Xi_ι (R) Θ K; (1) . The 32 bit output of the S-box transformation is denoted by S(K; (2) , ® K; (1) ). A description of this mapping will be given below. Finally, in step 330 the linear transformation from Z 2 32 to Z 2 32 is applied. The input is S(K; (2) , X;.j (R) ® Kj (1) ), its output is denoted by L(S(K; (2) , Xn (R) ® Kι (1) )). With this notation the function/is given by: fiK { , Xi.ι (R) ) = L(S(K ; (2) , Xn (R) ® Ki (1) )). S-boxes In principle any suitable S-box layer may be used in the block cipher. In a preferred embodiment described here, each S-box operates on a 4-bit sub-block. It will be appreciated that also sub-blocks of other sizes can be used. Preferably, for each S-box a set of at least two predetermined permutations is used, where each time before using the S-box one of these permutations is selected in a (pseudo-)random manner. Preferably, the round key is used for this selection. In a preferred embodiment, each S-box is associated with two permutations, where one predetermined bit of the round key is used to select which of both permutations is used. Using relatively small S-boxes, such as ones operating on 4-bit sub- blocks, will normally require a row of parallel S-boxes, each being associated with a respective set of at least two non-linear permutations. Figure 4 illustrates a preferred embodiment of a block cipher operating on 32- bit blocks and using 4-bit S-boxes, resulting in eight S-boxes used in parallel, each of which consists of two permutations. For this embodiment the following notation is used. Let the bits in the first input argument Kι (2) of the S-box transformation be denoted by k j (l) (j = 0,1, ...,7), i.e. Kj (2) =: (ko (i) , kι (i) , ... , k 7 (i) ). The vectors N j (i) e Z 2 4 (j = 0,1, .. ,7) are defined as X H (R) ® Ki (1) =: (N 0 (i) || N ϊ (l) || ... || N 7 (l) ). The S-box mapping consists of a concatenation of eight mappings S j : Z 2 x Z 2 4 → Z 2 4 (j = 0,1,..., 7). The first input argument is the key bit k 0 , which selects which of the two permutations for S j is used. The second input argument is N j W , which is the input for the selected 4-bit permutation for S j . The corresponding 4-bit output of this permutation is also the output of the S-box, and is denoted by S j (kj W , Nj (l) ). With this notation the function S is given by: S(K ; (2) , »« ® Ki (1) ) = ( So(k 0 (i) , N 0 (i) ) || S ϊ Od®, Nι (i) ) || ... || S 7 (k 7 (i) , N 7 (i) ) ). Any suitable S-box layer may be used. Preferably, S-boxes according to the co-pending patent application PHNL000365 (EP ....) are used. Linear transformation matrix After the S-box substitution function, a linear transformation L is performed. In the preferred embodiment with 32-bit sub-blocks, L: Z 2 32 — > Z 2 32 . Using the described preferred S-box construction, the input for this linear transformation is the vector S(Kι (2) , Xi.i (R) ® Ki (1) ). The coordinates of this vector will be denoted by y j (i) (j = 0,1, ...,31), i.e. S(Kι (2) , Xi.i (R) ® Ki (1) ) =: (y 0 (i) , yι ω , ... , y 31 (i) ). The mapping L can now be described as a vector-matrix multiplication, the matrix is denoted by A e Z 2 32x32 : L(S(Ki (2) , X, R) ® Ki (1) )) = L((y 0 (i) , Yl (i) , ... , y 31 (i) )) = (y 0 (i) , yι (i) , ... , y 31 i) ) A. Constructing the linear transformation matrix The linear transformation L, defined by L(x) = xA, is constructed to meet the following design criteria: 1. linearity over Z 2 . 2. invertibility, i.e. the matrix A is non-singular over Z 2 . 3. high diffusion properties. The construction of the function L is based on binary linear error-correcting codes. The mapping L is identified with a generator matrix G = ( I k || A ) 6 Z^ 2 * for a binary error-correcting code. Note that for all codewords ( x || xA ) e Z 2 2 * with x e Z the left half x corresponds to the input for L, while the right half xA corresponds to the output. Note that design criteria (i) is satisfied for all binary error-correcting codes, while (ii) is satisfied if and only if A is non-singular over Z 2 . Notice also that criteria (iii) can be expressed in terms of the minimum Hamming weight of the codewords; the higher this minimum distance, the better the diffusion properties. The construction of A will be illustrated for 32 bit blocks (i.e. k = 32 and A 6 Z 2 52x32 ) and uses a binary extended Bose-Chaudhuri-Hocquenghem (XBCH) code as a starting point for the construction of a [64,32] code with minimum Hamming distance equal to 12. It is well-known that such a code is optimal, i.e. any binary [64,32] code has minimum distance smaller or equal to 12. This implies that the minimum Hamming weight of any nonzero codeword is at least 12, since the code is linear. Note that this means that the diffusion properties of the mapping L are optimal at bit-level, in the sense that (small) changes in the input of t bits (t > 0) imply a change of at least max{0,12 - 1} bits in the output. The generator matrix for the binary [64,32,12] code containing the matrix A is constructed as follows, as illustrated in figure 5: (i) In step 510 a generator matrix G' ' in standard form (i.e. G" = ( I 32 1| B ) with B Z 2 ) is taken that corresponds to the binary linear error-correcting code. Such a generator matrix G" is preferably constructed in the following way, starting from a Bose- Chaudhuri-Hocquenghem (BCH) code: (a) In step 512, a generator matrix G e Z 2 36x63 is constructed for the binary [63,36,11] BCH code with generator polynomial g(x) := x 27 + x 22 + x 21 + x 19 + x 18 + x 17 + x 15 + x 8 + x 4 + x + 1, where row j (j = 0,1, ... ,35) of G corresponds to the polynomial x j g(x). More precisely, if g(x) =: ∑i=o,ι, ... ,n iX 1 with gi e Z 2 , the first row of the matrix is given by (g 0 , gi, g 2 , ... ,g 27 ,0,0, ... ,0) e Z 2 63 . Row j of the generator matrix (j = 1,2, ... ,35) is given by a cyclic shift to the right of this first row over j positions. (b) In step 514, this code is shortened to a [59,32,11] code by deleting the last four rows and columns of G, (c) In step 518, this shortened code is extended to a [60,32,12] code by adding a parity check symbol to each codeword. Note that by adding a parity check, the addition of one column results in an increase of the minimum distance. The 32x60 generator matrix for this [60,32, 12] code is denoted by G' , (d) In step 520, a Gauss elimination is performed on G' to obtain a generator matrix G' ' in standard form, i.e. G" = ( I 32 || B ) with B e Z 2 32x28 . Note that this is a generator matrix for a shortened [60, 32, 12] XBCH code. (ii) Extend B with four columns such that the resulting matrix C ε Z 2 32x32 is non-singular over Z 2 . Preferably the four columns are (pseudo-)randomly selected: (a) create four columns each with 32 (pseudo-)randomly selected binary elements, (b) create a test matrix by extending B with the four new columns (in itself the column position of the newly added columns is not important) (c) check whether the test matrix is invertible. For this test any suitable method may be used, e.g. a method based on Gauss elimination. (d) if so, stop the process (a matrix has been found), otherwise restart by generating at least one new column. It will be appreciated that instead of using a random creation process the elements of the four columns may also be generated in any other suitable way. Due to the construction of the round function with the multi-bit S-boxes, also good diffusion properties on this multi-bit level are desirable. For four-bit S-boxes, this can be expressed as follows (variations for other number of bits fall well within the skills of persons skilled in the art). If the 4-bit vectors n; (i = 0,1, ... ,7) of a codeword c e Z 2 32 are defined as c =:(n 0 |j nj || ... || n ) then the nibble weight of c is defined as NW(c) := #{ i || n; ≠ (0,0,0,0), i = 0,1, ... ,7)}. The diffusion properties on nibble-level can be expressed in terms of the minimum nibble weight over all non-zero codewords; the higher this minimum weight, the better the diffusion properties on nibble-level. To achieve a high diffusion at multi-bit level (in the example, at nibble level), in step 530, two permutation matrices Pι,P 2 e Z 2 32x32 are selected such that all codewords in the [64,32,12] code with generator matrix ( 1 1| Pi C P 2 ) have a high nibble weight. The finally found matrix A := Pi C P 2 is used for the linear transformation. In a preferred embodiment, the permutation matrices Pi and P are (pseudo-) randomly generated. It can be verified that the minimum nibble weight of the code generated by ( 1 1| A ) equals seven. The rows of a linear transformation matrix A generated in this way are given in the following table (ao is the first row, ai the second, ... , a 3 ι the last). Note that the vector- matrix product corresponds to an XOR of the rows a for which y k (l) = 1 (k = 0,1, ...,31). Comparison with MDS code The use of linear transformations based on an MDS code in symmetric-key ciphers is known from S. Vaudenay, "On the Need for Multi -Permutations: Cryptanalysis of MD4 and SAFER", Fast Software Encryption (2 n n e α k), LNCS 1008, Springer, 1995, pp. 286 297. The following table compares the nibble weight distribution of the construction used in XBCH based matrix according to the invention to the (nibble) weight distribution of the MDS code. The entries represent the number of non-zero codewords with the given nibble weight. As can be seen from this table, the nibble weight distributions of the two constructions are very similar. The minimum nibble weight of the XBCH construction is only two less than the minimum weight of the MDS construction, which can be shown to be optimal with respect this criterion. However, the MDS construction has the disadvantage that it contains additional mathematical structure, such as the linearity over (sub-fields of) Fι 6 of the associated linear transformation, which could be exploited in the cryptanalysis of the block cipher. E.g. one could describe the S-boxes (and consequently the complete block cipher) by mappings from Fie— > Fι 6 . Moreover, the construction described in this document guarantees optimal diffusion on bit-level.

Claims: CLAIMS: 1. A method of generating a linear transformation matrix A for use in a symmetric-key cipher, the method including: generating a binary [n,k,d] error-correcting code, represented by a generator matrix G e Z 2 kxn in a standard form G = (I k || B), with B e Z 2 kx(n"k) , where k < n < 2k, and d is the minimum distance of the binary error-correcting code; extending matrix B with 2k-n columns such that a resulting matrix C is non- singular, and deriving matrix A from matrix C. 2. A method as claimed in claim 1, wherein the step of extending matrix B with 2k-n columns includes: in an iterative manner: (pseudo-)randomly generating 2k-n columns, each with k binary elements; forming a test matrix consisting of the n-k columns of B and the 2k-n generated columns; and checking whether the test matrix is non-singular, until a non-singular test matrix has been found; and using the found test matrix as matrix C. 3. A method as claimed in claim 1, wherein the step of deriving matrix A from matrix C includes: determining two permutation matrices Pι,P 2 e Z 2 k k such that all codewords in an [2k,k,d] error-correcting code, represented by the generator matrix ( 1 1| Pi C P 2 ), have a predetermined multi-bit weight; and - using Pi C P 2 as matrix A. 4. A method as claimed in claim 3, wherein the cipher includes a round function with an S-box layer with S-boxes operating on m-bit sub-blocks, and the minimum predetermined multi-bit weight over all non-zero codewords equals a predetermined m-bit weight. 5. A method as claimed in claim 3, wherein the step of determining the two permutation matrices Pi and P 2 includes iteratively generating the matrices in a (pseudo-) random manner. 6 A method as claimed in claim 1 , wherein the cipher includes a round function operating on 32-bit blocks and wherein the step of generating a [n,k,d] error-correcting code includes: generating a binary extended Bose-Chaudhuri-Hocquenghem (XBCH) [64, 36, 12] code; and shortening this code to a [60, 32, 12] shortened XBCH code by deleting four rows. 7. A computer program product, wherein the program product is operative to cause a processor to perform the method of claim 1. 8. A system for cryptographically converting an input data block into an output data block; the data blocks comprising n data bits; the system including: an input for receiving the input data block; a storage for storing a linear transformation matrix A, generated according to the method of claim 1, a cryptographic processor performing a linear transformation on the input data block or a derivative of the input data block using the linear transformation matrix A; and an output for outputting the processed input data block..

Inventors: ROELSE PETRUS L A, ROELSE, PETRUS, L., A.
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 2001
Main classification: H04L9
IPC codes: G09C1, H04L9