Block-cipher cryptographic device based upon a pseudorandom nonlinear sequence generator

Abstract: A block-cipher cryptographic device that processes plaintext/encrypted input data with a key signal to provide encrypted/decrypted output data. Such device includes a shift register (10) for receiving input data (13); and data processing means (12), including a pseudorandom nonlinear sequence generator (32), for executing the following data processing routine a selected number of cycles to provide output data (15): processing (18, 22, 30) the contents (16) of said shift register with a key signal (14) to provide initially processed data (28); initializing the pseudorandom nonlinear sequence generator with the initially processed data; running the pseudorandom nonlinear sequence generator to generate a keystream (34); segregating (36, 38) portions of the keystream; processing (44) said segregated portions of said keystream with a portion of the data in the shift register to provide a block of processed data; and shifting said block of processed data into the shift register. To further increase the randomness of the pseudorandom keystream generator, and hence the encryption security, the data processing routine segregates the keystream in accordance with a routine (36) wherein the beginning of said segregated portion is provided at a time related to the beginning of the keystream in response to a duration indication (Y); segregates (38) every nth bit of the keystream from said beginning of said segregated portion for a selected number of segregated bits in response to a frequency indication (n); and provides said initially processed data by first processing (18) said shift register contents and said key signal and then rotating (22) data produced by said first processing in response to a rotation indication (X). The duration indication, the frequency indication and the rotation indication are each separately provided for each of the cycles and may be different for each of the cycles.

