|Publication number||US6314186 B1|
|Application number||US 09/095,845|
|Publication date||Nov 6, 2001|
|Filing date||Jun 11, 1998|
|Priority date||Jun 23, 1997|
|Also published as||DE19827904A1, DE19827904C2|
|Publication number||09095845, 095845, US 6314186 B1, US 6314186B1, US-B1-6314186, US6314186 B1, US6314186B1|
|Inventors||Chang-hyi Lee, Young-Tae Cha|
|Original Assignee||Samsung Electronics Co., Ltd.|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (4), Non-Patent Citations (7), Referenced by (45), Classifications (10), Legal Events (4)|
|External Links: USPTO, USPTO Assignment, Espacenet|
Korean Application 1997-26558, filed Jun. 23, 1997 upon which a claim for priority is based, is herein incorporated by reference.
The invention relates to a data encryption method, and to the fast block cipher algorithm that is secure against differential cryptanalysis, linear cryptanalysis, and higher-order differential cryptanalysis. More specifically, it can be embodied easily and executed rapidly in comparison with the conventional block cipher algorithms.
Conventional cipher algorithms are designed intuitively or through the practical experience of a designer. Therefore, many on-going field-tests may be needed to ensure the security of the cipher algorithm.
A common block cipher algorithm is based on DES, which is adopted as the United States Data Processing Standard 46 (FIPS PUB46) by the United States Standardization Office. DES is a block cipher algorithm which encrypts data in 64-bit blocks.
A 64-bit block of plain text serves as an input to one end of the algorithm and a 64-bit block of cipher text is output from the other end. DES is, therefore, a symmetric algorithm.
The same algorithm and key are used for both encryption and decryption, except for minor differences in the key schedule. The key length is 56-bits. However, the key is usually expressed as a 64-bit number, where 8-bits are used for parity checking and are therefore, ignored during encryption/decryption. Also the parity bits are the least significant bits of the key bytes. The key can be any 56-bit number and can be changed at any time. Several numbers are considered weak keys, but these weak keys are easily avoided, since all security rests within the key.
At its simplest level, an algorithm is nothing more than a combination of the two basic techniques of encryption, that is, confusion and diffusion. The fundamental building block of DES is a single combination of these techniques, i.e., a substitution followed by a permutation in the text, based on the key, commonly referred to as a round.
DES has 16 rounds. It applies the same combination of techniques on plain text block 16 times. The DES algorithm uses only standard arithmetic and logical operations on a maximum of 64-bits, thus it was easily implemented in late 1970s hardware technology. The repetitive nature of the algorithm made it ideal for use on a special purpose chip. Initial software implementations were clumsy; however, current implementations have improved.
DES operates on a 64-bit block of plain text. After an initial permutation, the block is broken into a right half and a left half, each 32-bits long. Then, there are 16 rounds of identical operations, called function F, in which the data is combined with the key. After the sixteenth round, the right and left halves are joined, and a final permutation, the inverse of the initial permutation, completes the algorithm.
In each round, the key bits are shifted, and then 48-bits are selected from the 56-bits of the key. The right half of the data is expanded to 48-bits via an expansion permutation, combined with 48-bits of a shifted and permuted key via an XOR, sent through 8 S-boxes producing new 32-bits, and permuted again. These four operations make up the round function F. The output of function F is then combined with the left half via another XOR. The results of these operations become the new right half; and the old right half becomes the new left half. The operations are repeated 16 times, thereby making 16 rounds of DES.
Based on differential cryptanalysis, linear cryptanalysis and higher-order differential cryptanalysis, DES is attackable by using 247 chosen cipher texts via differential cryptanalysis and by using 243 known cipher texts via linear cryptanalysis.
Many cipher algorithms have been proposed for handling the above cryptanalysis, and one comes to think that the encryption algorithm that is resistant against the above attacks (differential and linear) will be a secure one. For additional security, a method has been developed to construct an encryption algorithm by the theoretical and logical proofs of the algorithm's resistance against differential and linear cryptanalysis. However such an approach is very difficult.
The first attempt to solve these problems was the MISTY algorithm of Japan. In the MISTY algorithm, S-boxes consisting of 7-bits or 9-bits have simple algebraic form. A disadvantage of the MISTY algorithm is that an implementation of it requires a complicated recursive structure.
It is an object of the present invention to provide a rapid block cipher algorithm to address the problem which ensures its security against the differential cryptanalysis and linear cryptanalysis attacks, and moreover against the higher-order differential cryptanalysis.
The present invention, herein referred to as SNAKE, has a round function differing from the conventional block cipher algorithms. The round function of SNAKE has a very simple structure which has a basic logical operation (exclusive OR-operator), and an 8-bit rotating operation (except for the S-boxes which are required to have high non-linearity for their security), in order to simplify the embodiment. SNAKE, however, does not have the same recursive structure as the MISTY algorithm, but is instead structured for the output data block of one S-box to be fed back to the left next S-box, and it is shifted in the left by 8-bits. This structure brings strict avalanche diffusion to the flowing data, so as to make the round function's linearity and differential uniformity low. In the verification of its resistance against differential and linear cryptanalysis, the inventors' concept of ‘Difference string’ and ‘Fundamental Differential Matrix’ has been developed wherefrom theoretical inducement has been established.
The key scheduling process of SNAKE will now be described. Initially, the process is fed a random 128-bit seed key and the seed key is broken into four 32-bit sub-blocks. The sub-blocks go through the process illustrated in FIG. 2 with a 32-bit constant irrational number GN having a characteristic sequence of random bits via the three operations: exclusive-OR operation; 256-modulus addition; and 5-bit left rotation. This processes prevents the recovery of the previous round's key, even if the next round's keys are found.
Other objects and advantages of the present invention will become apparent upon reading the following detailed descriptions and upon reference to the following.
FIG. 1 illustrates the round function structure of the present invention, which is the main core part of SNAKE algorithm.
FIGS. 2A-2B illustrate the present inventions's key scheduling process from the 128 seed key bits for the generation of round keys. FIG. 2A illustrates the SCROL function to be directly used for the practical round key generation in FIG. 2B.
FIG. 3 illustrates the whole Feistel type structure of the present invention.
While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof have been shown by way of example in the drawings, and will be herein described in detail. It should be understood, however, that it is not intended to limit the invention to the particular forms disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the appended claims.
There is provided a rapid block cipher algorithm that is resistant against differential cryptanalysis, linear cryptanalysis, and higher-order differential cryptanalysis.
An embodiment of the algorithm of the present invention is called SNAKE which encrypts data in 64-bit blocks. A 64-bit block of plain text is input in one end of the algorithm and a 64-bit block of cipher text is output out the other end. SNAKE is a symmetric algorithm, i.e., the same algorithm and key are used for both encryption and decryption, except for minor differences in key scheduling. The seed key length is 128-bits. Before the data-encryption and data-decryption, the sixteen round keys to be used in each round are settled by a key scheduling process from the seed key as will be described below.
(1) Key Scheduling
The 128-bit seed key Sk is broken into four 32-bit blocks, e.g.,
where, from the right, the least significant part of the 128-bit integer is arranged and concatenated. Then, Sk1 and Sk2 are the first and second round key respectively.
For the generation of the remaining rounds' keys, a function ‘SCROL’ is introduced which receives 32-bit data and outputs the same length of data. With reference to FIG. 2A, block 70 illustrates a 32-bit input data block to the function, named SCROL, for the round key generation. Block 80 illustrates subdivided 8-bit data blocks from the 32-bit input data block to the SCROL function. Block 90 illustrates an 8-bit modular addition (mod.256) operator. Block 100 illustrates a logical exclusive-OR operator. Block 110 illustrates the combining process (via an exclusive-OR operator) with the 32-bit constant number GN which has the characteristics as in a sequence of random bits. Block 120 illustrates 5-bit left rotation of the 32-bit data resulted from the previous step. Block 130 illustrates the final 32-bit output data from the SCROL function.
With respect to FIG. 2B, block 140 illustrates the 128-bit seed key Sk which is to be broken into 32-bit sub-blocks, Sk1, Sk2, Sk3, and Sk4, for the round key generation process. Block 150 illustrates the 32-bit subdivided seed key blocks from the 128-bit seed keys. Block 160 illustrates the generated round keys by the key generation process, wherein Ki denotes the 32-bit i-th round key.
If 32-bit data, Q=Q4∥Q3∥Q2∥Q1, (Xi:8-bits) are input to SCROL, then its output, e.g., R, can be represented by the following:
where the notation, ‘∥’, denotes concatenation, ‘⊕’ means the exclusive-OR operator, ‘+’ means the 256-modular addition, and ‘(*)<<<5’ denotes the left rotation of * by 5 bits.
Finally, using this SCROL function, the remained rounds' keys Ki, i=3, 4, . . . , 16 are generated, e.g.:
(2) S-boxes, Round Function
The S-boxes are used in round function F.
There are four S-boxes in our exemplary embodiment, SNAKE, and the Sboxes, S1, S2, S3, S4 are recommended to have the following two types:
where f(x)=x−1, the algebraic inversion of the Galois Field GF(256), and g(x)=h(h(x)): the self-composition of the modular exponent function based 45, i.e. h(x)=45x mod257.
Furthermore, in an exemplary embodiment, TYPE1 is used for the hardware and software implementation, and TYPE2 is used for the software implementation. TYPE1 can be embodied in a circuit design for a chip at a gate level, instead of using the ROM tables.
The round function will now be described. With reference to FIG. 1, block 10 illustrates a 32-bit input data block combined (via an exclusive-OR operator) with the 32-bit round key which was scheduled by said key generation method. Block 20 illustrates an 8-bit subdivided data block of the total 32-bit input data X from the 32-bits input data block. Block 30 illustrates a logical exclusive-OR operator. Block 40 illustrates a 256×8 S-box which is a nonlinear function of 8-bit input data to 8-bit output data. Block 50 illustrates a one byte (8-bit) rotation of the concatenated 32-bit data from the 8-bit output blocks from the S-boxes. Block 60 illustrates the 32-bit output data from the round function.
If the 32-bit data X⊕Ki=X4∥X3∥X2∥X1 (Xi: 8-bit sub-blocks, which are concatenated in order of the least significant block from the most right part, Ki is the i-th round key) input to the round function F, then its output, Y=Y4∥Y3∥Y2∥Y1, of F is given by the following formulas:
Referring to FIG. 3, block 170 illustrates the 32-bit left half of the 64-bit input plain text to the cipher SNAKE. Block 180 illustrates the 32-bit right half of the 64-bit input plain text to the cipher SNAKE. Block 190 illustrates the round function of SNAKE of which structure was described in FIG. 1. Block 200 illustrates a round key generated from SNAKE's key scheduling process shown in FIGS. 2A-2B. Block 210 illustrates a logic exclusive-OR operator. Block 220 illustrates the 32-bit left half of the 64-bit final output data such as encrypted data or cipher text, through the 16 round process of SNAKE which executes a one-round process, repeated 16 times. Block 230 illustrates the 32-bit right half of the 64-bit final output data such as encrypted data or cipher text through the 16 round process of SNAKE which executes a one-round process, repeated 16 times.
In summary, SNAKE operates on a 64-bit block of plain text. The block is broken into a right half and a left half, each 32-bits long. Then there are 16 rounds of identical operations, with reference to FIG. 3, called round function F, in which the data are combined with the key via XOR-operation. After the sixteenth round, the right and left halves are joined, and the algorithm is completed. In each round the right half (32-bits) of the previous round's output data is combined with its round key (via XOR) and the resulting data is broken into four 8-bit data blocks, X1, X2, X3, X4.
The data blocks form the input data to the previously described round function F. Again, this output data of F are combined with the 32-bit left half data block via XOR to be the next or new round's right half data block (the old right half becomes the new left half). These operations are repeated 16 times, thereby making 16 rounds of SNAKE.
If Bj is the result of the j-th iteration, Lj and Rj are the left and right halves of Bj, Kj is the key for the round j, and F is the round function described previously, then a round looks like:
In the present invention, the security (resistance) of SNAKE could be deduced from consideration of the output difference data from each S-box is seen if given a pair of data values with a difference (input difference) as variable parameters, and constructing a linear system of equations of the difference variable parameters to get its coefficient matrix, which is called ‘Transient Differential Matrix’. By making or finding some conditions to confine the cipher to its ‘rank’, the round function structure of SNAKE can be deduced. The proof of the security was disclosed in Chang-hyi Lee and Young-tae Cha, “The Block Cipher: SNAKE with Provable Resistance against-DC and LC Attacks”, JW-ISC, (1997), herein incorporated by reference.
The processing speed of the present invention is faster than that of DES. In the simulation of SNAKE, implemented in the C++ language on a 120 MHz PENTIUM PC, the encryption process of the present invention performs at 16 Mbps, while DES performs at 10.4 Mbps on the same machine.
The invention may be embodied in a general purpose digital computer that is running a program or program segments originating from a computer readable or usable medium, such medium including, but not limited to, magnetic storage media (e.g., ROMs, floppy disks, hard disks, etc.), optically readable media (e.g., CD-ROMs, DVDs, etc.), and carrier waves (e.g., transmissions over the Internet). A functional program, code and code segments, used to implement the present invention can be derived by a skilled computer programmer from the description of the invention contained herein.
The previous description of the exemplary embodiments is provided to enable any person skilled in the art to make or use the present invention. The various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without the use of the inventive faculty. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US5003597 *||Dec 21, 1989||Mar 26, 1991||Xerox Corporation||Method and apparatus for data encryption|
|US5623548 *||Jan 10, 1995||Apr 22, 1997||Fujitsu Limited||Transformation pattern generating device and encryption function device|
|US5838794||Jan 11, 1996||Nov 17, 1998||Teledyne Electronic Technologies||Method and apparatus for inter-round mixing in iterated block substitution systems|
|WO1998000949A1||Jun 27, 1997||Jan 8, 1998||Teledyne Industries Inc.||Methods for generating variable s-boxes from arbitrary keys of arbitrary length|
|1||*||Internet thread concerning Teledyne, firstname.lastname@example.org, Jul. 1996.|
|2||Knudsen, "Truncated and Higher Order Differentials," Advances in Cryptology, Fast Software Encryption, 1995.|
|3||Lee, et al., "The Block Cipher: Snake with Provable Resistance Against DC and LC Attacks," Proc. of JW-ISC, 1997, Session 1, pp. 3-17.|
|4||Matsui, "Linear Cryptanalysis Method for DES Cipher," Advances In Cryptology, Endocrypt, 1993, pp. 391-397.|
|5||Mittenthal, Statistical Efficient Inter-Round Mixing in Block Substitution Devices, Teledyne, 1996.*|
|6||Nyberg, "S-Boxes and Round Functions with Controllable Linearity and Differential Uniformity," Advances In Cryptology, Fast Software Encryption, 1994, pp. 111-129.|
|7||Schneier, Applied Cryptography, pp. 272, 320-323, 1996.*|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US7039186 *||Oct 31, 2001||May 2, 2006||Sharp Kabushiki Kaisha||Encryption key generation circuit|
|US7043016 *||Jun 29, 2001||May 9, 2006||Koninklijke Philips Electronics N.V.||Substitution-box for symmetric-key ciphers|
|US7099469 *||Oct 17, 2001||Aug 29, 2006||Motorola, Inc.||Method of scrambling and descrambling data in a communication system|
|US7103180 *||Oct 25, 2001||Sep 5, 2006||Hewlett-Packard Development Company, L.P.||Method of implementing the data encryption standard with reduced computation|
|US7158638 *||Jan 3, 2002||Jan 2, 2007||Fujitsu Limited||Encryption circuit|
|US7187769 *||Jun 1, 1999||Mar 6, 2007||Nippon Telegraph And Telephone Public Corporation||Method and apparatus for evaluating the strength of an encryption|
|US7212631 *||Aug 1, 2001||May 1, 2007||Qualcomm Incorporated||Apparatus and method for performing KASUMI ciphering|
|US7212636 *||Feb 25, 2002||May 1, 2007||Nagravision S.A.||Encryption of a compressed video stream|
|US7218733 *||Oct 24, 2001||May 15, 2007||C4 Technology Inc.||Encryption method, program for encryption, memory medium for storing the program, and encryption apparatus, as well as decryption method and decryption apparatus|
|US7266579||Jul 7, 2003||Sep 4, 2007||Atmel Corporation||Combined polynomial and natural multiplier architecture|
|US7310421||Oct 6, 2003||Dec 18, 2007||National Institute Of Information And Communications Technology||Particular plaintext detector|
|US7343011||Apr 29, 2003||Mar 11, 2008||Conexant, Inc.||Secure telecommunications system for wireless local area networks|
|US7526085||Jul 13, 2004||Apr 28, 2009||Advanced Micro Devices, Inc.||Throughput and latency of inbound and outbound IPsec processing|
|US7545928||Dec 8, 2003||Jun 9, 2009||Advanced Micro Devices, Inc.||Triple DES critical timing path improvement|
|US7546461||Jun 28, 2005||Jun 9, 2009||Microsoft Corporation||Strengthening secure hash functions|
|US7580519||Dec 8, 2003||Aug 25, 2009||Advanced Micro Devices, Inc.||Triple DES gigabit/s performance using single DES engine|
|US7606365 *||Jan 11, 2005||Oct 20, 2009||Samsung Electronics Co., Ltd.||Encryption/decryption system and key scheduler with variable key length|
|US7760874 *||Aug 23, 2004||Jul 20, 2010||Broadcom Corporation||Method and system for implementing FI function in KASUMI algorithm for accelerating cryptography in GSM/GPRS/EDGE compliant handsets|
|US7783037||Sep 20, 2004||Aug 24, 2010||Globalfoundries Inc.||Multi-gigabit per second computing of the rijndael inverse cipher|
|US7885405 *||Jun 4, 2004||Feb 8, 2011||GlobalFoundries, Inc.||Multi-gigabit per second concurrent encryption in block cipher modes|
|US8640039||Jan 18, 2005||Jan 28, 2014||Canon Kabushiki Kaisha||Information processing apparatus and method|
|US8817979 *||Sep 2, 2004||Aug 26, 2014||Broadcom Corporation||Standalone hardware accelerator for advanced encryption standard (AES) encryption and decryption|
|US9578469||Oct 2, 2014||Feb 21, 2017||Motorola Solutions, Inc.||Method and system for direct mode communication within a talkgroup|
|US9584310 *||Mar 19, 2014||Feb 28, 2017||Nxp B.V.||Protecting a white-box implementation against attacks|
|US9760321||Dec 27, 2013||Sep 12, 2017||Canon Kabushiki Kaisha||Information processing apparatus and method|
|US20020027987 *||Jun 29, 2001||Mar 7, 2002||Roelse Petrus Lambertus Adriaanus||Substitution-box for symmetric-key ciphers|
|US20020051535 *||Oct 31, 2001||May 2, 2002||Masayuki Ezawa||Encryption key generation circuit|
|US20020186841 *||Aug 1, 2001||Dec 12, 2002||Averbuj Roberto Fabian||Apparatus & method for performing KASUMI ciphering|
|US20030007635 *||Oct 24, 2001||Jan 9, 2003||C4 Technology, Inc.||Encryption method, program for encryption, memory medium for storing the program, and encryption apparatus, as well as decryption method and decryption apparatus|
|US20030072445 *||Oct 17, 2001||Apr 17, 2003||Kuhlman Douglas A.||Method of scrambling and descrambling data in a communication system|
|US20030108195 *||Jan 3, 2002||Jun 12, 2003||Fujitsu Limited||Encryption circuit|
|US20030133571 *||Feb 25, 2002||Jul 17, 2003||Eric Chaubert||Encryption of a compressed video stream|
|US20030210781 *||Jan 29, 2003||Nov 13, 2003||Sony Corporation||Method for encrypting and decrypting messages based on boolean matrices, and data communication system|
|US20040008840 *||Apr 29, 2003||Jan 15, 2004||Ferguson Niels Thomas||Secure telecommunications system for wireless local area networks|
|US20040199560 *||Jul 7, 2003||Oct 7, 2004||Vincent Dupaquis||Combined polynomial and natural multiplier architecture|
|US20050074117 *||Oct 6, 2003||Apr 7, 2005||Hidema Tanaka||Particular plaintext detector|
|US20050159926 *||Jan 18, 2005||Jul 21, 2005||Canon Kabushiki Kaisha||Information processing apparatus and method|
|US20050190923 *||Jan 11, 2005||Sep 1, 2005||Mi-Jung Noh||Encryption/decryption system and key scheduler with variable key length|
|US20050271204 *||Sep 2, 2004||Dec 8, 2005||Broadcom Corporation||Standalone hardware accelerator for advanced encryption standard (AES) encryption and decryption|
|US20060013388 *||Aug 23, 2004||Jan 19, 2006||Ruei-Shiang Suen||Method and system for implementing FI function in KASUMI algorithm for accelerating cryptography in GSM/GPRS/EDGE compliant handsets|
|US20150270949 *||Mar 19, 2014||Sep 24, 2015||Nxp B.V.||Protecting a white-box implementation against attacks|
|US20170149559 *||Nov 25, 2015||May 25, 2017||Nxp, B.V.||Protecting white-box feistel network implementation against fault attack|
|CN104683096A *||Nov 29, 2013||Jun 3, 2015||中国航天科工集团第三研究院第八三五七研究所||Dynamic S-box transforming method and system|
|WO2007001829A2 *||Jun 13, 2006||Jan 4, 2007||Microsoft Corporation||Strengthening secure hash functions|
|WO2007001829A3 *||Jun 13, 2006||May 18, 2007||Microsoft Corp||Strengthening secure hash functions|
|International Classification||G09C1/00, H04L9/06, G06F1/00|
|Cooperative Classification||H04L9/0625, H04L2209/08, H04L9/002, H04L2209/24|
|European Classification||H04L9/06R3, H04L9/06B|
|Jun 11, 1998||AS||Assignment|
Owner name: SAMSUNG ELECTRONICS CO., LTD., KOREA, REPUBLIC OF
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:LEE, CHANG-HYI;CHA, YOUNG-TAE;REEL/FRAME:009247/0098
Effective date: 19980610
|Apr 13, 2005||FPAY||Fee payment|
Year of fee payment: 4
|Apr 8, 2009||FPAY||Fee payment|
Year of fee payment: 8
|Mar 15, 2013||FPAY||Fee payment|
Year of fee payment: 12