Key sharing system and key sharing method
The key sharing system generates a common key using user information via a hash algorithm, reducing reliance on multiple communication channels and ensuring reliable key sharing.
Patent Information
- Application Number
- JP2023062791
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-18
AI Technical Summary
Existing key sharing systems require multiple communication means, which can fail and prevent key acquisition if one means is unavailable.
A key sharing system that generates a common key using predetermined user information through a hash algorithm, reducing the need for multiple communication channels by transmitting method and correspondence information to generate the key.
Ensures key sharing can occur with a single communication means, enhancing reliability and efficiency by eliminating the dependency on multiple channels.
Smart Images

Figure 2024149106000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a key sharing system and a key sharing method. [Background technology]
[0002] Technologies have been developed that allow a vehicle's doors to be locked and the engine to be started by using a device with a digital key installed. Digital keys comply with the Car Connectivity Consortium (CCC) standard. In the following, digital keys will simply be referred to as "keys."
[0003] A method is being considered for lending a key via a relay server between a first terminal used by the owner who lends the key and a second terminal used by the friend who borrows the key. For example, Non-Patent Document 1 describes the following method.
[0004] The method described in Non-Patent Document 1 will be explained using Figures 8 and 9. Figures 8 and 9 show the procedure of the process executed by the first terminal 5 used by the owner, the second terminal 6 used by the friend, and the server 7.
[0005] The first terminal 5 generates a common key (step S501) and encrypts predetermined data by using the common key (step S502). The predetermined data indicates information necessary for the second terminal 6 to generate a key. The first terminal 5 transmits a mailbox creation request and the encrypted data to the server 7 (step S503).
[0006] The server 7 receives the mailbox creation request and the encrypted data (step S700). The server 7 creates a mailbox, which is a storage area for data used by the first terminal 5 and the second terminal 6 (step S701), and stores the data received from the first terminal 5 in the mailbox (step S702). The server 7 generates address information indicating the URL (Uniform Resource Locator) of the mailbox (step S703), and transmits the address information to the first terminal 5 (step S704).
[0007] The first terminal 5 receives the address information (step S504). The first terminal 5 transmits the address information and the common key to the second terminal 6 (step S505). The second terminal 6 receives the address information and the common key (step S600).
[0008] Non-Patent Document 1 recommends notifying the address information and the common key by different communication means. The communication means may be email, SMS (Short Message Service), or verbal communication during a phone call. For example, the address information is sent by email, and the common key is sent by SMS. Non-Patent Document 1 also proposes a non-recommended means of notifying the common key by using a URL fragment.
[0009] The second terminal 6 transmits a data read request to the server 7 according to the address information (step S601). The server 7 receives the data read request (step S704) and transmits the data stored in the mailbox to the second terminal 6 (step S705). The second terminal 6 receives the data (step S602).
[0010] The second terminal 6 uses the common key to decrypt the received data (step S603). The second terminal 6 uses information contained in the decrypted data to generate a key that functions as a digital key (step S604).
[0011] The second terminal 6 encrypts the generated key by using the common key (step S605) and transmits the encrypted key to the server 7 according to the address information (step S606). The server 7 receives the key and stores the received key in a mailbox (step S706). The server 7 transmits notification information for notifying the first terminal 5 to the first terminal 5 (step S707).
[0012] The first terminal 5 receives the notification information (step S506) and transmits a data read request to the server 7 according to the address information (step S507). The server 7 receives the data read request (step S708) and transmits the key stored in the mailbox to the first terminal 5 (step S709).
[0013] The first terminal 5 receives the key (step S508) and decrypts the key by using the common key (step S509). The first terminal 5 signs the decrypted key with a private key stored in a secure environment within the terminal (step S510). The first terminal 5 encrypts the signed key using the common key (step S511) and transmits the key to the server 7 according to the address information (step S512).
[0014] The server 7 receives the key and stores the received key in the mailbox (step S710). The server 7 transmits notification information for notifying the second terminal 6 to the second terminal 6 (step S711). The second terminal 6 receives the notification information (step S607) and transmits a data read request to the server 7 according to the address information (step S608). The server 7 receives the data read request (step S712) and transmits the key stored in the mailbox to the second terminal 6 (step S713).
[0015] The second terminal 6 receives the key (step S609) and decrypts the received key by using the common key (step S610). The second terminal 6 can use the key signed by the first terminal 5 to lock the vehicle doors, start the engine, etc. The second terminal 6 sends a mailbox deletion request to the server 7 according to the address information (step S611). The server 7 receives the mailbox deletion request and deletes the mailbox (step S715). [Prior art documents] [Non-patent literature]
[0016] [Non-Patent Document 1] Digital Key Release 3 Technical Specification Version 1.1.0, Car Connectivity Consortium, July 20, 2022, P126 (Figure 11-1) Summary of the Invention [Problem to be solved by the invention]
[0017] As mentioned above, Non-Patent Document 1 recommends that the address information and the common key be notified by different communication means. However, it is necessary for the first terminal 5 and the second terminal 6 to use two communication means. If a failure occurs in one of the two communication means and that communication means cannot be used, the second terminal 6 cannot obtain the address information or the common key.
[0018] An object of the present invention is to provide a key sharing system and a key sharing method that can reduce the number of communication means used by a first terminal and a second terminal. [Means for solving the problem]
[0019] The present invention is a key sharing system comprising a first terminal and a second terminal, wherein the first terminal comprises a first key generation unit that generates a common key based on specified information, and a first communication unit that transmits to the second terminal correspondence information corresponding to the specified information and method information indicating a method of generating the common key, and the second terminal comprises a second communication unit that receives the correspondence information and the method information from the first terminal, and a second key generation unit that uses the specified information corresponding to the correspondence information and generates the common key in accordance with the generation method indicated by the method information.
[0020] The present invention is a key sharing method comprising: a first key generation step in which a first key generation unit of a first terminal generates a common key based on specified information; a first communication step in which a first communication unit of the first terminal transmits correspondence information corresponding to the specified information and method information indicating a method of generating the common key to a second terminal; a second communication step in which a second communication unit of the second terminal receives the correspondence information and the method information from the first terminal; and a second key generation step in which a second key generation unit of the second terminal uses the specified information corresponding to the correspondence information and generates the common key in accordance with the generation method indicated by the method information. Effect of the Invention
[0021] According to the present invention, the key sharing system and the key sharing method can reduce the number of communication means used by the first terminal and the second terminal. [Brief description of the drawings]
[0022] [Figure 1] 1 is a block diagram showing a configuration of a key sharing system according to an embodiment of the present invention. [Diagram 2] 2 is a block diagram showing a configuration of a server in the key sharing system according to the embodiment of the present invention. FIG. [Diagram 3] FIG. 2 is a diagram illustrating an example of the operation of a key sharing system according to an embodiment of the present invention. [Figure 4] FIG. 2 is a diagram illustrating an example of the operation of a key sharing system according to an embodiment of the present invention. [Diagram 5] FIG. 2 is a diagram illustrating an example of the operation of a key sharing system according to an embodiment of the present invention. [Figure 6] FIG. 4 is a diagram showing an example of first user information in the embodiment of the present invention. [Figure 7] FIG. 4 is a diagram showing an example of first user information in the embodiment of the present invention. [Figure 8] FIG. 1 is a diagram showing an example of an operation for key sharing in the prior art. [Figure 9] FIG. 1 is a diagram showing an example of an operation for key sharing in the prior art. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Fig. 1 shows the configuration of a key sharing system 4 according to an embodiment of the present invention. The key sharing system 4 has a first terminal 1 used by a first user (owner) who lends out a key, a second terminal 2 used by a second user (friend) who borrows the key, and a server 3.
[0024] The first terminal 1 and the second terminal 2 are mobile terminals such as smartphones or tablet terminals. The first terminal 1 and the second terminal 2 communicate with each other. The first terminal 1 and the second terminal 2 also communicate with a server 3.
[0025] The first terminal 1 has a communication unit 10, a control unit 11, a storage unit 12, and an operation unit 13. The communication unit 10 has a communication circuit and performs data communication with the second terminal 2 and the server 3. When the first user and the second user make a call via the first terminal 1 and the second terminal 2, the communication unit 10 performs voice communication with the second terminal 2.
[0026] The control unit 11 executes various processes for controlling the entire first terminal 1. The control unit 11 has a key generation unit 110, an encryption processing unit 111, and a communication control unit 112.
[0027] The key generation unit 110 generates a common key shared by the first terminal 1 and the second terminal 2. The encryption processing unit 111 encrypts data and decrypts the encrypted data. The communication control unit 112 controls the communication unit .
[0028] At least one of the key generation unit 110, the encryption processing unit 111, and the communication control unit 112 may be realized by a processor such as a CPU (Central Processing Unit) executing a program recorded in a computer-readable recording medium. At least one of the key generation unit 110, the encryption processing unit 111, and the communication control unit 112 may be realized by hardware (circuit) such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array). At least one of the key generation unit 110, the encryption processing unit 111, and the communication control unit 112 may be realized by a combination of software and hardware.
[0029] The computer-readable recording medium is a portable medium such as a flexible disk, a magneto-optical disk, a ROM, or a CD-ROM, or a storage unit such as a hard disk built into a computer system. The above-mentioned program may be a difference file (difference program). At least one function of the key generation unit 110, the encryption processing unit 111, and the communication control unit 112 may be realized by a combination of a program already recorded in the computer and a difference program.
[0030] The storage unit 12 stores information stored in advance in the first terminal 1, information generated by the control unit 11, and information received from the second terminal 2 or the server 3. For example, the storage unit 12 is a flash memory or an EEPROM (Electrically Erasable Programmable Read-Only Memory). The storage unit 12 may be a combination of these recording media.
[0031] The operation unit 13 receives an operation from the first user and generates information according to the operation. For example, the operation unit 13 is a touch panel.
[0032] The second terminal 2 has a communication unit 20, a control unit 21, a storage unit 22, and an operation unit 23. The communication unit 20 has a communication circuit and performs data communication with the first terminal 1 and the server 3. When the first user and the second user make a call via the first terminal 1 and the second terminal 2, the communication unit 20 performs voice communication with the first terminal 1.
[0033] The control unit 21 executes various processes for controlling the entire second terminal 2. The control unit 21 has a key generation unit 210, an encryption processing unit 211, and a communication control unit 212.
[0034] The key generation unit 210 generates a common key that is the same as the common key generated by the key generation unit 110 of the first terminal 1. The encryption processing unit 211 encrypts data and decrypts the encrypted data. The communication control unit 212 controls the communication unit 20.
[0035] At least one of the key generation unit 210, the encryption processing unit 211, and the communication control unit 212 may be realized by a processor executing a program recorded in a computer-readable recording medium. At least one of the key generation unit 210, the encryption processing unit 211, and the communication control unit 212 may be realized by hardware (circuit) such as ASIC or FPGA. At least one of the key generation unit 210, the encryption processing unit 211, and the communication control unit 212 may be realized by a combination of software and hardware. At least one function of the key generation unit 210, the encryption processing unit 211, and the communication control unit 212 may be realized by a combination of a program already recorded in the computer and a difference program.
[0036] The storage unit 22 stores information previously stored in the second terminal 2, information generated by the control unit 21, and information received from the first terminal 1 or the server 3. For example, the storage unit 22 is a flash memory or an EEPROM. The storage unit 22 may be a combination of these recording media.
[0037] The operation unit 23 receives an operation from the second user and generates information according to the operation. For example, the operation unit 23 is a touch panel.
[0038] 2 shows the configuration of the server 3. The server 3 has a communication unit 30, a control unit 31, and a storage unit 32. The communication unit 30 has a communication circuit, and executes data communication with the first terminal 1 and the second terminal 2.
[0039] The control unit 31 has a processing unit 310 and a communication control unit 311. The processing unit 310 processes information received from the first terminal 1 or the second terminal 2. The communication control unit 311 controls the communication unit 30.
[0040] The operation of the key sharing system 4 will be described with reference to Figures 3, 4, and 5. Figures 3, 4, and 5 show an example of the operation of the key sharing system 4.
[0041] (Step S100) The control unit 11 of the first terminal 1 registers, in the storage unit 12, second user information relating to a second user who uses the second terminal 2.
[0042] (Step S200) On the other hand, the control unit 21 of the second terminal 2 registers in the storage unit 22 first user information relating to the first user who uses the first terminal 1.
[0043] The first user information includes information unique to the first user (first terminal 1), and the second user information includes information unique to the second user (second terminal 2). FIG. 6 shows an example of the first user information. The first user information shown in FIG. 6 includes a user ID, the name, phone number, email address, and SNS (Social Networking Service) ID of the first user. These are associated with each other.
[0044] When the communication unit 10 of the first terminal 1 executes voice communication for a call with the communication unit 20 of the second terminal 2, the communication unit 10 uses the telephone number of the second terminal 2. When the communication unit 10 sends an e-mail to the communication unit 20, the communication unit 10 uses the e-mail address of the second terminal 2.
[0045] The first user information includes information on at least one of the six items shown in FIG. 6. The first user information does not need to include information on all items. Two or more pieces of information may be registered in one item. For example, in the example shown in FIG. 6, two email addresses are registered. When the control unit 21 operates as an application on the second terminal 2, the application may manage the first user information.
[0046] For example, the second user operates the operation unit 23 of the second terminal 2 and inputs the first user information to the second terminal 2. The control unit 21 of the second terminal 2 generates the first user information in accordance with the operation of the second user, and registers the first user information in the storage unit 22.
[0047] If a phone book application is installed in the second terminal 2, the application operating as the control unit 21 may cooperate with the phone book application. Fig. 7 shows an example of the first user information in this case. The first user information shown in Fig. 7 includes a user ID and the ID of the phone book application.
[0048] The phone book application in the second terminal 2 manages the phone number of the first user. When the phone number of the first user is required, the control unit 21 acquires a phone book ID from the first user information shown in FIG. 7. The control unit 21 requests the phone book application having the phone book ID to acquire the phone number. The phone book application returns the phone number of the first user to the control unit 21. The control unit 21 acquires the phone number of the first user from the phone book application. In the example shown in FIG. 7, it is not necessary for both the application configured as the control unit 21 and the phone book application to manage the phone number of the first user.
[0049] The second user information is configured similarly to the first user information, so a description of the second user information will be omitted.
[0050] The storage unit 12 of the first terminal 1 stores the second user information registered in step S100. The storage unit 12 also stores the first user information in advance. Similarly, the storage unit 22 of the second terminal 2 stores the first user information registered in step S200. The storage unit 22 also stores the second user information in advance.
[0051] (Step S101) After step S100 is executed, the key generation unit 110 reads the first user information from the storage unit 12. The key generation unit 110 uses the first user information to generate first seed information according to a predetermined hash algorithm. The first seed information is information that is the source of a common key.
[0052] (Step S102) After step S101 is executed, the key generation unit 110 reads the second user information from the storage unit 12. The key generation unit 110 uses the second user information to generate second seed information according to a predetermined hash algorithm. The second seed information is information that is the source of a common key.
[0053] For example, the first user information is information used by the second terminal 2 to identify the first terminal 1 in communication performed between the first terminal 1 and the second terminal 2. For example, the second user information is information used by the first terminal 1 to identify the second terminal 2 in that communication. Specifically, the first user information is the telephone number of the first user, and the second user information is the telephone number of the second user. The first user information may be information other than the telephone number of the first user, and may be any information shown in FIG. 6. The second user information may also be information other than the telephone number of the second user. When the information shown in FIG. 6 is used as the first user information and the second user information, it is not necessary for the user to manually input information required to generate a common key into the first terminal 1 or the second terminal 2.
[0054] The predetermined hash algorithm is a method of calculating a hash value by using a hash function such as SHA-256 or SHA-3. The key generation unit 110 inputs first user information to the hash function and generates first seed information that is a hash value of the first user information. The key generation unit 110 also inputs second user information to the hash function and generates second seed information that is a hash value of the second user information.
[0055] The order in which steps S101 and S102 are executed is not limited to the above order, and step S101 may be executed after step S102 is executed.
[0056] (Step S103) After step S102 is executed, the key generation unit 110 uses the first seed information and the second seed information to generate a common key according to a predetermined hash algorithm. For example, the key generation unit 110 concatenates the first seed information and the second seed information. The key generation unit 110 inputs the concatenated information to a hash function and generates a common key that is a hash value of the information.
[0057] The key generation unit 110 may concatenate the beginning of the second seed information to the end of the first seed information, or may concatenate the beginning of the first seed information to the end of the second seed information. Instead of concatenating the first seed information and the second seed information, the key generation unit 110 may execute an operation using the first seed information and the second seed information. For example, the key generation unit 110 may calculate an exclusive OR of the first seed information and the second seed information. The key generation unit 110 may input the exclusive OR to a hash function and generate a common key that is a hash value of the exclusive OR. The key generation unit 110 may calculate a logical AND instead of the exclusive OR.
[0058] Two or more pieces of information may be used as the first user information and the second user information. For example, a phone number and an email address may be used as the first user information and the second user information. A hash algorithm has a property that a small change in input data causes a large change in the hash value. Therefore, the order in which two or more pieces of information used as the first user information and the second user information are combined may be changed as appropriate.
[0059] Even if the same first user information and second user information are used repeatedly, the generated common key may change. For example, the key generating unit 110 may generate first seed information by using the first user information and time information, and generate second seed information by using the second user information and time information. The time information indicates the current time. The key generating unit 110 may generate a common key by using the first seed information, the second seed information, and the time information.
[0060] The key generation unit 110 may use date information or random numbers instead of time information. By using time information that changes depending on the timing of generating the common key in addition to the first seed information or the second seed information, the key generation unit 110 can change the common key. This increases the security of the common key.
[0061] The same hash algorithm is used in steps S101, S102, and S103. The hash algorithm used in step S101 may be different from the hash algorithm used in step S102. The hash algorithm used in step S102 may be different from the hash algorithm used in step S103. The hash algorithm used in step S101 may be different from the hash algorithm used in step S103.
[0062] (Step S104) After step S103 is executed, the encryption processing unit 111 encrypts predetermined data by using the common key generated in step S103. The predetermined data indicates information necessary for the second terminal 2 to generate a key.
[0063] (Step S105) After step S104 is executed, the communication control unit 112 controls the communication unit 10 to transmit a mailbox creation request and the encrypted data to the server 3.
[0064] (Step S300) The communication control unit 311 of the server 3 controls the communication unit 30 to receive the mailbox creation request and the encrypted data from the first terminal 1.
[0065] (Step S301) After step S300 is executed, the processing unit 310 creates a mailbox, which is a storage area for data used by the first terminal 1 and the second terminal 2. For example, an area of the storage unit 32 is used as the mailbox.
[0066] The server 3 may request creation of a mailbox from a device other than the first terminal 1 and the second terminal 2. The device may create the mailbox in its storage unit and return the mailbox URL to the server 3.
[0067] (Step S302) After step S301 is executed, the processing unit 310 stores in the mailbox the data received from the first terminal 1. In this example, the processing unit 310 stores the data in the storage unit 32.
[0068] (Step S303) After step S302 is executed, the processor 310 generates address information indicating the URL of the mailbox. The location of the mailbox on the network (Internet) is specified by the URL.
[0069] (Step S304) After step S303 is executed, the communication control unit 311 controls the communication unit 30 to transmit the address information to the first terminal 1.
[0070] (Step S106) After step S105 is executed, the communication control unit 112 of the first terminal 1 controls the communication unit 10 to receive the address information from the server 3.
[0071] (Step S107) After step S106 is executed, the encryption processing unit 111 generates common key information including the user ID of the first user, address information, type information, and method information. The communication control unit 112 controls the communication unit 10 to transmit the common key information to the second terminal 2.
[0072] The address information indicates the URL of the mailbox. The type information indicates the type of information used as the first user information and the second user information. For example, if a telephone number is used as the first user information and the second user information, the type information indicates the telephone number. The method information indicates the hash algorithm used to generate the common key.
[0073] In the above example, the first terminal 1 transmits common key information including address information, type information, and method information to the second terminal 2. The first terminal 1 may transmit the address information, type information, and method information to the second terminal 2 in sequence.
[0074] (Step S201) After step S200 is executed, the communication control unit 212 of the second terminal 2 controls the communication unit 20 to receive the common key information from the first terminal 1.
[0075] (Step S202) After step S201 is executed, the key generation unit 210 reads out from the storage unit 22 the first user information of the type indicated by the type information included in the common key information. For example, if the type information indicates a telephone number, the key generation unit 210 reads out the telephone number of the first user associated with the user ID included in the common key information in the first user information. The key generation unit 210 uses the first user information to generate first seed information according to the hash algorithm indicated by the method information included in the common key information. For example, if the method information indicates SHA-256, the key generation unit 110 generates the first seed information by using SHA-256. This first seed information is the same as the first seed information generated by the key generation unit 110 of the first terminal 1.
[0076] (Step S203) After step S202 is executed, the key generation unit 210 reads out second user information of a type indicated by the type information included in the common key information from the storage unit 22. For example, if the type information indicates a telephone number, the key generation unit 210 reads out the telephone number of the second user associated with the user ID included in the common key information. The key generation unit 210 uses the second user information to generate second seed information according to a hash algorithm indicated by the method information included in the common key information. For example, if the method information indicates SHA-256, the key generation unit 210 generates the second seed information by using SHA-256. This second seed information is the same as the second seed information generated by the key generation unit 110 of the first terminal 1.
[0077] The order in which steps S202 and S203 are executed is not limited to the above order, and step S202 may be executed after step S203 is executed.
[0078] (Step S204) After step S203 is executed, the key generation unit 210 uses the first seed information and the second seed information to generate a common key according to a hash algorithm indicated by the method information included in the common key information. The method by which the key generation unit 210 generates a common key is the same as the method by which the key generation unit 110 of the first terminal 1 generates a common key. The key generation unit 210 can generate a common key that is the same as the common key generated by the key generation unit 110.
[0079] (Step S205) After step S204 is executed, the communication control unit 212 controls the communication unit 20 to transmit a data read request according to the address information. The communication unit 20 transmits the data read request to a device having an IP (Internet Protocol) address corresponding to the URL indicated by the address information. In the above example, since the mailbox is created on the storage unit 32 of the server 3, the data read request is transmitted to the server 3.
[0080] (Step S305) After step S304 is executed, the communication control unit 311 of the server 3 controls the communication unit 30 to receive a data read request from the second terminal 2.
[0081] (Step S306) After step S305 is executed, the processing unit 310 reads the data stored in the mailbox. The communication control unit 311 controls the communication unit 30 to transmit the data to the second terminal 2.
[0082] (Step S206) After step S205 is executed, the communication control unit 212 of the second terminal 2 controls the communication unit 20 to receive data from the server 3.
[0083] (Step S207) After step S206 is executed, the encryption processing unit 211 decrypts the data received from the server 3 by using the common key generated in step S204.
[0084] (Step S208) After step S207 is executed, the key generation unit 210 generates a key that functions as a digital key by using information contained in the data decrypted in step S207.
[0085] (Step S209) After step S208 is executed, the encryption processing unit 211 encrypts the key generated in step S208 by using the common key generated in step S204.
[0086] (Step S210) After step S209 is executed, the communication control unit 212 controls the communication unit 20 to transmit the key encrypted in step S209 to the server 3 in accordance with the address information.
[0087] (Step S307) After step S306 is executed, the communication control unit 311 of the server 3 controls the communication unit 30 to receive the key from the second terminal 2. The processing unit 310 stores the key in a mailbox.
[0088] (Step S308) After step S307 is executed, the communication control unit 311 controls the communication unit 30 to transmit, to the first terminal 1, notification information for notifying the first terminal 1.
[0089] (Step S108) After step S107 is executed, the communication control unit 112 of the first terminal 1 controls the communication unit 10 to receive notification information from the server 3.
[0090] (Step S109) After step S108 is executed, the communication control unit 112 controls the communication unit 10 to transmit a data read request to the server 3 according to the address information.
[0091] (Step S309) After step S308 is executed, the communication control unit 311 of the server 3 controls the communication unit 30 to receive a data read request from the first terminal 1.
[0092] (Step S310) After step S309 is executed, the processing unit 310 reads out the key stored in the mailbox. The communication control unit 311 controls the communication unit 30 to transmit the key to the first terminal 1.
[0093] (Step S110) After step S109 is executed, the communication control unit 112 of the first terminal 1 controls the communication unit 10 to receive the key from the server 3.
[0094] (Step S111) After step S110 is executed, the encryption processing unit 111 decrypts the key received from the server 3 by using the common key generated in step S103.
[0095] (Step S112) After step S111 is executed, the crypto-processing unit 111 signs the decrypted key by using the common key generated in step S103.
[0096] (Step S113) After step S112 is executed, the cryptographic processor 111 encrypts the signed key by using the common key generated in step S103.
[0097] (Step S114) After step S113 is executed, the communication control unit 112 controls the communication unit 10 to transmit the encrypted key to the server 3 in accordance with the address information.
[0098] (Step S311) After step S310 is executed, the communication control unit 311 of the server 3 controls the communication unit 30 to receive the key from the first terminal 1. The processing unit 310 stores the key in a mailbox.
[0099] (Step S312) After step S311 is executed, the communication control unit 311 controls the communication unit 30 to transmit, to the second terminal 2, notification information for notifying the second terminal 2.
[0100] (Step S211) After step S210 is executed, the communication control unit 212 of the second terminal 2 controls the communication unit 20 to receive the notification information from the server 3.
[0101] (Step S212) After step S211 is executed, the communication control unit 212 controls the communication unit 20 to transmit a data read request to the server 3 according to the address information.
[0102] (Step S313) After step S312 is executed, the communication control unit 311 of the server 3 controls the communication unit 30 to receive a data read request from the second terminal 2.
[0103] (Step S314) After step S313 is executed, the processing unit 310 reads out the key stored in the mailbox. The key is the key received from the first terminal 1 in step S311. The communication control unit 311 controls the communication unit 30 to transmit the key to the second terminal 2.
[0104] (Step S213) After step S212 is executed, the communication control unit 212 of the second terminal 2 controls the communication unit 20 to receive the key from the server 3.
[0105] (Step S214) After step S213 is executed, the cryptographic processor 211 decrypts the key received from the server 3 by using the common key generated in step S204. The second terminal 2 can use the key signed by the cryptographic processor 111 of the first terminal 1 for locking the vehicle doors, starting the engine, and the like.
[0106] (Step S215) After step S214 is executed, the communication control unit 212 controls the communication unit 20 to send a mailbox deletion request to the server 3 according to the address information.
[0107] (Step S315) After step S314 is executed, the communication control unit 311 of the server 3 controls the communication unit 30 to receive a mailbox deletion request from the second terminal 2.
[0108] (Step S316) After step S315 is executed, the processing unit 310 deletes the mailbox.
[0109] Steps S104 to S113 performed by the first terminal 1 are similar to steps S502 to S511 shown in Figures 8 and 9. Steps S205 to S215 performed by the second terminal 2 are similar to steps S601 to S611 shown in Figures 8 and 9. Steps S300 to S316 performed by the server 3 are similar to steps S700 to S716 shown in Figures 8 and 9.
[0110] When generating the common key information, the cryptographic processor 111 may combine a character string indicating the type information with a character string constituting the address information. For example, the cryptographic processor 111 may combine a character string indicating the type information with a URL by using a URL fragment.
[0111] In a typical URL fragment, a fragment identifier "#" is added to the end of a character string indicating the URL, and a link within the web page indicated by the URL is added after the fragment identifier. In this embodiment, for example, a fragment identifier "#" and a character string "tell" indicating type information are added to "https: / / mailbox.com / v1 / m / mailbox-identifier" constituting address information. The character string "tell" indicates a telephone number. In this case, the character string "https: / / mailbox.com / v1 / m / mailbox-identifier#tell" is used as the address information and type information. The character string indicating type information is not limited to this example.
[0112] The type information may indicate multiple types. For example, the character string "https: / / mailbox.com / v1 / m / mailbox-identifier#tell&mail1" may be used as the address information and type information. As above, "tell" indicating the type information indicates a phone number. "mail1" indicating the type information indicates email address 1 shown in FIG. 6.
[0113] When the shared key information is transmitted by HTTP (Hypertext Transfer Protocol), a unique header including type information may be added to the HTML (Hypertext Markup Language) header section. For example, a character string such as "shared-secret-seed": "tell" or "shared-secret-seed": "tell&mail1" is stored in the header. The character string stored in the header is not limited to these examples.
[0114] The cryptographic processor 111 may combine a character string indicating the method information with the URL by using a URL fragment. For example, the character string "https: / / mailbox.com / v1 / m / mailbox-identifier#hash-sha256&tell&mail1" is used as the address information and the method information. The character string "hash-sha256" indicates that the hash algorithm is SHA-256.
[0115] A string indicating the method information may be included in the HTML header. For example, the string "shared-secret-seed" : "sha256" may be stored in the HTML header.
[0116] Information shared in advance between the first user and the second user may be used as the common key. For example, the common key information includes a secret question instead of the type information. The key generating unit 110 of the first terminal 1 generates seed information by using the answer to the question instead of the first user information and the second user information, and generates the common key by using the seed information.
[0117] The control unit 21 of the second terminal 2 displays the secret question included in the common key information received from the first terminal 1 on a display unit not shown in Fig. 1. The second user inputs the answer to the secret question into the second terminal 2 by operating the operation unit 23. The key generation unit 210 of the second terminal 2 generates seed information by using the answer in place of the first user information and the second user information, and generates a common key by using the seed information.
[0118] For example, if the first user and the second user are a family, the mother's maiden name and the father's date of birth may be used as a secret question, and the answer may be used as a common key. The information shared by the first user and the second user is not limited to this example.
[0119] In the above example, the key generation unit 110 (first key generation unit) of the first terminal 1 generates a common key based on predetermined information. The communication unit 10 (first communication unit) of the first terminal 1 transmits correspondence information corresponding to the predetermined information and method information indicating a method of generating the common key to the second terminal 2. The communication unit 20 of the second terminal 2 receives the correspondence information and the method information from the first terminal 1. The key generation unit 210 (second key generation unit) of the second terminal 2 uses the predetermined information corresponding to the correspondence information to generate a common key according to the generation method indicated by the method information.
[0120] The memory unit 12 (first memory unit) of the first terminal 1 stores first user information (first information) used by the second terminal 2 to identify the first terminal 1 in communication carried out between the first terminal 1 and the second terminal 2, and second user information (second information) used by the first terminal 1 to identify the second terminal 2 in that communication. The memory unit 22 (second memory unit) of the second terminal 2 stores the first user information and the second user information. The specified information is the first user information and the second user information. The corresponding information (type information) indicates the types of the first user information and the second user information.
[0121] The key generation unit 110 of the first terminal 1 generates a common key by calculating a hash value of the predetermined information. The method information indicates the hash algorithm used to generate the common key. The key generation unit 210 of the second terminal 2 generates a common key by calculating a hash value of the predetermined information according to the hash algorithm indicated in the method information.
[0122] The communication unit 10 of the first terminal 1 transmits address information indicating a URL to the second terminal 2. The communication unit 20 of the second terminal 2 receives the address information from the first terminal 1. The communication unit 10 and the communication unit 20 exchange data such as a digital key via a storage device specified by the URL indicated by the address information.
[0123] The correspondence information may be a string combined with a string including a URL. The method information may be a string combined with a string including a URL.
[0124] In the above example, the common key itself is not transmitted from the first terminal 1 to the second terminal 2, but correspondence information corresponding to predetermined information used to generate the common key and method information indicating a method of generating the common key are transmitted from the first terminal 1 to the second terminal 2. Since the first terminal 1 and the second terminal 2 only need to use at least one communication means for communicating the correspondence information and method information, the communication means used by the first terminal 1 and the second terminal 2 can be reduced.
[0125] Even if a failure or the like occurs in an e-mail, SMS, or telephone service and the service cannot be used, the first terminal 1 and the second terminal 2 can share a common key.
[0126] In the prior art, a first application that sends or receives data via a mailbox sends address information, and a second application different from the first application sends a common key, or the first application sends a common key, and the second application sends the address information.
[0127] In the conventional technology, it is necessary to input the shared key or address information used by the second application to the first application on the second terminal. To input the shared key or address information to the first application, the friend needs to copy and paste the shared key or address information or manually input a character string indicating the shared key or address information, which is time-consuming.
[0128] On the other hand, in this embodiment, the application functioning as the control unit 11 and the application functioning as the control unit 21 execute the communication of the address information, the type information, and the method information. The second user does not need to copy and paste or manually input this information.
[0129] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to the above embodiment, and design modifications and the like that do not deviate from the gist of the present invention are also included. [Explanation of symbols]
[0130] 1 first terminal, 2 second terminal, 3 server, 4 key sharing system, 10, 20, 30 communication unit, 11, 21, 31 control unit, 12, 22, 32 memory unit, 13, 23 operation unit, 110, 210 key generation unit, 111, 211 encryption processing unit, 112, 212, 311 communication control unit, 310 processing unit
Claims
1. A first terminal and a second terminal, The first terminal comprises: a first key generation unit that generates a common key based on predetermined information; a first communication unit that transmits, to the second terminal, correspondence information corresponding to the predetermined information and method information indicating a method of generating the common key; Equipped with The second terminal comprises: a second communication unit that receives the correspondence information and the method information from the first terminal; a second key generation unit that generates the common key according to the generation method indicated by the method information by using the predetermined information corresponding to the correspondence information; A key sharing system comprising:
2. the first terminal includes a first storage unit configured to store first information used by the second terminal to identify the first terminal in communication executed between the first terminal and the second terminal, and second information used by the first terminal to identify the second terminal in the communication; the second terminal includes a second storage unit that stores the first information and the second information; the predetermined information is the first information and the second information, The correspondence information indicates the types of the first information and the second information. The key sharing system according to claim 1 .
3. the first key generation unit generates the common key by calculating a hash value of the predetermined information; The method information indicates a hash algorithm used to generate the common key, The second key generation unit generates the common key by calculating a hash value of the predetermined information according to the hash algorithm indicated by the method information.
3. A key sharing system according to claim 1 or 2.
4. The first communication unit transmits address information indicating a uniform resource locator (URL) to the second terminal; the second communication unit receives the address information from the first terminal; The first communication unit and the second communication unit exchange data via a storage device specified by the URL indicated by the address information.
3. A key sharing system according to claim 1 or 2.
5. The correspondence information is a character string combined with a character string including the URL. The key sharing system according to claim 4.
6. The method information is a string that is combined with a string that includes the URL. The key sharing system according to claim 4.
7. a first key generation step in which a first key generation unit of the first terminal generates a common key based on predetermined information; a first communication step in which a first communication unit of the first terminal transmits, to a second terminal, correspondence information corresponding to the predetermined information and method information indicating a method of generating the common key; a second communication step in which a second communication unit of the second terminal receives the correspondence information and the method information from the first terminal; a second key generation step in which a second key generation unit of the second terminal generates the common key by using the predetermined information corresponding to the correspondence information and according to the generation method indicated by the method information; A key sharing method comprising:
Citation Information
Patent Citations
Authentication method, authentication apparatus and authentication system
EP3493462A1
Common key exchange method, common key generation method, common key exchange system, common key exchange device, and program of the same
JP2012147341A
Content reproduction method and system for controlling reproduction of multiple contents by one reproduction ticket
JP2014068189A
System, server, reader, method, and program
JP2022045185A
Key management method and related device
US20210377010A1