Description: The present invention generally pertains to block-cipher cryptographic devices. Block-cipher cryptographic devices based upon the DES (Data Encryption Standard) algorithm are often used when a high degree of encryption security is required. However, at present, encryption/decryption products containing a block-cipher cryptographic device based upon the DES algorithm are restricted from export from the United States of America. According to a first aspect of the invention, there is provided a block-cipher cryptographic device for processing plaintext or encrypted input data with a key signal to provide encrypted or decrypted output data respectively, comprising a shift register for receiving the input data; and data processing means adapted for executing a data processing routine for a selected number of cycles in which the contents of the shift register are processed with a key signal to provide the output data. characterised in that the data processing means further comprises a pseudorandom nonlinear sequence generator; means for processing the contents of said shift register with a key signal to provide initially processed data; means for initializing the pseudorandom nonlinear sequence generator with the initially processed data; means for running the pseudorandom nonlinear sequence generator to generate a keystream. means for segregating portions of the keystream by beginning a said segregated portion at a time indicated by a duration indication that is separately provided for each of the cycles and may be different for each of the cycles, and by segregating every nth bit of the kevstream from said beginning of said segregated portion for a selected number of segregated bits in response to a frequency indication that is separately provided for each of the cycles and may be different for each of the cycles; means for processing said segregated portions of said keystream with a portion of the data in the shift register to provide a block of processed data; and means for shifting said block of processed data into the shift register. The preferred embodiment provides a block-cipher cryptographic device that is not based upon the DES algorithm, but which is compatible therewith and which provides a sufficiently high degree of encryption security for many applications. The block-cipher cryptographic device of the preferred embodiment is a device that processes plaintext/encrypted input data with a key signal to provide encrypted/decrypted output data. Such device comprises a shift register for receiving input data; and data processing means including a pseudorandom nonlinear sequence generator for executing the following data processing routine a selected number of cycles to provide output data: processing the contents of said shift register with a key signal to provide initially processed data; initializing the pseudorandom nonlinear sequence generator with the initially processed data; running the pseudorandom nonlinear sequence generator to generate a keystream; segregating portions of the keystream; processing said segregated portions of said keystream with a portion of the data in the shift register to provide a block of processed data; and shifting said block of processed data into the shift register. The degree of security is increased as the selected number of cycles of execution of the data processing routines is increased. To further increase the randomness of the pseudorandom keystream generator and hence the security provided by the cryptographic device of the present invention, the data processing routine preferably segregates the keystream in accordance with a routine wherein the beginning of said segregated portion is provided at a time related to the beginning of the keystream in response to a duration indication; segregates every nth bit of the keystream from said beginning of said segregated portion for a selected number of segregated bits in response to a frequency indication; and provides said initially processed data by first processing said shift register contents and said key signal and then rotating data produced by said first processing in response to a rotation indication. The duration indication, the frequency indication and the rotation indication are each separately provided for each of the cycles and may be different for each of the cycles. According to a second aspect of the invention, there is provided a data processing routine in block-cipher cryptographic device for processing plaintext or encrypted input data with a key signal to provide encrypted or decrypted output data respectively, wherein the cryptographic device includes a shift register for receiving the input data; and data processing means adapted for executing a data processing routine for a selected number of cycles in which the contents of the shift register are processed with a key signal to provide the output data characterised in that the data processing routine includes the routines of: (a) processing the contents of said shift register with a key signal to provide initially processed data; (b) initializing pseudorandom nonlinear sequence generator included in the data processing means with the initially processed data; (c) running the pseudorandom nonlinear sequence generator to generate a keystream; (d) segregating portions of the keystream by beginning a said segregated portion at a time indicated by a duration indication that is separately provided for each of the cycles and may be different for each of the cycles, and by segregating every nth bit of the keystream from said beginning of said segregated portion for a selected number of segregated bits in response to a frequency indication that is separately provided for each of the cycles and may be different for each of the cycles; (e) processing said segregated portions of said keystream with a portion of the data in the shift register to provide a block of processed data; and (f) shifting said block of processed data into the shift register. Additional features of the present invention are described in relation to the description of the preferred embodiment. The present invention will now be described by way of example with reference to the drawings in which:- Figure 1 is a functional block diagram of a block-cipher encryption device according to the present invention. Figure 1A is a block diagram of data processing routines performed by the data processing system of Figures 1 and 3. Figure 2 is a functional block diagram illustrating details of the discard and segregate functions of the encryption device of Figure 1. Figure 3 is a functional block diagram of a block-cipher decryption device according to the present invention. DESCRIPTION OF THE PREFERRED EMBODIMENT Referring to Figure 1, a preferred embodiment of a block diagram of a block-cipher encryption device according to the present invention includes an N-bit feedback shift register 10 and a data processing system 12. Except as described below, the data processing system is implemented by firmware in a microprocessor. The block-cipher encryption device of Figure 1 processes an N-byte block of plaintext input data 13 with an M-byte encryption key 14 signal to provide an N-byte block of encrypted output data 15. In a preferred embodiment that is compatible with a DES encryption device, M = 7 and N = 8. The feedback shift register 10 receives an N-byte block of plaintext input data 13. The data processing system 12 processes the M most significant bytes 16 of the plaintext input data with the M-byte encryption key 14 by adding the plaintext bytes 16 to the key bytes 14, as illustrated in Figure 1A by a first data processing routine 18. In alternative embodiments this first routine 18 could be something other than addition, such as subtraction or exclusive ORing (XORing), for example. The M bytes of data 20 produced by the first routine 18 are then rotated by the data processing system 12 in accordance with a second data processing routine 22 by a number of bytes X in response to a rotation indication X. The relationship of the rotated bytes 26 to the first produced bytes 20 is shown in Table 1 for a rotation indication of three bytes, with M = 7. The data processing system 12 then expands the rotated M bytes 26 to provide N bytes of initially processed data 28 by executing a data expansion processing routine 30. In the preferred embodiment, wherein M = 7 and N = 8, the Nth byte is produced by XORing the M bytes. A pseudorandom nonlinear sequence generator 32, included in the data processing system 12 is initialized by the N bytes of initially processed data 28 and is run to generate a keystream 34. In the preferred embodiment the keystream generator 32 is a dynamic-feedback-arrangement-scrambling-technique (DFAST) keystream generator 32, which is implemented in hardware to increase the processing speed of the data processing system 12. A DFAST keystream generator is described in United States Letters Patent No. 4,860,353 to David S. Brown. The preferred embodiment of the DFAST keystream generator 32, as described in said patent, includes a dynamic (or nonlinear) feedback shift register and a static (or linear) feedback shift register for receiving input data. The most significant bytes of the N bytes 28 are received in the dynamic feedback shift register and the remaining bytes are received in the static feedback shift register of the DFAST keystream generator 32. The DFAST keystream generator 32 provides high speed pseudorandom nonlinear sequence processing of the N bytes 28 to quickly generate a keystream 34 from which a single byte can readily be segregated to create data that can be fedback for processing in subsequent cycles. In alternative embodiments, other types of pseudorandom nonlinear sequence generators may be used instead of the DFAST keystream generator 32. The data processing system 12 next executes a discard routine 36 and a segregate routine 38 to segregate portions of the keystream 34 into a single byte 40. The data processing system 12 segregates the keystream 34 in accordance with the discard routine 36 wherein the beginning of the segregated portion of the keystream 42 is provided at a time related to the beginning of the keystream 34 in response to a duration indication Y by discarding the first Y bytes of the keystream 34. The data processing system 12 further segregates the keystream 42 by segregating every nth bit of the keystream 42 from said beginning of said segregated portion in response to a frequency indication n until eight bits are segregated to form the single byte 40. Details of the discard routine 36 and the segregate routine 38 are described with reference to Figure 2. To execute these routines the data processing system includes and/or implements a duration indication counter 48 a frequency indication counter 50, a bit counter 52, a byte register 54 and an OR gate 55. All three counters 48, 50, 52 are clocked by the same clock signal 56 as clocks the DFAST keystream generator 32. The output of the counter 48 is coupled through the OR gate 55 to the load input of the counter 50. The output of the counter 50 is provided to the enable input of the counter 52 and the enable input of the byte register 54 and is also coupled through the OR gate 55 to the input of the counter 50. The keystream 32 is provided to the data input of the byte register 54. For each cycle of data processing routines a duration indication Y is loaded into the duration indication counter 48 and a frequency indication n is loaded into the frequency indication counter 50. After the first Y bytes of the keystream 34, a start pulse 60 is delivered by the duration indication counter 48 to the frequency indication counter 50, which in turn delivers an enable pulse to the bit counter 52 and the byte register 54. The byte register is thus enabled to register the concurrent bit of the keystream 34; and the number of bits registered in the byte register 54 is counted by the bit counter 52. The frequency indication counter continues to provide a pulse 62 to the enable inputs of the byte register 54 and the bit counter 52 upon every nth count of clock pulses in the DFAST clock signal 56 until the count in the bit counter 52 reaches eight, whereupon a stop pulse 58 is provided to all three counters 48, 50, 52. Referring again to block-cipher encryption device of Figure 1, the data processing system 12 further executes a routine 44 by which the single byte 40 formed by segregating portions of the keystream 34 is XOR'd with the least significant byte of data in the feedback shift register 10 to provide a byte of processed data 46. This byte of processed data 46 is shifted into the most significant byte position of the feedback shift register 10 and the data in shift register 10 is shifted such that the least significant byte of data is shifted out of the shift register 10. This completes one cycle of the data processing routines. The number of cycles to be executed to encrypt a single block of plaintext input data is selected in accordance with the degree of encryption security that is required for the particular application of the encryption device. To ensure that any single bit of the key signal or of the input data can effect every bit of the output data, there should be at least sixteen cycles. Preferably even more cycles are executed to provide still additional security, with the number of cycles being limited by the processing speed of the data processing system 12 in relation to the frequency at which the plaintext input data is provided to the encryption device for encryption. For each cycle of data processing routines, the rotation indication X, the duration indication Y and the frequency indication n are separately provided. Thus, each of these indications may be different in each of the different cycles. In the preferred embodiment the selected number of cycles and the rotation indication X, the duration indication Y and the frequency indication n for the respective different cycles are preset in the firmware of the microprocessor. In alternative embodiments, the selected number of cycles, and/or the rotation indication X, the duration indication Y and/or the frequency indication n for the respective different cycles are provided as variable inputs to the microprocessor. After completing the selected number of cycles of processing the encrypted output data 15 is provided from the feedback shift register 10. In alternative embodiments, the encrypted output data can be provided by passing the bytes of processed data 46 to a separate component (not shown) apart from the feedback shift register 10. Referring to Figure 3, a preferred embodiment of a block diagram of a block-cipher decryption device according to the present invention is identical to the block-cipher encryption device described above with reference to Figures 1 and 2, with the following exceptions. The block-cipher decryption device of Figure 3 processes an N-byte block of encrypted input data 13′ with an M-byte decryption key 14 signal to provide an N-byte block of decrypted output data 15′. The feedback shift register 10 receives an N-byte block of encrypted input data 13′. In the data processing routine 44 the single byte 40 formed by segregating portions of the keystream 34 is XOR'd with the most significant byte of data in the feedback shift register 10 to provide the byte of processed data 46; and this byte of processed data 46 is shifted into the least significant byte position of the shift register 10, whereby the data in shift register 10 is shifted such that the most significant byte of data is shifted out of the shift register 10. The block-cipher decryption device of Figure 3 decrypts encrypted data provided by the block-cipher encryption device of Figure 1 to convert such encrypted data into the plaintext data encrypted by the block-cipher encryption device of Figure 1.

