Encryption communication process and terminal for encryption communication5757911Abstract An encryption communication terminal includes an encryption key table 9a for registering secret encryption keys and an encryption box 9b for storing received encrypted data. When encrypted data is received, the decryption of the received encrypted data is tried by using a secret encryption key Ki registered in the encryption key table 9a. If the encrypted data can successfully be decrypted by using the registered secret encryption key Ki, the decrypted data is printed out. On the other hand, if the encrypted data cannot be decrypted, the received encrypted data is stored in the encryption box 9b, and then a reception report is output to notify that encrypted data is stored in the encryption box 9b. This reception report lets a recipient user know that encrypted data has been received but cannot be decrypted. The recipient user may ask the transmitter about the secret encryption key Ki to decrypt the received encrypted data. Claims I claim: Description BACKGROUND OF THE INVENTION
TABLE 1
______________________________________
Table numbers Secret encryption keys
______________________________________
00 0123456789
01 1232233234
02 1313131313
03 9876543210
04
05
06
.
n 1212121212
______________________________________
In Table 1, table numbers having blanks in the column of the secret encryption keys mean that secret encryption keys of some table numbers for those table numbers have not been registered yet. The memory 9 also has an encryption box 9b as shown in FIG. 2. The encryption box 9b comprises a DRAM, SRAM or the like. As will be described later, the encryption box 9b serves to temporarily store for received encrypted data that cannot be decrypted. Further, the facsimile machine of FIG. 1 has an operation section 10. Arranged on the operation section 10 are such keys as ten keys 10a operated by a user for inputting a facsimile number or a like, a start key 10b for inputting a start signal for actuating the facsimile machine, an encryption communication key 10c for designating an encryption communication and function keys 10d for setting the operation mode of the facsimile machine such as an output mode or a secret encryption key setting mode. The types of keys are not limited to the aforesaid ones. Other keys may, as required, be added thereto or substituted therefore. When the facsimile machine shown in FIG. 1 receives data, the data is sent to the modem 5 via the NCU 7. If the received data is simply compression-encoded image data, that is, the data is sent through an ordinary facsimile communication, the received image data is demodulated in the modem 5, and then decoded (or decompressed) into original image data in the receiving function section 11. Thereafter, the original image data is sent to a printing section 12 and then printed out on a paper sheet in the printing section 12 for the reproduction of the transmitted image data of a document original. On the other hand, if the received data is encrypted data, that is, the data is sent through an encryption communication, the received encrypted data is demodulated in the modem 5, and then subjected to a decryption process in the encryption communication unit 6. Thereafter, the decrypted data is decoded into original image data in the same manner as the foregoing and then printed out on a paper sheet in the printing section 12 for the reproduction of the transmitted image data of a document original. FIG. 3 is a flow chart of a data receiving process in the facsimile machine. When the connection between the transmitter facsimile machine and receiver facsimile machine is established, it is first identified to which transmitter facsimile machine the receiver facsimile machine is connected (step S1). The transmitter facsimile machine is identified by a table number assigned to the facsimile number of the transmitter facsimile machine and included in a CIG (calling subscriber identification) signal which is transmitted prior to the transmission of the image data or encrypted data. Then, it is judged in the receiving facsimile machine whether or not the current communication is an encryption communication (step S2). This judgement is based on whether or not a flag indicative of encryption communication is set, which flag is contained in an NSS (non-standard facilities set-up) signal transmitted prior to the transmission of the image data or encrypted data. As the result of the judgement, if the flag is not set, it is judged that the current communication is an ordinary facsimile communication, and the aforesaid ordinary facsimile receiving process is carried out (step S3). If the flag is set, on the other hand, it is judged that the current communication is an encryption communication. If it is judged that the current communication is an encryption communication, it is judged, in response thereto, whether or not a secret encryption key Ki is stored in correspondence to the table number included in the aforesaid CIG signal (step S4). As a result, if a secret encryption key Ki is stored, the stored secret encryption key Ki is read out, and it is judged whether or not the received encrypted data can be decrypted by using the secret encryption key Ki thus read out (step S5). On the other hand, if the secret encryption key Ki is not stored, it is considered that the secret encryption key was not preliminarily decided by the transmitter and receiver, and the process directly enters a step S7 which will be described later. Next, the judgement process performed in the aforesaid step S5 will more specifically be described. The first n (e.g., n=1 to 5) lines of the received encrypted data are subjected to a decryption process by using the read-out secret encryption key Ki. If the read-out secret encryption key Ki agrees with a secret encryption key which was used to generate the encrypted data in the transmitter facsimile machine, the image data to be output after the decryption process has a bit number per line determined by the size of the transmitted original document. More specifically, if the transmitted original document is of A4 size, the bit number per line is 1728 bits. On the other hand, if the read-out secret encryption key Ki does not agree with the secret encryption key which was used to generate the encrypted data in the transmitter facsimile machine, the image data to be output does not have 1728 dots per line, even when that the transmitted original document is of A4 size. That is, whether or not the encrypted data is decryptable can be judged based on the bit number per line of the image data to be output. As the result of the judgement in the step S5, if it is judged that the encrypted data is decryptable, then the encrypted data is decrypted, and the ordinary image data outputting process, including decoding and printing, is performed (step S6). On the other hand, if it is judge that the encrypted data is not decryptable, it is considered that either the transmitter or the receiver used an incorrect secret encryption key, and the received encrypted data is stored in the encryption box 9b of the memory 9 (step S7). In response thereto, a reception report indicating that encrypted data is stored in the encryption box 9b is output from the printing section 12 (step S8). An exemplary reception report is shown in FIG. 4. Thus, if the secret encryption key is not preliminarily decided or if an incorrect secret encryption key is used, the received encrypted data is stored in the encryption box 9b and, therefore, the encryption communication can be carried out. Further, since the reception report is output in response to the encrypted data being stored in the encryption box 9b, the recipient user can easily and promptly detect the reception of the encrypted data. After confirming the reception of the encrypted data by the reception report, the recipient user can reproduce the transmitted original image from the received encrypted data. The original image data outputting process will next be described. FIG. 5 is a flow chart of an image outputting process in the facsimile machine. In order to reproduce the transmitted original image from the encrypted data stored in the encryption box 9b, it is necessary to switch the operation mode of the facsimile machine to an output mode. When the recipient user operates the function key 10d to switch the operation mode to the output mode (step P1), the control section 3 checks whether or not encrypted data is stored in the encryption box 9b (step P2). As a result, if encrypted data is not stored, the process exits from the output mode. On the other hand, if encrypted data is stored, it is judged whether or not a secret encryption key has been input (step P3). The fact that the encrypted data is stored in the encryption box 9b means that there was not stored a secret encryption key Ki necessary to decrypt the encrypted data in the encryption key table 9a or that the secret encryption key Ki stored in the encryption key table 9a is incorrect. Therefore, the secret encryption key used for the encryption of the original image data for transmission is necessary for reproducing the original image from the encrypted data stored in the encryption box 9b. The recipient user can determine the secret encryption key, for example, by asking the transmitter about it. When the recipient user switches the operation mode of the facsimile machine to a secret encryption key setting mode for inputting a secret encryption key, and then inputs the secret encryption key, it is judged whether or not there is stored any encrypted data that can be decrypted by using the input secret encryption key (step P4). The judging process is the same as that described with reference to FIG. 3 and, therefore, no explanation will be given of it. As the result of the judgement, if there is stored no decryptable encrypted data, the outputting process ends. On the other hand, if decryptable encrypted data is stored, the encrypted data is decrypted by using the input secret encryption key (step P5). Thereafter, the data is subjected to the decoding process, and then the transmitted original image is printed out on a paper sheet by the printing section 12 for reproduction (step P6). Then, the process returns to the step P4, and the aforesaid process sequence is repeated until all the stored encrypted data decryptable by using the inputted secret encryption key are decrypted. In the aforesaid embodiment, it is identified to which transmitter facsimile machine the receiver facsimile machine is connected (i.e., the transmitter is identified) in the step S1 shown in FIG. 3, then the secret encryption key Ki stored in correspondence to the table number of the transmitter facsimile machine thus identified is read out in the step S4, and it is judged in the step S5 whether or not the transmitted encrypted data can be decrypted by using the secret encryption key Ki thus read out. Instead of the aforesaid process, as shown in a flow chart in FIG. 6, it may be judged whether or not the encrypted data can be decrypted by using the plural secret encryption keys Ki successively read out of the encryption key table 9a, without identifying the transmitter facsimile machine. By employing such a process, the secret encryption keys Ki can be easily managed, because the secret encryption keys are not necessarily registered and managed in strict correspondence to the transmitter facsimile machines. More specific explanation will be given of this process with reference to FIG. 6. When the connection between the transmitter facsimile machine and the receiver facsimile machine is established, the receiver facsimile machine first judges whether or not the current communication is an encryption communication (step S11). This judgement is based on whether or not a flag indicative of the encryption communication is set, which flag is contained in an NSS (non-standard facilities set-up) signal transmitted prior to the transmission of the image data or encrypted data. As the result of this judgement, if the flag is not set, it is judged that the current communication is an ordinary facsimile communication, and the aforesaid ordinary facsimile receiving process is carried out (step S12). If the flag is set, on the other hand, it is judged that the current communication is an encryption communication. In the case of an encryption communication, when encrypted data transmitted from the transmitter facsimile machine is received (step S13), any one of the secret encryption keys is read out of the encryption key table 9a, and then it is judged whether the received encrypted data can be decrypted by using the secret encryption key thus read out (step S14). In this embodiment, it is first judged whether or not the encrypted data can be decrypted by using a secret encryption key K.sub.1. The judgement process performed in the step S14 will more specifically be described. The first n (e.g., n=1 to 5) lines of the received encrypted data are subjected to the decryption process by using the read-out secret encryption key K.sub.1. If the read-out secret encryption key K.sub.1 agrees with a secret encryption key which was used to generate the encrypted data in the transmitter facsimile machine, the image data to be output after the decryption process has a bit number per line determined by the size of the transmitted original document. More specifically, if the transmitted original document is of A4 size, the bit number per line is 1728 bits. On the other hand, if the read-out secret encryption key K.sub.1 does not agree with the secret encryption key which was used to generate the encrypted data in the transmitter facsimile machine, the image data to be output does not have 1728 dots per line even in case that the transmitted original document is of A4 size. That is, whether or not the encrypted data is decryptable can be judged, based on the bit number per line of the image data to be output. As the result of the judgement in the step S14, if it is judged that the encrypted data is decryptable by using the secret encryption key K.sub.1, the encrypted data subsequently received is processed through the decryption process by using the secret encryption key K.sub.1 (step S15), and then the ordinary image data outputting process including decoding and printing is performed (step S20). On the other hand, if it is judged that the encrypted data cannot be decrypted by using the secret encryption key K.sub.1, it is next judged in the aforesaid manner whether or not the encrypted data can be decrypted by using a secret encryption key K.sub.2 (step S16). As a result, if it is judged that the encrypted data can be decrypted by using the secret encryption key K.sub.2, the encrypted data subsequently received is processed through the decryption process by using the secret encryption key K.sub.2 in the same manner as described above (step S17). On the other hand, if it is judged that the encrypted data cannot be decrypted by using the secret encryption key K.sub.2, it is next judged whether or not the encrypted data can be decrypted by using a secret encryption key K.sub.3 (step S18). As a result, if it is judged that the encrypted data can be decrypted by using the secret encryption key K.sub.3, the decryption process is carried out by using the secret encryption key K.sub.3 (step S19). If it is judged that the encrypted data cannot be decrypted using the secret encryption key K.sub.3, this process is repeated through all of the encryption keys Ki stored in table 9a until a secret encryption key is found with which the encrypted data can be decrypted. If the encrypted data cannot be decrypted by using any of the secret encryption keys Ki registered in the encryption key table 9a, the received encrypted data is stored in the encryption box 9b in the same manner as in the steps S7 and S8 described with reference to FIG. 3 (step S21). Then, a reception report indicating that the encrypted data is stored in the encryption box 9b is output from the printing section 12 (step S22). As can be understood from the foregoing, a plurality of secret encryption keys Ki stored in the encryption key table 9a are successively employed for the decryption process in accordance with this embodiment. Accordingly, the secret encryption keys are not necessarily required to be stored in strict correspondence to the transmitter facsimile machines, and hence decryption can be achieved simply by storing the secret encryption keys in the encryption key table 9a. Thus, the management of the secret encryption keys can be facilitated, thereby improving the user interface. While the present invention has been described by way of the above embodiments, it should be understood that the present invention is not limited to the specifics described in the embodiments. For instance, though the foregoing embodiments have taken an example of a facsimile machine as a terminal, the present invention can be widely applied to terminals of various kinds including personal computers, word processors and other terminals capable of encryption communications. Further, though the foregoing embodiments have taken an example of encryption communications for the transmission of image data, the present invention can be applied to encryption communications for the transmission of other data. Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the spirit and scope of the present invention being limited only by the terms of the appended claims.
|
Same subclass Same class Consider this |
||||||||||
