Field of the Invention
This invention relates to apparatus for data encryption comprising an input keyboard, an enciphering stage for processing data which includes a cipher generator that produces a cipher pulse sequence dependent on a code item supplied thereto in the form of a set of code characters, and a random code generator coupled to said cipher generator for generating said code item.
The invention has particular application to an apparatus for encryption-decryption data in which the data is processed in an encipher-decipher stage and in which the cipher generator produces the cipher pulse sequence in dependence upon its initial state at the start of data processing, the initial state being determined by two code items, the random code generator, or an equivalent, providing one of the code items. Such apparatus may further include means for controlling the sequence of functions of the apparatus and an output device such as a display.
The Prior Art
Apparatus of the kind set forth in the preceding paragraph is commercially available, for example the apparatus manufactured by Gretag A.G. in Switzerland under the model nos. TC803, GC905 and GC805. Various features of this apparatus are disclosed in U.S. Pat. Nos. 3,291,208, 3,657,477, 3,678,198, 3,740,475, 4,145,568 (all to Ehrat) and 4,068,089 (Kuhnlein et al). Features of similar apparatus are also disclosed in Swiss Pat. Nos. 592,397 and 549,261.
In such apparatus the one code data item is either written-in manually via the keyboard in separate operation character by character; or with the aid of the random code generator the operation is performed automatically, which entails relatively expensive additional circuitry. With the advent of pocket computer format encoders, it is generally desirable to provide economic circuitry for the random code generation.
Summary of the Invention
It is therefore an object of this invention to provide a means of producing a code data item automatically without the use of expensive circuitry.
To this end in apparatus for data encryption including a keyboard, an encipher stage for processing data which includes a cipher generator that produces a cipher pulse sequence dependent on a code item supplied thereto in the form of a set of code characters, and a random generator coupled to the cipher generator for generating the code item, the present invention proposes that the random code generator comprises means for generating code characters, for example as a repeated sequence of characters such as represented by the states of a continually running cyclically operating modulo-n counter; and a store for holding the set of code characters constituting the code item. The keyboard has an output, such as a strobe output, connected to the random code generator to control it and cause a code character to be entered in the store on each of successive actuations of at least a group of the keys of the keyboard. Where, for example, a repeated sequence of characters is generated the character present at the instant of key actuation is entered in the store. The store is conveniently a first-in first-out (FIFO) memory device, the keyboard actuation controlling a read-in input of the device. The set of code characters is read out of the store for use as the code data item, or the said one code data item in the specific encipher-decipher apparatus discussed above, at the start of processing under the control of a function sequence control means. The data processed may conveniently come from a text store rather than directly from the input keyboard.
There will be described hereinafter an embodiment of the invention as applied to a data encryption-decryption apparatus.
Brief Description of the Drawings
Apparatus for data encryption-decryption in accord with the invention is illustrated in the accompanying drawing, the single FIGURE of which shows the circuit of the apparatus in block diagram form.
In the drawing, the apparatus shown comprises a keyboard 1, a processing and control stage 2, an output facility 3, e.g. in the form of an alpha-numerical visual display, and a random character generator comprising a modulo-n-counter 4 and a FIFO (first-in, first-out) memory capable of storing a number of characters and so organised that the write-in and read-out of data can proceed independently of one another but the data is read-out in the same sequence as it is written in. The units 1-5 are interconnected by data and control lines (not shown).
Except for the store 5 and counter 4, the device shown is similar to known encipher-decipher devices such as the models TC-803, GC-805 and GC-905 previously referred to or the devices disclosed in the above-mentioned Swiss patent specifications Nos. 952,937 and 594,261. The processing and control stage 2 takes the form of a microcomputer system and comprises, inter alia, a cipher generator 21 which can be set by a number of code characters to a predetermined initial state and then independently produces a substantially random cipher pulse sequence for encryption or decryption of data directly from the keyboard or from some other source such as a text store. The initial state of the cipher generator is controlled by two code data items, one within the cipher generator 21 and the other derived with the aid of the random character generator, as will be explained. Of course, the cipher generator could be in software form.
The practical implementation of the invention makes use of the fact that in virtually all uses of the encipher-decipher apparatus some keys of the keyboard must be operated before the actual encipher or decipher operation. This is particularly true of apparatus which includes a text store into which either the complete text to be processed or at least a large part thereof is input to be subsequently processed as a whole by the encipher-decipher stage. The present invention exploits these various input keyboard operations that are performed in any event to produce and/or store the discrete characters of the random code item, so that no separate key operations are necessary for this purpose. How this is done in the illustrated embodiment will now be described more fully.
Reverting to the drawing, the modulo-n-counter 4 forming the random generator is clocked continuously by a tiing or clock signal supplied via line 41, for example at 100 kHz. The random character generator 4 is coupled to the FIFO data input. The read-in of the code data into the FIFO store 5 is controlled by a STROBE signal from the keyboard 1. Thus the counter 4 is continually cycling to produce a repeated sequence of characters, i.e. the states of the counter; and the moment of entering the instantaneous state into the FIFO store 5 is determined by the actuation of a keyboard key or at least a key from a certain group of the keys. Each actuation of a key of the keyboard 1 produces a STROBE pulse which is supplied as a read-in signal to the FIFO store 5 the effect of which is that the instantaneous state of the counter 4 is read into store 5. The total number of possible counter states represents the possible code characters. The number of code characters can be controlled by an appropriate choice of the cycle length n of the counter. More particularly, if the code characters are limited to letters of the alphabet, n can be limited to, e.g. 26.
Consequently, each keying operation produces a code character which is read into the FIFO store 5 which can comprise, for example, ten storage stages. If the keyboard is operated more than ten times before the code characters are called out of the store, the last ten characters read-in are present in the store.
Once the text to be enciphered or deciphered has been read into the text store (not shown), processing of the text begins. To this end, the processing stage 2 first supplies a read-out signal to the FIFO store 5, reads out the code characters and transfers them to the encoding generator 21. These characters determine the initial state of the cipher generator in producing the cipher sequence mentioned above. The input text is then processed in known manner, for instance, as disclosed in the patent specifications hereinbefore referred to.
If the code characters produced by the counter 4 are to have a sufficiently random character, the counter 4 must cycle fast enough. The lowest permissible limit for the counter timing is for the counter to pass through at least one complete counting cycle in the shortest possible period of time between two consecutive operations of the keyboard. As a rule, this period of time is determined by keyboard construction and is in the region of 50 milliseconds. In practice, the timing frequency is much higher to enable the counter to cycle at least approximately from 10 to 100 times between two keyboard operations, which experience shows are normally spaced apart by approximately 300 milliseconds. Practical timing frequencies are approximately from 1 kHz upwards, preferably more than 50 kHz and up to about 500 kHz and more particularly of the order of 100 kHz.
Of course, many other cyclic code generators could be used instead of the modulo-n-counter 4. Similar considerations apply to the FIFO store 5. However, the specific elements 4 and 5 disclosed herein have proved very convenient.