Data control apparatus, data protection system, and computer program
Patent Information
- Application Number
- JP2023053601
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
【0082】 (効果) 図11を参照して、データ保護システム1及び端末装置10の効果を説明する。制御部20は、鍵データ104及び第1種のナンス106を含む暗号情報データ103を用いて、特定データファイル102を暗号化して、暗号化データ52aを生成する(図7のS34)。これにより、保護対象の特定データファイル102が暗号化された第1種の暗号化データ52aが生成される。第1種の暗号化データ52aが生成される際に生成される第1種の認証タグ108は、第1種のナンス106とともに、ファイル情報114に含まれる。ファイル情報114は、鍵データ104及び第2種のナンス116を用いて、暗号化され、第2種の暗号化データ126が生成される(図7のS44)。
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The technology disclosed in this specification relates to a data control device and a data protection system. [Background technology]
[0002] Patent Document 1 discloses a secret information system that encrypts and manages secret information. The secret information system includes a data storage server that stores storage secret information data including encrypted secret information, and a data management server that generates storage secret information data stored in the data storage server and searches, updates, and deletes the storage secret information data. The data management server generates a public key used for encryption and a private key used for decrypting secret information encrypted with the public key. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-85521 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the above technology, a private key stored in the data management server is used to decrypt the secret information data stored in the data storage server. If the security of the data management server itself is weak, there is a possibility that the private key may be leaked.
[0005] This specification provides a technique that can prevent leakage of key data for decrypting encrypted data. [Means for solving the problem]
[0006] A first aspect of the technology disclosed in this specification relates to a data control device. The data control device may include a communication interface connected to an external storage device so as to be capable of data communication, a key share generation unit that generates a first key share group including a plurality of key shares by distributing first key data used to decrypt encrypted data in which specific data is encrypted, a first storage control unit that stores the first key share group in a storage unit, and a second storage control unit that stores a second key share group in the first key share group in the external storage device connected to the communication interface and different from the storage unit.
[0007] In the above configuration, the first key data used to decrypt the encrypted data is stored in both the storage unit and the external storage device. As a result, even if the shared key data stored in either the device having the storage unit or the external storage device is leaked to a third party, the first key data will not be obtained unless other shared key data is obtained. With this configuration, it is possible to prevent the first key data from being leaked.
[0008] In a second aspect, in the above first aspect, the first storage control unit may store the encrypted data in the storage unit.
[0009] In this configuration, the encrypted data is stored in the same storage unit as the first key share. With this configuration, even if the encrypted data and the first key share are leaked from the storage unit, the first key share cannot be generated. This eliminates the need to install a device for storing the first key share separately from the storage unit in which the encrypted data is stored.
[0010] In a third aspect, in the first or second aspect above, the data control device may further include an encryption data generation unit that encrypts the specific data using the first key data to generate encrypted data.
[0011] According to this configuration, encrypted data can be generated in the data control device.
[0012] In a fourth aspect, in any one of the first to third aspects above, the data control device may further include a key generation unit that generates the first key data using the first distributed key data group including the first distributed key data stored in the storage unit and the second distributed key data stored in the external storage device, and a decryption unit that generates the specific data by decrypting the encrypted data using the generated first key data.
[0013] According to this configuration, the first key data and the specific data can be generated in the data control device.
[0014] In a fifth aspect, in any one of the first to fourth aspects above, the data control device may further include an update receiving unit that receives an update to the specific data when the external storage device is connected to the communication interface.
[0015] According to this configuration, when the external storage device is not connected to the communication interface, updating of the specific data can be restricted.
[0016] In a sixth aspect, in the fifth aspect above, when the update of the specific data is accepted, the encrypted data generation unit encrypts the updated specific data using second key data different from the first key data to generate encrypted data, the distributed key data generation unit generates a second distributed key data group including a plurality of distributed key data by distributing the second key data, the first storage control unit stores a third distributed key data of the second distributed key data group in the storage unit, and the second storage control unit stores a fourth distributed key data of the second distributed key data group in the external storage device via the communication interface.
[0017] According to this configuration, new key data can be generated every time the specific data is updated, thereby making it possible to prevent leakage of key data that can be used for decryption.
[0018] In a seventh aspect, in any one of the first to sixth aspects above, the data control device may further include a key update unit that updates the first key data to third key data different from the first key data, the third key data being used to decrypt the encrypted data into the specific data, when a predetermined condition is met.
[0019] According to this configuration, new key data can be generated according to conditions, thereby making it possible to prevent leakage of key data that can be used for decryption.
[0020] In an eighth aspect, in any one of the first to seventh aspects above, the specific data may include fifth key data used to decrypt first encrypted data obtained by encrypting the first data, and sixth key data used to decrypt second encrypted data obtained by encrypting the second data.
[0021] According to this configuration, by encrypting the fifth key data and the sixth key data, it is possible to prevent the fifth key data and the sixth key data from being leaked. By dividing the first key data for decrypting the fifth key data and the sixth key data, it is not necessary to divide each of the fifth key data and the sixth key data.
[0022] In a ninth aspect, in the above eighth aspect, the first storage control unit may cause the first encrypted data and the second encrypted data to be stored in the storage unit.
[0023] A tenth aspect of the technology disclosed in this specification relates to a data protection system. The data protection system may include a data control device and an external storage device, and the data control device may include a communication interface for connecting to the external storage device so as to be able to perform data communication, a distributed key data generation unit for generating a first distributed key data group including a plurality of distributed key data by distributing first key data used for decrypting encrypted data in which specific data is encrypted, a first storage control unit for storing the first distributed key data of the first distributed key data group in a storage unit, and a second storage control unit for storing a second distributed key data of the first distributed key data group in the external storage device connected to the communication interface and different from the storage unit.
[0024] In the above configuration, the first key data used to decrypt the encrypted data is stored in both the storage unit and the external storage device. As a result, even if the shared key data stored in either the device having the storage unit or the external storage device is leaked to a third party, the first key data will not be obtained unless other shared key data is obtained. With this configuration, it is possible to prevent the first key data from being leaked.
[0025] In an eleventh aspect, in the tenth aspect, the external storage device may include a portable storage device that is portable by a user.
[0026] According to this configuration, a user can easily supply the shared key data to a terminal device by carrying the portable storage device.
[0027] In a 12th aspect, in the 10th or 11th aspect above, the second storage control unit may prohibit storing in the external storage device the distributed key data of the second key data used to encrypt data recorded in a data file other than a specific data file to generate encrypted data when the second distributed key data is stored in the external storage device.
[0028] According to this configuration, it is possible to prevent the shared key data of multiple key data from being stored in one external storage device, thereby preventing the shared key data of multiple key data from being leaked from the external storage device.
[0029] A computer program and method for a data control device for implementing the above aspects are also novel and useful. [Brief description of the drawings]
[0030] [Figure 1] FIG. 1 shows a schematic diagram illustrating the features of the technology disclosed in this embodiment. [Diagram 2] FIG. 1 shows a schematic diagram illustrating the features of the technology disclosed in this embodiment. [Diagram 3] FIG. 1 shows a schematic diagram illustrating the features of the technology disclosed in this embodiment. [Figure 4] FIG. 2 shows a configuration block diagram of a terminal device according to an embodiment of the present invention. [Diagram 5] 1 shows a configuration block diagram of a USB flash drive according to an embodiment. [Figure 6] 1 shows a flowchart of a data protection process according to an embodiment. [Figure 7] 1 shows a flowchart of a distributed storage process according to a first embodiment. [Figure 8] 1 shows a flowchart of a data usage process according to an embodiment. [Figure 9] 13 shows a display unit that displays an image of a storage area when no data files are stored in the USB flash drive of the embodiment. [Figure 10] 1 shows a display unit that displays an image of a storage area when a data file is stored in a USB flash drive of an embodiment. [Figure 11] FIG. 2 shows a conceptual diagram for explaining a distributed storage process according to the first embodiment. [Figure 12] 13 shows a flowchart of a division storage process according to a second embodiment. [Figure 13] FIG. 13 shows a conceptual diagram for explaining a distributed storage process according to the second embodiment. [Figure 14]13 shows a flowchart of a division storage process according to a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0031] (Summary of the Example) First, an overview of the technology disclosed in this embodiment will be described with reference to Fig. 1 to Fig. 3. As shown in Fig. 1, a data protection system 1 includes a terminal device 10 and one or more external storage devices 80. The terminal device 10 is a terminal that is fixedly placed at a specific position, such as a desktop personal computer, or a portable terminal that can be carried by a user, such as a laptop personal computer or a tablet terminal. The terminal device 10 may be available to one specific user (e.g., user U1), or may be available to multiple users U1, U2, and U3.
[0032] The terminal device 10 stores a plurality of data files 2, 2, 4. The plurality of data files 2, 2, 4 include an encrypted data file 2 and an unencrypted data file 4. Key data is required to decrypt the data file 2. Note that encryption of the data file 2 refers to encryption of data recorded in the data file 2, but in this specification it may be simply referred to as encryption of the data file 2.
[0033] In the technology disclosed in this embodiment, key data is distributed into a plurality of shared data. For example, the key data is distributed into a plurality of shared key data by a secret sharing method. Alternatively, for example, the key data may be divided into a plurality of pieces to generate a plurality of shared data. In this case, for example, the key data may be divided so that the data sizes of the plurality of shared data are equal, or may be divided into predetermined sizes, and the data size of the last shared data may be equal to or smaller than the predetermined size. In this case, data for specifying the order of the plurality of shared data may be generated. In this specification, in addition to secret sharing, a process of simply dividing the key data to generate a plurality of partial data is also called "distribution", and data generated by sharing is called "distribution data".
[0034] In the example shown in FIG. 1, key data is distributed into two pieces of shared data 6 and 8. One of the two pieces of shared data 6 and 8, the shared data 6, is stored in the terminal device 10. The other piece of shared data 8 is stored in one or more external storage devices 80. The external storage devices 80 are external devices that are arranged independently of the terminal device 10, such as a USB flash drive (hereinafter simply referred to as a "USB memory") or a mobile terminal. The external storage device 80 is a device that is communicatively connected to the terminal device 10. In this specification, the external storage device 80 is referred to as a USB memory 80.
[0035] Two users U1 and U2 each have a USB memory 80 in which shared data 8 is stored. On the other hand, user U3 does not have a USB memory 80. As shown in FIG. 2, when each of users U1 and U2 connects the USB memory 80 to the terminal device 10 so as to be able to communicate with each other (i.e., inserts the USB memory 80 into a USB receptacle (also called a USB interface) of the terminal device 10), the terminal device 10 becomes able to generate key data from the two shared data 6 and 8.
[0036] This allows the terminal device 10 to decrypt the encrypted data file 2. As a result, each of the users U1 and U2 can cause the terminal device 10 to view, update, use, etc. the data recorded in the data file 2.
[0037] On the other hand, user U3, who does not have the USB memory 80, cannot have the terminal device 10 generate key data. For this reason, as shown in Fig. 3, user U3 cannot have the terminal device 10 decrypt the encrypted data file 2. User U3 cannot have the terminal device 10 view, update, use, etc., the data recorded in the data file 2. With this configuration, the data recorded in the data file 2 can be protected from user U3.
[0038] In the technology disclosed in this embodiment, by storing the distributed data in the USB memory 80, it is possible to restrict access to the data file 2 depending on the presence or absence of the USB memory 80. Furthermore, by storing the key data separately in the terminal device 10 and the USB memory 80, it is possible to prevent the key data from being leaked even if one of the terminal device 10 and the USB memory 80 is lost. Security can be improved compared to a configuration in which the key data is stored collectively in one place.
[0039] Although the user U3 who does not possess the USB memory 80 is restricted from accessing the data file 2, the user U3 can have the terminal device 10 view, update, use, etc., of the data recorded in the unencrypted data file 4. The users U1 and U2 who possess the USB memory 80 can have the terminal device 10 view, update, use, etc., of the data recorded in the unencrypted data file 4, regardless of whether or not the USB memory 80 is communicably connected to the terminal device 10. With this configuration, in order to restrict access to the data file, it is not necessary to restrict the use of the terminal device 10 itself in which the data file 2 to be restricted is stored. This makes it unnecessary to prepare a terminal device other than the terminal device 10 for viewing, updating, use, etc., of the data recorded in the unencrypted data file 4.
[0040] According to the above configuration, the data files that can be processed can be changed depending on whether the users U1, U2, and U3 can connect the USB memory 80 to the terminal device 10. This allows the terminal device 10 to process the data file 2 and the data file 4 with different security levels.
[0041] The data file 2 does not have to be stored in the terminal device 10, and may be stored in a storage device that is arranged separately from the terminal device 10 and communicatively connected to the terminal device 10. The storage device may be, for example, a hard disk drive communicatively connected to the terminal device 10, another terminal device, or a cloud server connected via the Internet. The external storage device 80 is not limited to a USB memory 80, but is preferably portable by the users U1 and U2.
[0042] There is no limit to the number of USB memories 80 storing the distributed data 8. For example, a USB memory 80 may be distributed to each of multiple members in charge of a specific project in one company. This allows data files related to a specific project to be accessible only by multiple members.
[0043] (First Example) As shown in Fig. 4, the terminal device 10 of this embodiment includes a control unit 20, an interface unit 30, a storage unit 50, a display unit 60, and an operation unit 70. Hereinafter, "interface" is referred to as "I / F." The control unit 20, the interface unit 30, the storage unit 50, the display unit 60, and the operation unit 70 are communicatively connected by wiring (not shown).
[0044] The interface unit 30 includes a USB I / F 32 and a network I / F 34. The USB I / F 32 is a communication I / F for communicating with devices having a USB terminal, including a USB memory 80. The USB I / F 32 has a receptacle for receiving a USB plug. The network I / F 34 is a communication I / F for the terminal device 10 to communicate with other devices via a network such as the Internet or an intranet. The network I / F 34 is used by the terminal device 10 to perform at least one of wired communication and wireless communication.
[0045] The control unit 20 includes a CPU 22 and a memory 24. The control unit 20 executes various processes in accordance with a computer program 58 stored in the storage unit 50. The memory 24 is a volatile memory that is temporarily used while the CPU 22 is executing a process. The memory 24 includes a RAM. The RAM temporarily stores data recorded in the data file 4, for example, when the CPU 22 executes a process (e.g., display, update) on the data recorded in the data file 4.
[0046] The storage unit 50 is configured with a non-volatile memory such as a ROM, a flash memory, or a hard disk drive. The storage unit 50 stores a computer program 58. The storage unit 50 includes storage areas 52 and 54 for storing data. Encrypted data 52a can be stored in the storage area 52. Unencrypted data file 54a can be stored in the storage area 54.
[0047] The display unit 60 is a display for displaying various information. The display unit 60 is, for example, a liquid crystal display. The operation unit 70 includes buttons for accepting user operations such as a keyboard and a mouse. The display unit 60 is a so-called touch panel, and may also function as the operation unit 70.
[0048] (USB memory configuration) 5, the USB memory 80 includes a control unit 82, a storage unit 84, and a plug 86. The control unit 82, the storage unit 84, and the plug 86 are communicatively connected by wiring (not shown). The plug 86 is inserted into the USB I / F 32 of the terminal device 10 to communicatively connect the USB memory 80 to the terminal device 10. The plug 86 has a shape such as USB Type-C or USB Standard-A.
[0049] The storage unit 84 stores data. The storage unit 84 stores firmware for the control unit 82 to execute control. The storage unit 84 has a memory chip of a flash memory. The storage unit 84 is controlled by the control unit 82. The control unit 82 controls writing and reading of data to and from the storage unit 84 in accordance with the firmware stored in the storage unit 84. The control unit 82 has a CPU.
[0050] (Terminal device processing) The control unit 20 of the terminal device 10 can execute processes such as display, update, and transmission on the encrypted data 52a and data file 54a stored in the storage unit 50. The user can cause the control unit 20 to execute processes on the data file 54a by operating the operation unit 70. Since the data file 54a is not encrypted, it can be processed without using key data.
[0051] (Data protection processing) Next, the data protection process executed by the terminal device 10 will be described with reference to FIG. 6. The control unit 20 repeatedly executes the data protection process while the power supply of the terminal device 10 is on. In the data protection process, in S12, the control unit 20 waits for the USB memory 80 to be connected to the USB I / F 32. When the USB memory 80 is connected to the USB I / F 32 (YES in S12), in S14, the control unit 20 judges whether or not a data file is stored in the USB memory 80. Specifically, the control unit 20 reads out the data file stored in the storage unit 84 via the USB I / F 32. When the data file to be read out is not stored in the storage unit 84, the control unit 82 supplies the control unit 20 with a signal indicating that the data file is not stored. When the control unit 20 receives the signal indicating that the data file is not stored, it judges that the data file is not stored in the USB memory 80 (NO in S14) and proceeds to S16.
[0052] In addition, in S12, when the USB memory 80 is not connected to the USB I / F 32, the control unit 20 can execute processing on the unencrypted data file 54a among the data files stored in the storage unit 50. For example, the processing on the data file 54a includes a display process on the display unit 60 of an image representing the data recorded in the data file 54a according to a display operation on the operation unit 70 by the user, and a process of updating the data recorded in the data file 54a according to an update operation on the operation unit 70 by the user.
[0053] In S16, the control unit 20 causes the display unit 60 to display an image indicating that no data file is stored. Specifically, as shown in Fig. 9, the control unit 20 causes the display unit 60 to display a window image indicating the storage area 62 that does not include an icon image indicating that a data file is stored. The storage area 62 is displayed as a storage area of the memory 24.
[0054] 6, in S18, the control unit 20 determines whether or not a storage operation for storing a data file in the storage area 62 has been performed by the user operating the operation unit 70. Specifically, for example, when the user operates the mouse of the operation unit 70 to drag and drop an icon image representing a data file into the storage area 62, it is determined that a storage operation has been performed (YES in S18). If a storage operation has not been performed (NO in S18), the process proceeds to S22. If a storage operation has been performed (YES in S18), in S20, the control unit 20 executes a distributed storage process.
[0055] (Distributed storage processing) 7, in the distributed storage process, first, in S30, the control unit 20 encrypts the data file (hereinafter referred to as the "specific data file") stored in the storage area 62 in the storage operation in S18 according to the encryption algorithm AES (short for Advanced Encryption Standard). More specifically, the control unit 20 encrypts the specific data file according to AES-256.
[0056] In S32, the control unit 20 generates encrypted information data. The encrypted information data includes key data and a first type nonce (also called a nonce). The control unit 20 generates key data for encryption according to the code of the computer program 58. The control unit 20 generates a random value as the first type nonce. Note that the encryption algorithm used to encrypt the data file is not limited to AES, and may be any algorithm that uses a key (called "key data" in this specification) for encryption and decryption, such as DES (abbreviation of Data Encryption Standard). In a modified example, the control unit 20 may generate an initialization vector.
[0057] Next, in S34, the control unit 20 encrypts the specific data file to generate first type encrypted data 52a (see FIG. 4). The control unit 20 generates the first type encrypted data 52a from the specific data file using the key data and the first type nonce generated in S32. In S36, the control unit 20 stores the first type encrypted data 52a generated in S34 in the storage area 52 of the storage unit 50.
[0058] In S38, the control unit 20 generates a first type authentication tag. The control unit 20 generates encrypted data according to the encryption algorithm of AES-256. In the encryption algorithm of this embodiment, the GCM (short for Galois / Counter Mode) mode is used. The control unit 20 generates an authentication tag together with the encrypted data according to the code of the computer program 58. In a modified example, if the GCM mode is not used, the process of S38 is not executed and an authentication tag may not be generated.
[0059] In S40, the control unit 20 generates file information. The file information includes the first type nonce generated in S32 and the first type authentication tag generated in S38. If an initialization vector is generated, the file information may include the initialization vector. If the GCM mode is not used, the file information may not include the first type authentication tag. The file information includes decryption information, excluding key data, from information required to decrypt the first type encrypted data 52a generated in S32.
[0060] In addition to the information for decryption, the file information includes at least one of the following information for identifying the encryption algorithm (e.g., a value representing the GCM mode of AES-256, and version information of the encryption algorithm), the creation time, update time, number of updates, last processing time of the specific data file, file size, file name, relative path of the specific data file after decryption, and a checksum for the file information.
[0061] In S42, the control unit 20 generates a second type nonce. The control unit 20 generates the second type nonce in the same manner as the first type nonce in S32. Next, in S44, the control unit 20 generates second type encrypted data by encrypting the file information generated in S30 using the key data and the second type nonce generated in S32. The control unit 20 generates the second type encrypted data according to AES-256, similar to the process of S34.
[0062] In S46, the control unit 20 generates a second type authentication tag. As in the process of S38, the control unit 20 generates the authentication tag according to the code of the computer program 58. In a modified example, if the GCM mode is not used, the process of S46 does not need to be executed.
[0063] In S48, the control unit 20 concatenates the key data, the second nonce already generated in S42, and the second authentication tag already generated in S46, and generates shared data from the concatenated data. Specifically, the control unit 20 concatenates the key data, the second nonce already generated in S42, and the second authentication tag already generated in S46 to generate concatenated data. The control unit 20 combines the key data, the second nonce already generated in S42, and the second authentication tag already generated in S46 in a distinguishable manner to generate concatenated data, which is a series of data. Next, the control unit 20 generates shared data from the concatenated data using a threshold method as a secret sharing method. In this embodiment, a (2,2) threshold method is used to generate shared data. As a result, the control unit 20 generates two pieces of shared data, namely, the first type of shared data and the second type of shared data. The control unit 20 assigns related extensions to the first type of shared data and the second type of shared data. Thereby, the control unit 20 can specify that the two pieces of shared data are related by checking the extension. In a modified example, the AONT (short for All Or Nothing Transform) secret sharing method may be used as the secret sharing method. In a modified example, when generating shared data from the concatenated data, the shared data may be generated by a method other than secret sharing. For example, the concatenated data may be divided into a plurality of pieces to generate a plurality of shared data. In this case, for example, the concatenated data may be divided so that the data sizes of the plurality of shared data are equal, or may be divided into predetermined sizes, and the data size of the last shared data may be equal to or smaller than the predetermined size. In this case, data for specifying the order of the plurality of shared data may be generated.
[0064] In S50, the control unit 20 stores the first type of distributed data generated in S48 in the storage area 52, similarly to the first type of encrypted data 52a. As shown in FIG. 4, the first type of distributed data 52b is stored in the same storage area 52 as the encrypted data 52a. In S52, the control unit 20 creates a data file including the second type of distributed data generated in S48 and the second type of encrypted data generated in S44, and stores the data file in the USB memory 80. A specific extension (for example, the extension ".uwm1") defined by the computer program 58 is assigned to the data file. In response to a request from the control unit 20, the control unit 82 stores the data file 84a including the second type of distributed data and the second type of encrypted data in the storage unit 84, and ends the distribution storage process.
[0065] 6, when the distributed storage process is completed, the process proceeds to S22. In S22, the control unit 20 judges whether or not the USB memory 80 is to be removed from the USB I / F 32. If it is judged that the USB memory 80 is to be removed (YES in S22), the control unit 20 returns to S12 and executes the process of S12. On the other hand, if it is judged that the USB memory 80 is not to be removed (NO in S22), the control unit 20 returns to the process of S18.
[0066] In S14, if the data file to be read is stored in storage unit 84, control unit 82 supplies a signal indicating that a data file is stored to control unit 20. When control unit 20 receives the signal indicating that a data file is stored, it determines that a data file is stored in USB memory 80 (YES in S14) and proceeds to S24. In S24, control unit 20 executes a data usage process.
[0067] (Data Usage Processing) As shown in FIG. 8, in the data use process, first, in S62, the control unit 20 reads a data file (e.g., data file 84a) stored in the storage unit 84, and judges whether or not the read data file is a data file including distributed data. Specifically, the control unit 20 judges whether or not the extension of the data file is a specific extension (e.g., the extension ".uwm1"). If the extension of the data file is not the specific extension, it is judged that the read data file is not a data file including distributed data (NO in S62), and the process proceeds to S64. In S64, the control unit 20 executes other data processing different from the processing from S66 onward, which will be described later, according to the read data file and the user's operation on the operation unit 70, and ends the data use process. According to this configuration, when a USB memory in which distributed data is not stored is connected, the terminal device 10 can be used.
[0068] On the other hand, if the extension of the data file is the specific extension, the control unit 20 determines that the read data file is a data file including distributed data (YES in S62), and proceeds to S66. In S66, the control unit 20 determines whether or not distributed data generated by distributing the same data as the distributed data included in the specific data file is acquired from the storage unit 50. Specifically, the control unit 20 determines whether or not a data file having an extension related to the extension of the specific data file is stored in the storage unit 50. If a data file having an extension related to the extension of the specific data file is not stored in the storage unit 50, the control unit 20 determines that the distributed data is not acquired from the storage unit 50 (NO in S66), and proceeds to S68. In S68, the control unit 20 causes the display unit 60 to display an error image indicating that the distributed data cannot be acquired, and ends the data usage process. This allows the user to recognize that a data file accessible using the USB memory 80 owned by the user is not stored in the terminal device 10. In a modified example, the process of S68 may not be executed.
[0069] On the other hand, if a data file having an extension related to the extension of the specific data file is stored in the storage unit 50, the control unit 20 determines that the shared data is to be acquired from the storage unit 50 (YES in S66), and proceeds to S70. In S70, the control unit 20 restores the key data, the second type nonce, and the second type authentication tag using the two shared data acquired in S62 and S66. Specifically, the control unit 20 restores the key data, etc. from the two shared data according to the threshold method in the secret sharing in S48.
[0070] Next, in S72, the control unit 20 decrypts the second type of encrypted data using the key data, the second type of nonce, and the second type of authentication tag restored in S70. This allows the file information to be acquired. In S74, the control unit 20 generates an index file in the memory 24. The index file includes, among the information included in the file information, the creation time, update time, latest processing time, file size, file name, first type of nonce, first type of authentication tag, and relative path of the specific data file.
[0071] In S76, the control unit 20 deletes the key data, the second nonce, and the second authentication tag restored in S70. This makes it possible to avoid a situation in which the key data, etc. used for decryption is stored in a usable state after the decryption of the encrypted data is completed. As a result, it is possible to prevent the key data, etc. from being leaked.
[0072] In S78, the control unit 20 causes the display unit 60 to display an icon image representing the specific data file. Specifically, the control unit 20 uses the index file already generated in S74 to display the specific data file on the display unit 60 in such a manner that the specific data file is recognized as being stored in the memory 24. As shown in Fig. 10, an icon image 64 representing the specific data file is displayed on the display unit 60 within a window image representing the storage area of the memory 24. A character string representing the file name of the specific data file may be displayed around the icon image 64.
[0073] In S80, the control unit 20 judges whether or not a browsing operation is performed by the user on the operation unit 70. The browsing operation includes, for example, an operation in which the user operates the mouse of the operation unit 70 to place a pointer on the icon image 64 and execute a double click on the mouse. The browsing operation may include an operation in which the user operates the keyboard on the operation unit 70 to specify the icon image 64. If the browsing operation is not performed (NO in S80), the control unit 20 ends the data usage process and proceeds to S26 in FIG. 6. On the other hand, if the browsing operation is performed (YES in S80), in S82, the control unit 20 restores the key data, the second nonce, and the second authentication tag using the two shared data already acquired in S62 and S66, as in S70.
[0074] Next, in S84, the control unit 20 decrypts the first type of encrypted data using the key data restored in S82 and the first type of nonce and the first type of authentication tag included in the file information acquired in S72. The process of S84 is the same as the process of S72. As a result, the specific data file is acquired.
[0075] In S86, the control unit 20 deletes the key data, the second nonce, and the second authentication tag, as in S76. This makes it possible to avoid a situation in which the key data, etc. used for decryption is stored in a usable state after the decryption of the encrypted data is completed. As a result, it is possible to suppress leakage of the key data, etc. By restoring the encrypted key data, etc. in accordance with the timing of executing the decryption and deleting the encrypted data, etc. after use, it is possible to prevent the encrypted data, etc. from being continuously stored in the terminal device 10 during a period in which the encrypted data, etc. are not used.
[0076] In S88, the control unit 20 displays on the display unit 60 an image represented by the data recorded in the specific data file decrypted in S84, and ends the data usage process. When the data usage process is ended, the process proceeds to S26 in FIG.
[0077] In S26, the control unit 20 judges whether the data recorded in the specific data file is updated by the user. The user can update the data recorded in the specific data file by operating the operation unit 70. For example, if the specific data file is created by a word processing application program, the user can change at least a part of the characters of the document data recorded in the specific data file by operating the operation unit 70, and store the data file in which the changed data is recorded. Also, for example, if the specific data file is created by a drawing application program, the user can change at least a part of the drawing data recorded in the specific data file by operating the operation unit 70, and store the data file in which the changed data is recorded. When the user performs a change operation for changing the data recorded in the specific data file and a store operation for storing the specific data file on the operation unit 70, the control unit 20 judges that the data recorded in the specific data file is updated (YES in S26), and proceeds to S28. On the other hand, if the user performs an end operation to end the display of a specific data file (for example, an operation to close the window of an image representing the data of the specific data file) without performing a store operation to store the specific data file, the control unit 20 determines that data updating will not be performed (NO in S26) and proceeds to S22.
[0078] In S28, the control unit 20 judges whether or not the USB memory 80 is connected to the USB I / F 32. If it is judged that the USB memory 80 is connected (YES in S28), the process proceeds to S20. On the other hand, if the USB memory 80 is not connected (NO in S28), in S29, an error message is displayed on the display unit 60, indicating that data update cannot be executed because the USB memory 80 is not connected, and the data protection process is terminated. With this configuration, it is possible to prohibit the data of a specific data file from being updated when the USB memory 80 is not connected to the terminal device 10. This makes it possible to prevent a situation in which the data of a specific data file is tampered with when the USB memory 80 is not connected to the terminal device 10.
[0079] In the distributed storage process executed after the data is updated, new key data is generated for the specific updated data file (S32), and the key data is distributed to generate a distributed data group including a plurality of distributed data. With this configuration, key data can be generated every time data is updated. As a result, key data does not need to be reused. This makes it possible to prevent the key data from being leaked.
[0080] The control unit 20 executes the distributed storage process at a preset timing, separate from the distributed storage process performed in S20. The preset timing is, for example, at least one of periodic (for example, every other day) and a timing when a specific operation is performed on the operation unit 70 by the user, and is also a period during which the USB memory 80 is connected. This allows new encryption information data including key data to be generated even when the specific data file is not updated. By increasing the frequency of changing the encryption information data, it is possible to suppress leakage of encryption information data that can be used to decrypt the specific data file. Furthermore, even if the encryption information data is leaked, by changing it, it is possible to prevent the specific data file from being decrypted using the leaked encryption information data.
[0081] In a modified example, the control unit 20 may execute a distributed storage process separately from the distributed storage process executed in S20 when a predetermined condition other than the preset timing is satisfied. For example, the control unit 20 may execute the distributed storage process when a predetermined operation is executed by the user. Alternatively, the control unit 20 may execute the distributed storage process when the user uses the terminal device 10 without the USB memory 80 being connected.
[0082] (effect) The effects of the data protection system 1 and the terminal device 10 will be described with reference to Fig. 11. The control unit 20 encrypts the specific data file 102 using the encryption information data 103 including the key data 104 and the first kind of nonce 106 to generate encrypted data 52a (S34 in Fig. 7). This generates the first kind of encrypted data 52a in which the specific data file 102 to be protected is encrypted. The first kind of authentication tag 108 generated when the first kind of encrypted data 52a is generated is included in the file information 114 together with the first kind of nonce 106. The file information 114 is encrypted using the key data 104 and the second kind of nonce 116 to generate the second kind of encrypted data 126 (S44 in Fig. 7).
[0083] When the file information 114 is encrypted, a second type authentication tag 118 is generated. The control unit 20 combines the key data 104, the second type nonce 116, and the second type authentication tag 118, and distributes them by secret sharing (S48 in FIG. 7). The distributed data 122, 124 are stored separately in the storage unit 50 and the USB memory 80. The distributed data 124 is combined with the encrypted data 126 and stored in the USB memory 80. With this configuration, even if the distributed data stored in either the terminal device 10 or the USB memory 80 is obtained by a third party, the key data 104 is not obtained unless the other distributed data is obtained. With this configuration, the specific data file 102 is unlikely to be leaked and has a high security level. Furthermore, with this configuration, a system with a high security level can be constructed without disposing a separate server or the like to store the specific data file 102.
[0084] Since the encrypted data, key data, nonce, and authentication tag are generated in the terminal device 10, there is no need to provide a separate device for encrypting the specific data file 102.
[0085] In this configuration, even if the first type encrypted data 52a is stored in the same storage unit 50 as the distributed data 122, the first type encrypted data 52a cannot be decrypted unless the distributed data 124 is acquired. By storing the first type encrypted data 52a in the same storage unit 50 as the distributed data 122, it is not necessary to provide a separate storage device for storing the first type encrypted data 52a or the distributed data 122.
[0086] Also, by encrypting the file information 114, it is possible to prevent the contents of the specific data file 102 from being discovered from the file information 114. Furthermore, by encrypting the specific data file 102 and the file information 114 with common key data 104, key management is made easier, and by distributing the key data 104, the file information 114 can be appropriately protected.
[0087] In the data usage process, the control unit 20 decrypts the file information (S72 in FIG. 8) before decrypting the specific data file (S84 in FIG. 8), and causes the display unit 60 to display an icon image representing the specific data file (S78 in FIG. 8). This allows the user to determine whether or not the specific data file needs to be decrypted by checking the icon image. With this configuration, it is not necessary to decrypt a specific data file that does not need to be decrypted. This makes it possible to prevent the specific data file from being leaked, and also reduces the load on the memory 24.
[0088] (Second Example) The following describes the differences between the present embodiment and the first embodiment. The present embodiment is different in the distributed storage process. Specifically, in the distributed storage process, each of a plurality of data files is encrypted. A plurality of key data are generated in response to the encryption of the plurality of data files. The plurality of key data are collected in one folder and encrypted. In the present embodiment, the key data used to encrypt the plurality of key data is distributed, thereby preventing the key data for decrypting the plurality of key data from being leaked.
[0089] In the distributed storage process, when a user performs a storage operation (for example, an operation of dragging and dropping icon images of multiple data files into the storage area 62) to store one or more data files, the control unit 20 performs the processes from S30 to S46 in the distributed storage process for one data file, as shown in FIG. 12. Next, in S202, the control unit 20 judges whether or not there is a data file for which the processes from S30 to S46 have not been performed among the multiple data files. Specifically, if there is an unencrypted data file among the one or more data files that have been stored, it is judged that there is a data file for which the processes from S30 to S46 have not been performed (YES in S202). On the other hand, if there is no unencrypted data file, it is judged that there is no data file for which the processes from S30 to S46 have not been performed (NO in S202). If the answer is YES in S202, the process returns to S30, and the processes from S30 to S46 are performed for the remaining data files. As a result, one or more data files are all encrypted.
[0090] If NO in S202, in S204, the control unit 20 combines and encrypts one or more combinations of key data, a second nonce, and a second authentication tag that have been generated in one or more processes from S30 to S46. At this time, the control unit 20 generates encrypted information data including a third nonce and the second key data, similar to S32. Furthermore, the control unit 20 generates a third authentication tag by encryption, similar to S38. Next, in S205, the control unit 20 stores in the storage unit 50 key encrypted data in which one or more key data are encrypted.
[0091] Next, in S206, the control unit 20 generates file information in the same manner as in S40. The file information includes a third type nonce and a third type authentication tag. The file information further includes information for identifying an encryption algorithm, etc., in the same manner as in the file information generated in S40. In S207, the control unit 20 encrypts the file information already generated in S206 in the same manner as in S44 to generate third type encrypted data. It should be noted that the control unit 20 generates a fourth type nonce when generating the third type encrypted data. The control unit 20 generates the third type encrypted data using the second key data and the fourth type nonce. Furthermore, the control unit 20 generates a fourth type authentication tag by encryption in the same manner as in S46.
[0092] In S208, the control unit 20 concatenates the second key data, the fourth nonce, and the fourth authentication tag, and generates the third type of shared data and the fourth type of shared data from the concatenated data, similar to S48. In S209, the control unit 20 stores the third type of shared data generated in S208 in the same storage area as one or more pieces of encrypted data, similar to S50. In S210, the control unit 20 creates a data file including the second type of shared data 124 generated in S208 and the third type of encrypted data generated in S207, similar to S52, stores it in the USB memory 80, and ends the distribution storage process.
[0093] In the data use process, in S84 of FIG. 8, the key encrypted data generated in S204 is decrypted. As a result, one or more pieces of key data are decrypted. In S88, the control unit 20 causes the display unit 60 to display icon images representing one or more pieces of encrypted data that can be decrypted by the one or more pieces of decrypted key data. In S88, the user can execute an operation on the operation unit 70 to select an icon image of the encrypted data (i.e., a data file) desired by the user from among the icon images of the one or more pieces of encrypted data displayed on the display unit 60 (for example, double-clicking the icon image using a mouse). When the icon image is selected by the user, the control unit 20 decrypts the encrypted data using the key data of the encrypted data represented by the selected icon image from among the one or more pieces of key data. As a result, the terminal device 10 can execute processing of the data file.
[0094] As shown in FIG. 13, in this embodiment, each of the two data files 202, 252 is encrypted using the encryption information data 203 including the key data 204 and the first kind of nonce 206, and the encryption information data 253 including the key data 254 and the first kind of nonce 256 (S34 in FIG. 12). As a result, two first kind of encrypted data are generated by encrypting the data files 202, 252 to be protected. The first kind of authentication tag 208 generated when the first kind of encrypted data is generated is included in the file information 214 together with the first kind of nonce 206, and the first kind of authentication tag 258 is included in the file information 264 together with the first kind of nonce 256. The file information 214 is encrypted using the key data 204 and the second kind of nonce 216 (S44 in FIG. 12). Similarly, the file information 264 is encrypted using the key data 254 and the second kind of nonce 266 (S44 in FIG. 12).
[0095] When each of the file information 214, 264 is encrypted, each of the second type authentication tags 218, 268 is generated. The control unit 20 combines and encrypts the key data 204, the two pieces of second type encrypted data 210, 260, the two pieces of second type nonce 216, 266, and the two pieces of second type authentication tags 218, 268, to generate encrypted data 280 (S204 in FIG. 12). In the encryption, key data 274 and a third type nonce 276 are generated. When the encrypted data 280 is generated, a third type authentication tag 278 is generated.
[0096] The third nonce 276 and the third authentication tag 278 are included in the file information 284 (S206 in FIG. 12). The file information 284 is encrypted using the key data 274 and the fourth nonce 286, and the encrypted data 290 is generated (S207 in FIG. 12). When the file information 284 is encrypted, the second authentication tag 288 is generated. The control unit 20 combines the key data 274, the fourth nonce 286, and the fourth authentication tag 288, and distributes them by secret sharing (S208 in FIG. 12). The shared data 222 and 224 are stored separately in the storage unit 50 and the USB memory 80. The shared data 224 is combined with the encrypted data 290. According to this configuration, even if the shared data stored in either the terminal device 10 or the USB memory 80 is obtained by a third party, the key data 274 is not obtained unless the other shared data is obtained.
[0097] The key data 204, 254 for decrypting the multiple data files are encrypted without being distributed. This makes it possible to obtain the key data 204, 254 by obtaining the key data 274. With this configuration, it is not necessary to distribute each of the multiple pieces of key data 204, 254 used to decrypt the multiple data files 202, 252.
[0098] (Third Implementation) The difference between the present embodiment and the first embodiment will be described. In the present embodiment, the distributed storage process is different. Specifically, in the present embodiment, it is assumed that distributed data is stored in each of a plurality of USB memories 80 owned by a plurality of users. In the distributed storage process, key data is distributed into three or more pieces of distributed data. When two or more pieces of distributed data are collected, the distributed data are distributed so that the encrypted data can be decrypted. When a data file is decrypted using key data restored by two pieces of distributed data, the control unit 20 performs browsing by the user, that is, displays an image represented by the data recorded in the data file on the display unit 60, but does not perform data update. On the other hand, when a data file is decrypted using key data restored by three pieces of distributed data, the control unit 20 can perform browsing and updating by the user. In the present embodiment, the key data used to encrypt a plurality of key data is distributed, thereby suppressing leakage of key data for decrypting a plurality of key data.
[0099] In the distribution storage process, as shown in Fig. 14, the control unit 20 executes the processes from S30 to S46 for a specific data file. Next, in S302, similar to S48, the control unit 20 concatenates the key data, the second type nonce already generated in S42, and the second type authentication tag already generated in S46, and generates shared data from the concatenated data. In S302, the control unit 20 distributes the data into three shared data. Next, the process of S50 is executed.
[0100] In S306, the control unit 20 causes the display unit 60 to display an authority selection image. Specifically, the authority selection image is an image for selecting a first authority that permits browsing of a specific data file and prohibits updating, and a second authority that permits browsing and updating of a specific data file. The control unit 20 allows the user to execute a selection operation for selecting either the first authority or the second authority by operating the operation unit 70 (for example, an operation in which the user operates a mouse to select a selection button for the first authority or the second authority included in the authority selection image). The user can select an authority suitable for the user who owns the USB memory 80 connected to the terminal device 10.
[0101] In S308, the control unit 20 waits for a selection operation to be performed by the user. When the selection operation is performed, in S310, the control unit 20 stores the number of shared data corresponding to the authority and the second type of encrypted data in the USB memory 80. When the first authority is selected by the user, the control unit 20 stores one piece of shared data in the USB memory 80. When the second authority is selected by the user, the control unit 20 stores two pieces of shared data in the USB memory 80.
[0102] In a modified example, the control unit 20 may distribute the data into four or more pieces of distributed data. The authority selection image may allow three or more types of authority to be selected. For example, the three or more types of authority may include a first authority that allows viewing of the specific data file and prohibits updating and transmission (process of transmitting the specific data file from the terminal device 10 to another device), a second authority that allows viewing and updating of the specific data file and prohibits transmission, and a third authority that allows viewing, updating, and transmission of the specific data file.
[0103] In S312, the control unit 20 waits for the USB memory 80 to be changed. When the USB memory 80 currently connected to the USB I / F 32 is removed and another USB memory 80 is connected, the control unit 20 determines that the USB memory 80 has been changed (YES in S312) and returns to S306. On the other hand, when the USB memory 80 currently connected to the USB I / F 32 is removed and another USB memory 80 is not connected, the control unit 20 determines that the USB memory 80 has not been changed (NO in S312) and ends the distributed storage process.
[0104] When one piece of distributed data is stored in the USB memory 80, the control unit 20 does not allow data updating. Therefore, in S26 of the data protection process, when one piece of distributed data is stored in the USB memory 80, the control unit 20 determines that the data has not been updated (NO in S26) and proceeds to S22. When two pieces of distributed data are stored in the USB memory 80, the control unit 20 determines whether the data is updated, similarly to the first embodiment.
[0105] According to this configuration, it is possible to restrict updating of a specific data file according to each of multiple users. As a result, for example, in a situation where multiple members are working on a single project, it is possible to restrict the authority to the data file according to the role of each member.
[0106] Although the embodiments of the present invention have been described in detail above, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples exemplified above.
[0107] (1) Three or more pieces of shared data may be generated by sharing the key data. For example, when three pieces of shared data are generated, each of the three pieces of shared data may be stored in three storage devices (for example, the terminal device 10 and two USB memories 80). In this case, when the shared data is acquired from each of the two USB memories 80, for example, the terminal device 10 may decrypt the first type of encrypted data.
[0108] (2) The key data used to encrypt a specific data file may be different from the key data used to decrypt the encrypted data. In this case, the key data used for decryption may be distributed, or the key data used for encryption and the key data used for decryption may be distributed.
[0109] (3) The first type of encrypted data may be stored in a storage device (e.g., a cloud server) other than the terminal device 10. In this case, the terminal device 10 may acquire the first type of encrypted data from the storage device to the terminal device 10 in S84. This makes it possible to avoid the need to acquire the first type of encrypted data when it is not necessary to view the first type of encrypted data, etc.
[0110] (4) At least a part of the data protection process including the distributed storage process and the data usage process may be executed by a control unit other than the terminal device 10. For example, at least one of the processes of S30, S48, S82, and S84 may be executed by a control unit other than the terminal device 10.
[0111] (5) In S28, the control unit 20 allows data updating when it is determined that the USB memory 80 is connected to the USB I / F 32 (YES in S28), and prohibits data updating when it is determined that the USB memory 80 is not connected to the USB I / F 32 (NO in S28). However, the control unit 20 may allow data updating even when the USB memory 80 is removed after being connected to the USB I / F 32. In this case, data updating may be allowed until a specific operation to stop updating is performed on the operation unit 70 by the user.
[0112] In addition, the technical elements described in this specification or drawings exert technical utility alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technologies exemplified in this specification or drawings achieve multiple objectives simultaneously, and achieving one of those objectives is itself technically useful. [Explanation of symbols]
[0113] 1: data protection system, 2, 4: data file, 6, 8: distributed data, 10: terminal device, 20: control unit, 22: CPU, 24: memory, 30: interface unit, 34: network I / F, 50: storage unit, 52, 54: storage area, 52a: encrypted data, 52b: distributed data, 60: display unit, 80: USB memory
Claims
1. A data control device, a communication interface connected to an external storage device so as to be capable of data communication; a key share generation unit that generates a first key share group including a plurality of key shares by distributing first key data used for decrypting encrypted data obtained by encrypting specific data; a first storage control unit that stores the first key share in the first key share group in a storage unit; A data control device comprising: a second storage control unit that stores second distributed key data of the first distributed key data group in an external storage device connected to the communication interface, the external storage device being different from the storage unit.
2. The data control device according to claim 1 , wherein the first storage control unit causes the encrypted data to be stored in the storage unit.
3. The data control device according to claim 1 , further comprising an encrypted data generation unit that encrypts the specific data by using the first key data to generate encrypted data.
4. a key generation unit that generates the first key data by using the first key share group including the first key share stored in the storage unit and the second key share stored in the external storage device; 3 . The data control device according to claim 1 , further comprising a decryption unit that generates the specific data by decrypting the encrypted data using the first key data that has already been generated.
5. 3. The data control device according to claim 1, further comprising an update receiving unit that receives an update of the specific data when the external storage device is connected to the communication interface.
6. the encrypted data generation unit, when the update of the specific data is accepted, encrypts the updated specific data using second key data different from the first key data to generate encrypted data; the key share generation unit generates a second key share group including a plurality of key shares by distributing the second key data; the first storage control unit stores third distributed key data of the second distributed key data group in the storage unit; The data control device according to claim 5 , wherein the second storage control unit stores a fourth distributed key data of the second distributed key data group in the external storage device via the communication interface.
7. 3. The data control device according to claim 1, further comprising a key updating unit that updates the first key data to third key data different from the first key data, the third key data being used to decrypt the encrypted data into the specific data, when a predetermined condition is satisfied.
8. 3. The data control device according to claim 1, wherein the specific data includes fifth key data used to decrypt first encrypted data obtained by encrypting the first data, and sixth key data used to decrypt second encrypted data obtained by encrypting the second data.
9. The data control device according to claim 8 , wherein the first storage control unit causes the first encrypted data and the second encrypted data to be stored in the storage unit.
10. A data control device; An external storage device, comprising: The data control device includes: a communication interface for connecting to the external storage device in data communication; a key share generation unit that generates a first key share group including a plurality of key shares by distributing first key data used for decrypting encrypted data obtained by encrypting specific data; a first storage control unit that stores the first key share in the first key share group in a storage unit; A data protection system comprising: a second storage control unit that stores second distributed key data of the first distributed key data group in an external storage device connected to the communication interface, the external storage device being different from the storage unit.
11. 11. The data protection system of claim 10, wherein the external storage device comprises a portable storage device that is portable by a user.
12. The data protection system described in claim 10 or 11, wherein the second storage control unit prohibits storing in the external storage device the distributed key data of the second key data used to encrypt data recorded in a data file other than a specific data file to generate encrypted data when the second distributed key data is stored in the external storage device.
13. A computer program for a data control device having a communication interface connected to an external storage device so as to be capable of data communication, the computer program comprising: a key share generation unit that generates a first key share group including a plurality of key shares by distributing first key data used for decrypting encrypted data obtained by encrypting specific data; a first storage control unit that stores the first key share in the first key share group in a storage unit; A computer program that functions as a second storage control unit that stores the second distributed key data of the first distributed key data group in an external storage device connected to the communication interface, the external storage device being different from the storage unit.
Citation Information
Patent Citations
Method for displaying information of file, and file management program
JP2003030020A
Document management system
JP2005135003A
Electronic file processing program and information processor
JP2008134821A
Data processor and program
JP2008234597A
Systems and methods for protecting sensitive data in a database.
JP2009510616A
