A device for enciphering and deciphering, by means of the DES algorithm, data to be written to or read from a hard disk

Abstract: A device for enciphering and deciphering with the aid of the DES algorithm data to be written to or read from a hard disk, wherein the input of a DES cipher device (25) is coupled, via a converter (26) for converting data words having a word width of 16 bits to data words having a word width of 64 bits, to a bus for transferring data words having a word width of 16 bits to and from a central processor unit, and to a bus for transferring data words having a word width of 16 bits to and from a disk storage unit and wherein the output of the DES cipher device is coupled, via a multiplexer (27) for converting data words having a word width of 64 bits to data words having a word width of 16 bits, to the bus of the central processor unit and to the bus of the disk storage unit.

Description: The present invention relates to a device for enciphering and deciphering data to be written to or read from a hard disk, said device comprising a device for ciphering by means of the DES algorithm and control logic for receiving I/O read or write cycli from a central processing unit, wherein an input of the device for ciphering is coupled to a bus intended for transferring data words to and from a disk storage unit and, via a converter for converting data words having a word width of n bits to data words having a word width of m bits, to a bus intended for transferring data words having a word width of n bits to and from a central processor unit, and wherein an output of the device for ciphering by means of the DES algorithm is coupled to the bus of the disk storage unit and, via a multiplexer for converting data words having a word width of m bits to data words having a word width of n bits, to the bus of the central processor unit. Such a device is disclosed in IBM Technical Disclosure Bulletin, March 1991, Vol. 33, nr. 10B, pp. 242-244, which discloses a device in which a 32-bit personal computer (PC) bus via a 32 → 16-bit converter is coupled to a 16-bit cipher circuit, which cipher circuit via a 16-bit bus is coupled to a 16-bit SCSI hard disk. The object of the invention is to provide a device by which, in an efficient manner and without expensive hardware and/or complex software, use can be made of existing hard disk storage units, for instance of the IDE type (IDE = Integrated Drive Electronics), and standardized computer types, for instance computers of the so-called AT type in cooperation with commercially available cipher ICs for encryption through the DES algorithm. A problem in the use of commercially available cipher ICs for encryption through the DES algorithm is that these ICs encrypt words of a width of 64 bits, whereas many computer standards function with words of a considerably lesser width, for instance a word width of 16 bits in the case of an AT computer. A drawback of previously proposed combinations of existing computer systems with commercially available cipher ICs is that the processing of data during writing to or reading from a hard disk storage unit is very slow and that additional software is required for controlling the cipher IC and the disk storage unit. Accordingly, the object of the present invention is to provide a system that is capable of processing the data to be enciphered or deciphered in a considerably simpler manner and clearly faster than was possible with the solutions known heretofore. To that end, a device of the above-mentioned type is characterized, according to the invention, in that m = 64, that n < 64 and that 64 divided by n equals an integer, in that the input of the ciphering device is coupled to the bus intended for transferring data words to and from the disk storage unit, via the converter for converting data words having a word width of n bits to data words having a word width of 64 bits, in that the output of the ciphering device is coupled to the bus of the disk storage unit via the multiplexer for converting data words having a word width of 64 bits to data words having a word width of n bits, and in that the control logic at the begin of a period during which data to be written on the disk storage unit are enciphered, delays the first I/O write cycle to be applied to the disk storing unit over a period of 64 divided by n I/O cycli and at the begin of a period during which data to be read from the disk storage unit are deciphered, delays the first I/O read cycle to be applied to the central processing unit over a period of 64 divided by n I/O cycli, the arrangement being such, that after an initial delay of 64 divided by n I/O cycli the enciphered and deciphered n-bit words are applied successively to the hard disk storage unit and the central processing unit respectively, without further delay. The advantages of the device according to the invention will be further explained on the basis of an exemplary embodiment with reference to the accompanying drawings, in which: Fig. 1 is a block diagram indicating the arrangement of the device according to the invention between a bus of a computer and a bus of a hard disk storage unit; Fig. 2 is a block diagram of the device according to the invention; Fig. 3 is a time diagram of a number of I/O cycli during data writing to and data reading from a hard disk storage unit. In Fig. 1, reference numeral 1 indicates a bus, for instance an AT bus, along which data in a computer of the AT type with a word width of 16 bits are transmitted. However, the device according to the invention can also function advantageously when the data words have a different word width of n bits, as long as n < 64 and 64 : n = an integer. Bus 1 is connected to a central data processing unit (CPU) 6 and is connected, via a data bus, an address bus, and a control bus, to a data encryption unit 2, which in turn is connected via identical buses to the bus 3 of the hard disk storage unit 7 of the IDE type (Integrated Drive Electronics), which is also intended to transfer data having a word width of 16 bits. Fig. 1 further shows a clock generator circuit 4, which provides the clock signals for unit 2 and which, via a clock signal bus, is controlled from the AT bus. Finally, Fig. 1 shows a software interface 5 for the benefit of a user, this interface being connected to the AT bus 1 via a data bus, an address bus and a bus for control signals. As such, the clock generator circuit and the software interface for the user are well-known constituents for use in a personal computer and will therefore not be discussed hereinafter. Fig. 2 shows in more detail the construction of the data encryption unit 2 according to the invention. It comprises modus registers 22, a control logic unit 23, an encryption key register 24 and a cipher unit 25. The modus registers 22 afford the possibility of choosing between one or more different operating modes of the device according to the invention. These modes may for instance include: a 16-bit hard disk mode; a 16-bit write/read I/O mode; a block cipher mode; a cipher feedback mode. The control logic 23 provides the generation of the control signals for internal use in the unit 2 and the addresses and control signals for the IDE hard disk storage unit. The key register 24 provides the 56-bit key which is utilized in the DES cipher unit 25 for enciphering data. The cipher unit 25 is of a current commercially available type, for instance one of the types supplied by the firm of Western Digital. Since the actual operation of the DES cipher algorithm is not important for a proper understanding of the present invention, except that it is necessary to know that encryption occurs word for word using the 56-bit encryption key and that the words have a width of 64 bits, the operation of this algorithm will not be further explained. Moreover, the operation of the algorithm is known from different publications. As is also known, the DES algorithm is capable of enciphering the data to be encrypted according to a block cipher mode or a cipher feedback mode. The availability of these two modes is not important for a proper understanding of the present invention either, and the actual significance thereof for encryption, which, for that matter, is also known from the literature, will not be further discussed. For a detailed exposition of the possible applications of encryption according to the DES algorithm in commucation systems and computers, reference is made to the article "LSI-based data encryption discourages the data thief" by H.J. Hindin in Electronics, June 21, 1979, pp. 107-120. A disk storage unit of the IDE type is a sector-oriented storage medium having a storage capacity of 512 byte per sector. A total storage capacity of one million sectors or more per IDE disk storage unit is possible. An IDE disk storage unit possesses 18 task registers for input/output (I/O) operations. For a more detailed discussion of these registers and their specific functions, reference may be made to the article "The IDE Hard Disk Interface" by R.C. Alford in BYTE, March 1991, pp. 317-323. Relevant to the present invention is only the data register of an IDE disk storage unit, to be addressed under the address 1FO, this register giving access to the hard disk storage unit for read and write operations in the programmed I/O mode. This register provides a path of 16-bit width to the sector storage for normal read and write operations. In the device according to the invention, all data to and from the data register are enciphered and deciphered, with the exception of the commands "Format" and "Identify Drive", which commands are recognized by the device 2 in a manner that is of no further relevance, and, through inactivation of the DES cipher unit 25 during the transmission of these two commands, are transferred direct to the IDE bus 3. To realize the objective of the present invention, i.e., to obtain encryption of data to be transferred to and from a hard disk storage unit without additional software, the device 2 comprises a 16- to 64-bit converter 26 and a 64- to 16-bit multiplexer 27. The purpose of converter 26 is to convert, in the encryption mode of unit 2, the 16-bit data words coming from the AT bus 1 to 64-bit data words, which are applied to the input of the DES circuit 25 so as to be enciphered, as well as to convert, in the decryption mode of unit 2, the 16-bit data words coming from the IDE bus to 64-bit data words, which are likewise applied to the input of the DES circuit 25 so as to be deciphered. The purpose of the multiplexer 27 is to convert the 64-bit data words generated by the DES circuit 25 to 16-bit data words, which, in the encryption mode, i.e., during data writing to the IDE disk storage unit, are applied to the IDE bus 3, and which, in the decryption mode, i.e., during data reading from the IDE disk storage unit, are applied to the AT bus 1. The converter 26 and the multiplexer 27 are controlled by means of clock signals, in such a manner that a user will not notice that a cipher unit has been included between the central processor of his computer and the IDE disk storage unit. The user will not even notice this by the speed at which the data are processed, because no noticeable delay is introduced by the cipher device according to the present invention. Fig. 3a shows how 16-bit data words are enciphered during an I/O write operation. The central processor (CPU) 6, connected to the AT bus 1, continuously generates I/O write cycli, during four of which the data generated by the CPU are buffered in the converter 26 and converted to a 64-bit data word. After every fourth I/O write cycle, the 64-bit data word is applied to the DES cipher unit 25 by the converter 26 and enciphered by the cipher unit 25 during the fifth I/O cycle, i.e., the first I/O cycle of the next group of four I/O cycli, while, simultaneously, at the input of the converter 26 already a next 16-bit data word is read. After the fifth I/O cycle, the enciphered 64-bit data word is buffered and during the next four I/O cycli, the multiplexer 27 forms four 16-bit data words from the enciphered data word, these 16-bit data words being successively transferred via the IDE bus 3 to the IDE disk storage unit. In Fig. 3a, the upper line indicates the successive I/O cycli, the middle line indicates the cycli during which the data are enciphered and the lower line indicates the cycli during which the data are transferred via the multiplexer as enciphered 16-bit data words to the hard disk storage unit. As appears clearly from Fig. 3a in particular, after an initial delay of four I/O cycli, there is no further delay as a result of encryption. For the user, therefore, the device is entirely transparent and it is as if the data is written direct to an IDE disk storage unit. Fig. 3b, analogously to Fig. 3a, shows the readout of enciphered 16-bit data words from the hard disk, their decryption as 64-bit data words and their transfer as 16-bit data words to the CPU. As the upper line of Fig. 3b shows, the first I/O read cycle of the CPU is delayed by four I/O periods, while, simultaneously, as indicated by the middle line, emulated I/O cycli to the IDE disk storage unit are started in order to read 16-bit enciphered data words therefrom, these enciphered 16-bit data words being successively applied to the converter 26, where they are assembled into a 64-bit enciphered data word. This enciphered 64-bit data word is applied to the cipher unit 25 after every fourth cycle and, in deciphered form, as a 64-bit data word, applied to the multiplexer 27 which buffers the data word and in the next four I/O cycli successively transfers four 16-bit data words to the CPU, as shown at the upper line in Fig. 3b. During the fifth I/O cycle, already the next 16-bit data word is read from the IDE disk storage unit and transferred to the converter 26, so that after the first delay of four I/O cycli, the system functions, so to speak, as a pipeline and introduces no further delay. Accordingly, during readout of enciphered data, after the initial delay of four I/O cycli, the cipher interface according to the invention is entirely transparant to a user and there is no need for additional software drivers and the like, while the interface according to the invention can cooperate without any problems with all known operating systems.