Claims: A block-cipher cryptographic device for processing plaintext or encrypted input data with a key signal to provide encrypted or decrypted output data respectively, comprising a shift register (10) for receiving the input data (13); and data processing means (12) adapted for executing a data processing routine for a selected number of cycles in which the contents of the shift register are processed with a key signal to provide the output data (15), characterised in that the data processing means (12) further comprises a pseudorandom nonlinear sequence generator (32); means for processing (18, 22, 30) the contents (16) of said shift register with a key signal (14) to provide initially processed data (28); means for initializing the pseudorandom nonlinear sequence generator with the initially processed data; means for running the pseudorandom nonlinear sequence generator to generate a keystream (34); means for segregating (36, 38) portions of the keystream by beginning a said segregated portion at a time indicated by a duration indication (Y) that is separately provided for each of the cycles and may be different for each of the cycles. and by segregating (38) every nth bit of the keystream from said beginning of said segregated portion for a selected number of segregated bits in response to a frequency indication (n) that is separately provided for each of the cycles and may be different for each of the cycles; means for processing (44) said segregated portions of said keystream with a portion of the data in the shift register to provide a block of processed data (46); and means for shifting said block of processed data into the shift register. A device according to Claim 1, characterised in that the shifting means are adapted for said shifting of said blocks of processed data into the shift register for said selected number of cycles. A device according to Claim 1. characterised in that the means for providing said initially processed data include means for first processing (18) said shift register contents and said key signal; and means for then rotating (22) data produced by said first processing in response to a rotation indication (X) that is separately provided for each of the cycles and may be different for each of the cycles. A device according to either any of Claims 1 or 3, characterised in that the data processing means includes a dynamic-feedback-arrangement-scrambling-technique keystream generator (32) for generating said keystream. A data processing routine in a block-cipher cryptographic device for processing plaintext or encrypted input data with a key signal to provide encrypted or decrypted output data respectively, wherein the cryptographic device includes a shift register (10) for receiving the input data (13), and data processing means (12) adapted for executing a data processing routine for a selected number of cycles in which the contents of the shift register are processed with a key signal to provide the output data (15), characterised in that the data processing routine includes the routines of: (a) processing (18, 22, 30) the contents (16) of said shift register with a key signal (14) to provide initially processed data (28); (b) initializing a pseudorandom nonlinear sequence generator included in the data processing means with the initially processed data; (c) running the pseudorandom nonlinear sequence generator to generate a keystream (34); (d) segregating (36. 38) portions of the keystream by beginning a said segregated portion at a time indicated by a duration indication (Y) that is separately provided for each of the cycles and may be different for each of the cycles. and by segregating (38) every nth bit of the keystream from said beginning of said segregated portion for a selected number of segregated bits in response to a frequency indication (n) that is separately provided for each of the cycles and may be different for each of the cycles; (e) processing (44) said segregated portions of said keystream with a portion of the data in the shift register to provide a block of processed data (46); and (f) shifting said block of processed data into the shift register. A data processing routine according to Claim 5. characterised in that routine (f) includes shifting said blocks of processed data into the shift register for said selected number of cycles. A data processing routine according to Claim 5. characterised by routine (a) including the routines of: (g) first processing (18) said shift register contents and said key signal: and (h) then rotating (22) data produced by said first processing in response to a rotation indication (X) that is separately provided for each of the cycles and may be different for each of the cycles. A data processing routine according to either of Claims 5 or 7, wherein the Keystream generated in routine (c) is carried out by a dynamic-feedback-arrangement-scrambling-technique keystream generator (32).

Inventors: BENNETT CHRISTOPHER JOHN, KINDRED DANIEL RAY, MORONEY PAUL, BENNETT, CHRISTOPHER JOHN, KINDRED, DANIEL RAY, MORONEY, PAUL
Applicants: GEN INSTRUMENT CORP, GENERAL INSTRUMENT CORPORATION OF DELAWARE
Application year: 1991
Main classification: H04L9
IPC codes: H04L9, G09C1