Background of the Invention
The invention relates to a system for encrypting and decrypting digital data.
A known system uses the so-called cipher block chaining (CBC) method. Although an encryption of digital data can be obtained by this known CBC method, which encryption can hardly be decrypted by unauthorized persons, the known system has some disadvantages. These disadvantages are present in particular in applications in the field of digital television, wherein a minor number of senders and a very high number of receivers are involved and high processing speeds are required in view of the large amount of digital data to be transmitted. In using the usual CBC method, a buffer storage is required in the receiver, in which four block lengths of digital data can be stored. Such a large buffer storage increases the costs of the receiver which is a major disadvantage in systems with a high number of receivers. Further, a header with a fixed bit pattern is generally provided at the beginning of each packet of digital data. As in the known CBC method, the first block is combined with a fixed initial vector, this could result in a recognizable bit pattern in the encrypted data. Such a recognizable bit pattern provides a potential attack for decrypting the encrypted data by unauthorized persons.
Summary of the Invention
The invention aims to provide a system of the above-mentioned type wherein the disadvantages of the known system are obviated in an effective manner and which is particularly suitable for application in the field of digital television.
In this manner a system is obtained wherein at the receiver side a buffer storage is required of two times the block length in bits so that the costs are decreased. By reversing the sequence of the blocks, it is further obtained that the initial vector is combined with variable data, whereby the header part of the packet as last block is combined with a variable bit pattern, so that it is guaranteed that a fixed pattern cannot be found in the encrypted blocks. The method used in the system according to the invention can be indicated as reverse cipher block chaining or RCBC method.
Brief Description of the Drawings
The invention will be further explained by reference to the drawings in which an embodiment of the system of the invention is schematically shown.
FIG. 1 schematically shows the RCBC method used in the system of the invention.
FIG. 2 schematically shows the operation of the encrypting device of the invention by means of a block diagram.
FIG. 3 schematically shows the operation of the decryption device of the invention by means of a block diagram.
Detailed Description of the Preferred Embodiments
Referring to FIG. 1 there is very schematically shown an embodiment of the encryption and decryption method used in the system of the invention. In the embodiment shown it is assumed that packets of data are divided in four blocks A, B, C and D each having a length of 64 bits. At the sender side the sequence of the blocks A-D is reversed in an encryption device not further shown, so that the blocks D, C, B and A are encrypted successively in time. In the first encryption step block D is subjected to an exclusive- or operation or XOR operation indicated by the symbol +. In the first step, the XOR operation is carried out with an initial vector IV also having a length of 64 bits. As shown in FIG. 1, a data block D* is obtained in this manner, which is thereafter subjected to an encryption operation by means of an encryption algorithm E which will be further explained hereafter. Thereby the encrypted data or cypher text block D' is finally obtained.
In the second step, the data block C and the encrypted data block D' are subjected to a XOR operation providing an encoded data block C* which is thereafter encrypted by means of the encryption algorithm E into an encrypted data block C'. In the next steps the encrypted data blocks B' and A' are obtained in a corresponding manner.
Before transferring the data, the sequence is again reversed, so that the encrypted data blocks A', B', C' and D' are successively transferred.
At the receiver side, the received encrypted data block A' is subjected in the first step to a decryption operation by means of a decryption algorithm D, so that the encoded data block A* is obtained. This encoded data block A* is thereafter subjected to a XOR operation with the second encrypted data block B' received by now, so that the original data block or plain text block A is obtained.
As schematically shown, the next original data blocks B and C are obtained in a corresponding manner, whereafter the last data block D is obtained by a XOR operation of the encoded data block D* and the initial vector IV.
In a more general way it can be stated that the following operation is carried out at the sender side.
The digital data is divided into packets of N blocks X(1), X(2) . . . X(N), wherein each block has 2.sup.m bits. The sequence of the blocks is reversed before the encryption operation into X(N), X(N-1) . . . X(1). This sequence of blocks is encrypted by the encryption algorithm E in the following manner:
The sequence of these encrypted blocks is again reversed, so that the sequence Y(N), Y(N-1) . . . Y(1) is transferred to the receiver.
At the receiver side the original data blocks are obtained by means of the decryption algorithm D as follows:
The RCBC method described shows the significant advantage that a buffer storage at the receiver is required for storing two data blocks only. Compared to known systems the required storage at the receiver is halved. This is obtained at the expense of a larger storage at the sender, as the sequence of the data blocks within each packet has to be reversed at the sender. Thereby the system of the invention is suitable in particular for applications in systems wherein only one or some senders are provided and a large number of receivers, as for example in digital television broadcast systems. Further, the system described shows the advantage that during encryption the initial vector is combined with a variable data block whereas the last encrypted data block generally comprising a header with a fixed pattern is thereby combined with a variable encrypted data block. Thereby it is avoided that a fixed pattern caused by the header part of each packet could be recognized in the encrypted data.
Finally, the system of the invention has the advantage that the pipeline delay at the receiver side, i.e. the delay time until a first decrypted data block appears, is restricted to one block length in time, whereas this pipeline delay is three block lengths in time for the known CBC method.
The encryption algorithm E and the decryption algorithm D used in the system of the invention will be further explained hereafter by reference to FIGS. 2 and 3.
As shown in FIG. 2, the encryption device comprises a shift register 8 having eight memory elements 0-7 each having 8 bits. It is also possible to have a different number of bits for each memory element. A XOR element is provided between the memory elements 2 and 3, 5 and 6, 0 and 7, respectively, said XOR element being indicated by + and having a XOR gate for each bit. When an output or input is mentioned hereinafter, actually a number of output or input lines corresponding with the number of bits of the memory elements is indicated. The output of memory element 0 of the shift register 8 is connected to the XOR elements preceding the memory elements 2 and 7. The output of memory element 7 is connected to a XOR element 10 to which a cycling key register 11 is also connected.
This key register 11 also comprises eight memory elements 0-7 each having 8 bits. A key of 64 bits is stored in this key register. The output of XOR element 10 is connected to a look-up table 12 of 256 elements each having 8 bits, which look-up table is also referred to as substitution module or S-box. The output of the S-box 12 is applied to the XOR element ahead of memory element 7 of the shift register 8 and after going through a permutation element 13 to the XOR element between memory elements 5 and 6 of the shift register 8.
The cycling key register 11 is synchronously stepped with the shift register 8. In order to encrypt a data block, the data block is loaded into the shift register, whereafter the data is shifted one memory element to the right after each step, wherein the contents of the memory element 0 is shifted to the memory element 7. After eight steps the data block is shifted one round and the key in the key register 11 is advanced one step as indicated schematically by a dashed line 14. Thereafter the encryption process is repeated six times. The shifting of the key in the key register 11 is shown in a table in FIG. 2, wherein each cycle of eight steps is indicated by R1, R2 . . . R7. Of course it is also possible to repeat the encryption process a higher or lower number of times.
In contrast to known encryption algorithms, like the DES algorithm, a single relatively large S-box is used in the described encryption device instead of a plurality of small S-box elements. The use of one large S-box shows the advantage that a very strong non-linearity is introduced in one step. The byte of memory element 7 is directly combined with a byte of the key and the operation provided by the S-box provides a strong non-linearity introduced in memory element 7 and after permutation through the permutation element 13 in memory element 5. As the byte is modified in a non-linear manner at the output of the S-box 12 and is introduced into the shift register 8 at two locations, a rapid diffusion of this non-linearity is obtained. Thereby a better encryption is obtained then would be possible by means of a plurality of small S-box elements. The use of the XOR element between the memory elements 2 and 3 of the shift register 8 shows the advantage that the number of possible keys at a certain bit length of the key is doubled as compared to the known DES algorithm because there is no connection anymore between the complement of a data block with the complement of the key and the complement of the encrypted data block.
As shown in FIG. 3, decryption is obtained by the reversed operation.
It is noted that the described RCBC method of the invention can also be applied in such a manner that the sequence of the blocks of each packet is not reversed before the encryption. In this case the blocks will be received at the receiver in reversed sequence X(N), X(N-1l) . . . X(1). In this case the blocks can be reversed at the receiver.
The invention is not restricted to the above-described embodiment which can be varied in a number of ways within the scope of the invention.