Claims: A device for enciphering and deciphering data to be written to or read from a hard disk, said device comprising a device (25) for ciphering by means of the DES algorithm and control logic (23) for receiving I/O read or write cycli from a central processing unit (6), wherein an input of the device (25) for ciphering is coupled to a bus (3) intended for transferring data words to and from a disk storage unit (7) and, via a converter (26) for converting data words having a word width of n bits to data words having a word width of m bits, to a bus (1) intended for transferring data words having a word width of n bits to and from a central processor unit (6), and wherein an output of the device (25) for ciphering by means of the DES algorithm is coupled to the bus of the disk storage unit and, via a multiplexer (27) for converting data words having a word width of m bits to data words having a word width of n bits, to the bus (1) of the central processor unit, characterized in that m = 64, that n < 64 and that 64 divided by n equals an integer, in that the input of the ciphering device is coupled to the bus (3) intended for transferring data words to and from the disk storage unit (7), via the converter (26) for converting data words having a word width of n bits to data words having a word width of 64 bits, in that the output of the ciphering device (25) is coupled to the bus of the disk storage unit (7) via the multiplexer (27) for converting data words having a word width of 64 bits to data words having a word width of n bits, and in that the control logic (23) at the begin of a period during which data to be written on the disk storage unit are enciphered, delays the first I/O write cycle to be applied to the disk storing unit over a period of 64 divided by n I/O cycli and at the begin of a period during which data to be read from the disk storage unit are deciphered, delays the first I/O read cycle to be applied to the central processing unit over a period of 64 divided by n I/O cycli, the arrangement being such, that after an initial delay of 64 divided by n I/O cycli the enciphered and deciphered n-bit words are applied successively to the hard disk storage unit and the central processing unit respectively, without further delay. A device as claimed in claim 1, characterized in that n = 16. A device as claimed in claim 1 and 2, characterized in that it is designed to recognize specific command words and to transfer these command words and the associated data without encryption from or to the disk storage unit.

Inventors: OPDAM NICOLAAS JOHANNES MARIA, VAN MAANEN JAN, VAN RUMPT HARM WOUTER, VERVOORN WILLEM JAN, OPDAM, NICOLAAS JOHANNES MARIA, VAN MAANEN, JAN, VAN RUMPT, HARM WOUTER, VERVOORN, WILLEM JAN
Applicants: TULIP COMPUTERS INTERNATIONAL, TULIP COMPUTERS INTERNATIONAL B.V.
Application year: 1993
Main classification: G06F12
IPC codes: G06F21, G06F1