Key management method, key management system, and computer program
The key management system addresses the challenge of managing numerous keys by using a dual-device approach with secure components to generate, transmit, and distribute keys securely, ensuring efficient and secure key management across different locations.
Patent Information
- Application Number
- JP2023022667
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-16
- Publication Date
- 2024-08-28
AI Technical Summary
The generation and transmission of a large number of unique keys for devices like ECUs becomes cumbersome and difficult to manage due to the time-consuming process of selecting and transmitting keys, making it challenging to efficiently manage keys in secure factory environments.
A key management system involving a first and second management device, with secure components like IC cards, facilitates the generation and distribution of keys by using individual key generation master keys, where the first management device generates and stores encrypted keys, which are then transmitted to the second management device for further processing and distribution to external devices.
This system allows for easy management and secure transmission of keys, reducing the risk of leakage and simplifying the generation and distribution process, thereby enhancing security and efficiency in key management across different locations.
Smart Images

Figure 2024116846000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a key management method, a key management system, and a computer program. [Background technology]
[0002] In recent years, CASE has been attracting attention in the automotive industry. Vehicle security is becoming increasingly important, especially in the C (Connected) and A (Autonomous) era. As part of vehicle security measures, authentication is performed when updating the software of the ECU (Electronic Control Unit) installed in the vehicle, or when communicating with other ECUs installed in the same vehicle. Since encryption technology is used for this type of authentication, an encryption key is written into each ECU at the secure factory where the ECUs are manufactured.
[0003] When distributing keys to be written to devices such as ECUs from a key management department to a secure factory, it is necessary to generate a large number of random numbers using a key generation device in the key management department, generate a key for each generated random number, and transmit the large number of generated keys as a key bunch (key file) to a secure factory at another location via a network. Patent Document 1 discloses a system that generates keys using random numbers generated by a random number generation means. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2000-56680 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, generating a large number of unique keys for each device such as an ECU and transmitting these keys as a key ring can be time-consuming, for example, because it is necessary to select the key required for each ECU from the large number of keys, or to perform the processing required to transmit a large number of keys, making key management difficult.
[0006] The present invention has been made in consideration of the above circumstances, and has an object to provide a key management method, a key management system, and a computer program that enable easy management of keys. [Means for solving the problem]
[0007] The present application includes multiple means for solving the above-mentioned problems, and one example is a key management method in which a first management device at a first location stores a master key for generating individual keys generated by a first secure component connected to the first management device, transmits the stored master key for generating individual keys to a second management device at a second location, the second management device outputs an instruction to a second secure component connected to the second management device to generate an individual key using the master key for generating individual keys, and outputs the individual key generated by the second secure component to an external device. Effect of the Invention
[0008] According to the present invention, keys can be easily managed. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 illustrates an example of a configuration of a key management system. [Diagram 2] FIG. 2 illustrates an example of a configuration of a first management apparatus. [Diagram 3] FIG. 2 illustrates an example of a configuration of a second management apparatus. [Figure 4] FIG. 1 illustrates an example of the configuration of an IC card. [Diagram 5] FIG. 4 is a diagram showing an example of various types of key information used in the present embodiment. [Figure 6] FIG. 11 is a diagram showing a first example of an LMK generation and sharing process. [Figure 7] A diagram showing a second example of the LMK generation and sharing process. [Figure 8] A figure showing a third example of the LMK generation and sharing process. [Figure 9] FIG. 11 illustrates an example of a master key generation process. [Figure 10] FIG. 13 is a diagram illustrating an example of a process for generating a distribution key and a process for sharing the distribution key among bases. [Figure 11] FIG. 11 is a diagram illustrating an example of a process for generating a master key for generating individual keys. [Figure 12] FIG. 11 is a diagram illustrating an example of a process of sharing a master key for generating individual keys. [Figure 13] FIG. 11 is a diagram illustrating an example of an individual key generation process. [Figure 14] FIG. 11 is a diagram illustrating a first example of key management. [Figure 15] FIG. 11 is a diagram illustrating a second example of key management. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] The present invention will be described below with reference to the drawings showing the embodiments. FIG. 1 is a diagram showing an example of the configuration of a key management system. The key management system includes a first management device 10 at a first location and a second management device 20 at a second location. The first management device 10 is connected to readers (reader / writers) 31 and 32. An IC card 51 may be attached to the reader 31, and an IC card 52 may be attached to the reader 32. In the example of FIG. 1, for the sake of ease of explanation, a configuration in which two readers are connected to the first management device 10 is shown, but in reality, only one reader is required to be connected (IC cards are attached alternately). The second management device 20 is connected to a reader (reader / writer) 41. An IC card 52 may be attached to the reader 41. The IC card 52 is the IC card 52 that was at the first location and was transported to the second location. The key management system may include the IC cards 51 and 52. The IC cards are assumed to be contact type, but may be non-contact type. In this specification, an IC card is taken as an example of a secure component, but the secure component is not limited to an IC card and may be an HSM (Hardware Security Module) or the like.
[0011] At the first location, the IC card 51 corresponds to the first secure component connected to the first management apparatus 10, and the IC card 52 corresponds to the second secure component connected to the first management apparatus 10. At the second location, the IC card 52 corresponds to the second secure component connected to the second management apparatus 20.
[0012] The first site is, for example, a business establishment having organizations such as a key management department and a design and development department, and the first management device 10 is installed in a secure area in the business establishment and operated by personnel in the key management department and the design and development department. The second site is, for example, a secure factory having organizations such as a manufacturing department and a quality assurance department, and a manufacturing line (mass production line, mass production trial line, etc.) for devices such as ECUs (electronic control units) is installed. The second management device 20 is operated by personnel in the manufacturing department and the quality assurance department.
[0013] In this embodiment, the second base is, for example, a secure factory, and security measures such as a dedicated line or a VPN (Virtual Private Network) are not taken between the second base and an external base (for example, the first base), and the network security of the intranet between the first base and the second base is not fully considered, but a dedicated communication path may be provided between the bases. The first base and the second base are merely examples, and are not limited thereto. Note that in this specification, an ECU mounted on a vehicle is used as an example of a device that uses a key, but devices to which the present invention can be applied are not limited to ECUs, and include devices that use keys, such as IoT (Internet of Things) devices. In particular, the present invention can be applied to devices manufactured in a secure factory where connection to a communication network such as the Internet is limited.
[0014] 2 is a diagram showing an example of the configuration of the first management device 10. The first management device 10 can be configured, for example, by a personal computer, etc. The first management device 10 includes a control unit 11 that controls the entire device, a communication unit 12, a memory 13, an interface unit 14, a display panel 15, an operation unit 16, and a storage unit 17.
[0015] The control unit 11 may be configured by incorporating a required number of IC (Integrated Circuit) chips, CPUs (Central Processing Units), MPUs (Micro-Processing Units), GPUs (Graphics Processing Units), etc. The control unit 11 may also be configured by combining cryptographic processors, DSPs (Digital Signal Processors), FPGAs (Field-Programmable Gate Arrays), etc.
[0016] The communication unit 12 includes a communication module and has a function of communicating with an external device. In the first embodiment, it is not assumed that the communication unit 12 communicates with the second management device 20 at the second base.
[0017] The storage unit 17 can be configured, for example, with a hard disk or a semiconductor memory, and stores a computer program 18 (program product) and required information (for example, various types of key information, etc.).
[0018] The computer program 18 is an application program (key management application) that runs on the first management device 10, and may be downloaded from an external device via the communication unit 12 and stored in the storage unit 17. In addition, the computer program 18 recorded on a recording medium (for example, an optically readable disk storage medium such as a CD-ROM) may be read by a recording medium reading unit and stored in the storage unit 17.
[0019] The memory 13 can be configured with a semiconductor memory such as a static random access memory (SRAM), a dynamic random access memory (DRAM), a flash memory, etc. A computer program 18 can be loaded into the memory 13, and the control unit 11 can execute the computer program 18. The control unit 11 can execute processing defined by the computer program 18. In other words, the processing by the control unit 11 is also processing by the computer program 18.
[0020] The interface unit 14 has an interface function with the readers 31, 32, and 33. The interface unit 14 can transmit and receive information to and from the IC cards 51, 52, and 53 via the readers 31, 32, and 33.
[0021] The display panel 15 can be configured with a liquid crystal panel, an organic EL (Electro Luminescence) display, or the like.
[0022] The operation unit 16 includes, for example, a keyboard, a mouse, and the like, and can be used to operate icons displayed on the display panel 15, move and operate a cursor, input characters, and the like.
[0023] 3 is a diagram showing an example of the configuration of the second management device 20. The second management device 20 can be configured, for example, by a personal computer, etc. Similar to the configuration of the first management device 10, the second management device 20 includes a control unit 21 that controls the entire device, a communication unit 22, a memory 23, an interface unit 24, a display panel 25, an operation unit 26, and a storage unit 27.
[0024] The control unit 21 may be configured by incorporating a required number of IC (Integrated Circuit) chips, CPUs (Central Processing Units), MPUs (Micro-Processing Units), GPUs (Graphics Processing Units), etc. The control unit 21 may also be configured by combining cryptographic processors, DSPs (Digital Signal Processors), FPGAs (Field-Programmable Gate Arrays), etc.
[0025] The communication unit 22 includes a communication module and has a function of communicating with an external device. In the first embodiment, it is not assumed that the communication unit 22 communicates with the first management device 10 at the first base.
[0026] The storage unit 27 can be configured, for example, with a hard disk or a semiconductor memory, and stores a computer program 28 (program product) and required information (for example, various types of key information, etc.).
[0027] The computer program 28 is an application program (production equipment application) that runs on the second management device 20, and may be downloaded from an external device via the communication unit 22 and stored in the storage unit 27. In addition, the computer program 28 recorded on a recording medium (for example, an optically readable disk storage medium such as a CD-ROM) may be read by a recording medium reading unit and stored in the storage unit 27.
[0028] The memory 23 can be configured with a semiconductor memory such as a static random access memory (SRAM), a dynamic random access memory (DRAM), or a flash memory. The computer program 28 can be loaded into the memory 23, and the control unit 21 can execute the computer program 28. The control unit 21 can execute processing defined by the computer program 28. In other words, the processing by the control unit 21 is also processing by the computer program 28.
[0029] The interface unit 24 has an interface function with the readers 41, 42. The interface unit 24 can transmit and receive information to and from the IC cards 53, 61 via the readers 41, 42.
[0030] The display panel 25 can be configured with a liquid crystal panel, an organic EL (Electro Luminescence) display, or the like.
[0031] The operation unit 26 includes, for example, a keyboard, a mouse, and the like, and can be used to operate icons displayed on the display panel 25, move and operate a cursor, input characters, and the like.
[0032] 4 is a diagram showing an example of the configuration of IC card 50. Since IC cards 51 and 52 have the same configuration, for convenience, IC cards 51 and 52 will be collectively described as IC card 50. IC card 50 includes a tamper-resistant IC chip, and includes a CPU 50A, an interface unit 50B, a RAM 50C, a ROM 50D, and a secure memory 50E.
[0033] The CPU 50A controls all processing of the IC card 50. The CPU 50A includes, for example, a dedicated cryptographic processor that executes calculations of the RSA cryptosystem.
[0034] The interface unit 50B controls communications with the outside world, and transmits and receives information to and from the first control apparatus 10 via the readers 31-33, and to and from the second control apparatus 20 via the readers 41-42.
[0035] RAM 50C is a high-speed memory for reading and writing temporary data.
[0036] The ROM 50D is a read-only memory used to store programs.
[0037] The secure memory 50E can be configured, for example, with an EEPROM (Electrically Erasable Programmable Read-Only Memory) and is a writable memory that stores various keys for encryption and decryption (for example, a common key in a common key cryptosystem, or a private key and public key pair in a public key cryptosystem), key information used to generate individual keys for ECUs, and the like.
[0038] 5 is a diagram showing an example of various types of key information used in this embodiment. The management private key can manage an LMK (Local Master Key) encryption key by using a card that has the same management private key in advance.
[0039] The LMK encryption key is a key for encrypting and decrypting the LMK (Local Master Key), and can use a random number. The LMK encryption key is a key that only the card manufacturer knows.
[0040] The LMK is a key used to encrypt and decrypt the master key, the master key for generating individual keys, the distribution key, and the individual keys.
[0041] The master key is a key for generating an individual key generation master key.
[0042] The individual key generation master key is a key for generating individual keys, and from the viewpoint of key management for ECUs, may be generated for each production of an ECU.
[0043] The distribution key is a key for encrypting and decrypting the individual key generation master key when the individual key generation master key is distributed.
[0044] The individual keys are generated using the individual key generation master key together with the SEED and written to the ECU.
[0045] Next, the process for key management will be described.
[0046] 6 is a diagram showing a first example of the LMK generation and sharing process. IC cards 51 and 52 are connected to the first management device 10. The IC cards 51 and 52 share a management private key in advance (S11). The first management device 10 outputs an instruction to the IC card 51 to generate an LMK#1 (S12). The IC card 51 generates an LMK#1 (S13).
[0047] The first management device 10 outputs an instruction to export LMK#1 to the IC card 51 (S14). The IC card 51 generates an LMK encryption key (random number) (S15) and encrypts the LMK encryption key with the management private key (S16). The IC card 51 encrypts LMK#1 with the LMK encryption key (S17).
[0048] The IC card 51 exports the encrypted LMK#1 encrypted with the LMK encryption key and the encrypted LMK encryption key encrypted with the management private key to the first management device 10 (S18). The first management device 10 stores the encrypted LMK#1 encrypted with the LMK encryption key and the encrypted LMK encryption key encrypted with the management private key in the storage unit 17 (S19), and ends the process.
[0049] Through the above process, the first location holds LMK#1. The process illustrated in Figure 6 is the generation phase of LMK#1 at the first location, and is basically performed only once. However, the process illustrated in Figure 6 may be performed multiple times as necessary.
[0050] 7 is a diagram showing a second example of the LMK generation and sharing process. The first control device 10 outputs an instruction to generate an LMK#2 to the IC card 52 connected to the first control device 10 (S31). The IC card 52 generates an LMK#2 (S32).
[0051] The IC card 52 generates an LMK encryption key (random number) (S33) and encrypts the LMK encryption key with a management private key (S34). The IC card 52 encrypts LMK#2 with the LMK encryption key (S35). After that, the IC card 52 is moved from the first location to the second location (S36). For example, the IC card 52 can be transported under secure management conditions.
[0052] The IC card 52 that has been moved to the second location is connected to the second management device 20. The second management device 20 instructs the IC card 52 to export LMK#2 (S37). The IC card 52 exports the encrypted LMK#2 encrypted with the LMK encryption key, and the encrypted LMK encryption key encrypted with the management private key, to the second management device 20 (S38). The second management device 20 stores the encrypted LMK#2 encrypted with the LMK encryption key, and the encrypted LMK encryption key encrypted with the management private key in the storage unit 27 (S39), and ends the process.
[0053] Through the above process, LMK#2 is held at the second location. Note that the process illustrated in Figure 7 is the phase for generating LMK#2 for the second location, and is performed only once.
[0054] FIG. 8 is a diagram showing a third example of the LMK generation and sharing process. The third example shown in FIG. 8 is a case in which the LMK#1 is intentionally used at the second site as well, but from the viewpoint of security, the second example shown in FIG. 7 is preferable. The first management device 10 exports the encrypted LMK#1 encrypted with the LMK encryption key and the encrypted LMK encryption key encrypted with the management private key to the IC card 52 connected to the first management device 10 (S21). The IC card 52 stores the encrypted LMK#1 encrypted with the LMK encryption key and the encrypted LMK encryption key encrypted with the management private key in the secure memory 50E (S22). After that, the IC card 52 is moved from the first site to the second site (S23). For example, the IC card 52 can be transported under secure management.
[0055] The IC card 52 that has been moved to the second location is connected to the second management device 20. The second management device 20 instructs the IC card 52 to export LMK#1 (S24). The IC card 52 exports the encrypted LMK#1 encrypted with the LMK encryption key and the encrypted LMK encryption key encrypted with the management private key to the second management device 20 (S25). The second management device 20 stores the encrypted LMK#1 encrypted with the LMK encryption key and the encrypted LMK encryption key encrypted with the management private key in the storage unit 27 (S26), and ends the process.
[0056] Through the above process, LMK#1 is held at the second location. Note that the process illustrated in Figure 8 is the phase in which LMK#1 is shared with the second location, and is performed only once.
[0057] 9 is a diagram showing an example of a master key generation process. The IC card 51 is connected to the first management device 10. The first management device 10 outputs an instruction to generate a master key to the IC card 51 (S41). The IC card 51 generates a master key (S42) and encrypts the generated master key with LMK#1 (S43).
[0058] The IC card 51 exports the encrypted master key encrypted with LMK#1 to the first management device 10 (S44). The first management device 10 stores the encrypted master key encrypted with LMK#1 in the storage unit 17 (S45) and ends the process. The first management device 10 is protected and stored safely under a security policy that does not allow the master key to be taken outside of a security area for key management. The encrypted master key may also be stored in the secure memory 50E of the IC card 51. In this case as well, the IC card 51 is protected and stored safely under a security policy that does not allow the master key to be taken outside of a security area for key management.
[0059] The process illustrated in FIG. 9 is the master key generation phase, and is performed only once.
[0060] 10 is a diagram showing an example of a process for generating a distribution key and a process for sharing the distribution key between bases. An IC card 51 is connected to the first management apparatus 10, and an IC card 52 is connected to the second management apparatus 20. The first management apparatus 10 outputs an instruction to generate a key component to the IC card 51 (S51). The IC card 51 generates a key component (S52) and outputs the generated key component to the first management apparatus 10 (S53). Note that the processes from steps S51 to S53 may be performed multiple times (e.g., three times).
[0061] The first management device 10 outputs an instruction to the IC card 51 to generate a distribution key using the key components as input (S54). The IC card 51 generates a distribution key (S55) and encrypts the generated distribution key with LMK#1 (S56). The IC card 51 outputs the encrypted distribution key encrypted with LMK#1 to the first management device 10 (S57). The first management device 10 stores the encrypted distribution key encrypted with LMK#1 in the storage unit 17 (S58).
[0062] The first control device 10 shares the key components with the second control device 20 (S59). Here, multiple personnel are assigned to each of the multiple key components at the first location and the second location, and each personnel is not allowed to know any key components other than the key components for which he or she is responsible.
[0063] The second management device 20 outputs an instruction to the IC card 52 to generate a distribution key using the key components as input (S60). The IC card 52 generates a distribution key (S61) and encrypts the generated distribution key with LMK#1 or LMK#2 (S62). The IC card 52 outputs the encrypted distribution key encrypted with LMK#1 or LMK#2 to the second management device 20 (S63). The second management device 20 stores the encrypted distribution key encrypted with LMK#1 or LMK#2 in the storage unit 27 (S64) and ends the process.
[0064] 10, steps S51 to S58 are a distribution key generation phase and are performed only once. Steps S59 to S64 are a distribution key sharing phase and are performed only once.
[0065] 11 is a diagram showing an example of a process for generating a master key for individual key generation. The IC card 51 is connected to the first management device 10. The first management device 10 outputs an instruction to generate a master key for individual key generation to the IC card 51 using a master key encrypted with LMK#1 as input (S71). The IC card 51 generates a master key for individual key generation (S72) and encrypts the generated master key for individual key generation with LMK#1 (S73).
[0066] The IC card 51 exports the encrypted individual key generation master key encrypted with LMK#1 to the first management device 10 (S74). The first management device 10 stores the encrypted individual key generation master key encrypted with LMK#1 in the storage unit 17 (S75) and ends the process.
[0067] 11 is a phase for generating a master key for individual key generation, and is performed once for each ECU part number. The master key for individual key generation is a key for generating an individual key for an ECU, and is generated for each production of the ECU from the viewpoint of key management for the ECU.
[0068] Furthermore, when generating an individual key generation master key, predetermined derivation information can be used. The derivation information is, for example, information for deriving one or more individual keys B1, B2, B3, ... from one key A, and includes a random numerical value called a seed and an algorithm for deriving the individual keys. By determining a certain algorithm and inputting different seeds, different individual key generation master keys can be generated.
[0069] 12 is a diagram showing an example of a sharing process of an individual key generation master key. An IC card 51 is connected to the first management device 10, and an IC card 52 is connected to the second management device 20. The first management device 10 outputs to the IC card 51 an instruction to switch the key for encrypting the individual key generation master key from LMK#1 to the distribution key, using the individual key generation master key encrypted with LMK#1 and the distribution key encrypted with LMK#1 as inputs (S81). The IC card 51 decrypts the encrypted individual key generation master key with LMK#1, then encrypts it with the distribution key (S82), and exports the individual key generation master key encrypted with the distribution key to the first management device 10 (S83).
[0070] The first management device 10 distributes the master key for generating individual keys encrypted with the distribution key to the second management device 20 at the second base (S84). In this case, a secret communication path is connected between the first base and the second base.
[0071] The second management device 20 receives as input the individual key generation master key encrypted with the distribution key and the distribution key encrypted with LMK#1 or LMK#2, and outputs to the IC card 52 an instruction to switch the key for encrypting the individual key generation master key from the distribution key to LMK#1 or LMK#2 (S85). The IC card 52 decrypts the encrypted individual key generation master key with the distribution key, then encrypts it with LMK#1 or LMK#2 (S86), and exports the individual key generation master key encrypted with LMK#1 or LMK#2 to the second management device 20 (S87). The second management device 20 stores the encrypted individual key generation master key in the storage unit 27 (S88), and ends the process.
[0072] FIG. 13 is a diagram showing an example of an individual key generation process. The IC card 52 is connected to the second management device 20. The second management device 20 outputs an individual key generation instruction to the IC card 52 using an individual key generation master key encrypted with LMK#1 or LMK#2 and a SEED as input (S91). The IC card 52 generates an individual key (S92). Here, for example, to generate 100 types of individual keys, 100 types of SEED can be used. Also, to generate 1000 identical individual keys, the generation of individual keys can be repeated 1000 times using one type of SEED.
[0073] It is sufficient to carry out either the processing from steps S93 to S94 or the processing from steps S95 to S97, which will be described later.
[0074] The IC card 52 encrypts the generated individual key with LMK#1 or LMK#2, and outputs the individual key encrypted with LMK#1 or LMK#2 to the second management device 20 (S93). The second management device 20 stores the encrypted individual key in the storage unit 27 (S94), and ends the process.
[0075] The IC card 52 outputs the generated individual key in plain text to the second control apparatus 20 (S95). The second control apparatus 20 outputs the individual key in plain text to the ECU (S96), and the ECU writes the individual key (S97), and the process ends.
[0076] 11 to 13, the first management apparatus 10 at the first base stores an individual key generation master key generated by an IC card 51 (first secure component) connected to the first management apparatus 10, and transmits the stored individual key generation master key to a second management apparatus 20 at the second base. The second management apparatus 20 outputs an instruction to an IC card 52 (second secure component) connected to the second management apparatus 20 to generate an individual key using the individual key generation master key, and outputs the individual key generated by the IC card 52 (second secure component) to an ECU (external device).
[0077] With the above-mentioned configuration, only the master key for generating individual keys is delivered from the first location to the second location, and the individual keys are generated from the master key for generating individual keys at the second location, eliminating the need to transmit a large number of individual keys between locations. In addition, because individual keys can be generated as needed from the master key for generating individual keys, the generation, management, and distribution of individual keys becomes easy, and keys can be easily managed.
[0078] Furthermore, as shown in FIG. 12, an IC card 51 (first secure component) connected to the first management device 10 may encrypt a master key for generating individual keys with a distribution key, and the first management device 10 may transmit the master key for generating individual keys encrypted with the distribution key to the second management device 20.
[0079] The above-described configuration can improve security when distributing the individual key generation master key from the first location to the second location.
[0080] Furthermore, as shown in Figures 10 and 12, the first management device 10 may share key components for generating a distribution key with the second management device 20, and an IC card 52 (second secure component) connected to the second management device 20 may generate a distribution key using the shared key components and decrypt the encrypted individual key generation master key sent by the first management device 10 with the generated distribution key, and the second management device 20 may store the decrypted individual key generation master key in the memory unit 27.
[0081] With the above-described configuration, there is no need to transmit and receive the distribution key between the first location and the second location, and the distribution key can be generated at each location, thereby reducing the risk of the distribution key being leaked.
[0082] 9, the first control device 10 outputs an instruction to an IC card 51 (first secure component) connected to the first control device 10 to generate an individual key generation master key using the master key stored in the first control device 10. The IC card 51 (first secure component) may output the generated individual key generation master key to the first control device 10.
[0083] The master key is the highest-level key of a key group including the individual key generation master key and the individual keys to be written to the ECU. With the above-mentioned configuration, a required individual key generation master key can be generated based on the master key, and as a result, the individual keys to be written to the ECU can also be generated.
[0084] 6, an IC card 51 (first secure component) connected to the first management device 10 may generate an LMK (local master key) based on an instruction from the first management device 10, and the first management device may store the generated LMK. The LMK can be used as a key for encrypting and decrypting a master key, a master key for generating individual keys, a distribution key, and an individual key.
[0085] 11, the first management device 10 may store an individual key generation master key in the storage unit 17, the individual key generation master key being generated by an IC card 51 (first secure component) connected to the first management device 10 and encrypted with an LMK (local master key). This can improve security when storing the individual key generation master key.
[0086] 7 and 8, an IC card 52 (second secure component) connected to the first management apparatus 10 stores an LMK (local master key). The IC card 52 is moved (transported), for example, from a first base to a second base. The IC card 52 (a card transported from the first base to the second base: second secure component) connected to the second management apparatus 20 outputs the stored LMK (local master key) to the second management apparatus 20, and the second management apparatus 20 may store the output LMK (local master key) in the storage unit 27. This allows the bases to share keys for encrypting and decrypting an individual key generation master key, a distribution key, an individual key, and the like.
[0087] 12, an IC card 52 (second secure component) connected to the second management device 20 may encrypt the individual key generation master key transmitted from the first management device 10 to the second management device 20 with an LMK (local master key) stored in the second management device 20, and the second management device 20 may store the encrypted individual key generation master key in the storage unit 27. This can improve security when storing the individual key generation master key.
[0088] Fig. 14 is a diagram showing a first example of key management. For example, an individual key generation master key is generated once for each ECU version (product number) and managed. Fig. 14 shows individual key generation master keys associated with ECU versions. For example, when the ECU version is V1, individual key generation master key MKD1 is used. When the ECU version is V2, individual key generation master key MKD2 is used. The same applies to other versions. This makes it possible to easily manage individual key generation master keys that are valid for ECU versions.
[0089] Fig. 15 is a diagram showing a second example of key management. Fig. 15 illustrates management of individual keys for ECUs. As shown in Fig. 15A, vehicle models are represented as AAA, BBB, CCC, DDD, ..., and ECUs installed in the vehicle are represented as ECU1, ECU2, ECU3, ECU4, .... For example, the individual key used in ECU1 is IK1 regardless of the vehicle model (i.e., common to all vehicle models). Similarly, the individual key used in ECU2 is IK2 regardless of the vehicle model (i.e., common to all vehicle models).
[0090] On the other hand, the individual keys used by the ECU 3 are different for each vehicle model, for example, AAA-IK3 for vehicle model A, BBB-IK4 for vehicle model B, CCC-IK5 for vehicle model C, and DDD-IK6 for vehicle model D. The same is true for the ECU 4.
[0091] As shown in FIG. 15B, the vehicle model is AAA, and the vehicle serial numbers are represented by VIN01, VIN02, VIN03, .... FIG. 15B shows a case where a unique key common to all ECUs in a vehicle is written for each vehicle serial number. For example, an individual key IK11 is written to all ECUs (ECU1, ECU2, ECU3, ECU4, ...) of a vehicle whose serial number is VIN01. An individual key IK12 is written to all ECUs (ECU1, ECU2, ECU3, ECU4, ...) of a vehicle whose serial number is VIN02. An individual key IK13 is written to all ECUs (ECU1, ECU2, ECU3, ECU4, ...) of a vehicle whose serial number is VIN03. In this way, according to this embodiment, it is easy to generate, manage, and distribute individual keys for each purpose of ECUs of a vehicle.
[0092] (Supplementary Note 1) In a key management method, a first management device at a first location stores a master key for generating individual keys generated by a first secure component connected to the first management device, and transmits the stored master key for generating individual keys to a second management device at a second location, and the second management device outputs an instruction to a second secure component connected to the second management device to generate an individual key using the master key for generating individual keys, and outputs the individual key generated by the second secure component to an external device.
[0093] (Supplementary Note 2) In the key management method of Supplementary Note 1, a first secure component connected to the first management device may encrypt the individual key generation master key with a distribution key, and the first management device may transmit the individual key generation master key encrypted with the distribution key to the second management device.
[0094] (Supplementary Note 3) In the key management method of Supplementary Note 1 or Supplementary Note 2, the first management device may share a key component for generating a distribution key with the second management device, a second secure component connected to the second management device may generate a distribution key using the shared key component, and an encrypted master key for generating individual keys transmitted by the first management device may be decrypted with the generated distribution key, and the second management device may store the decrypted master key for generating individual keys.
[0095] (Supplementary Note 4) In the key management method, in any one of Supplementary Note 1 to Supplementary Note 3, the first management device may output an instruction to a first secure component connected to the first management device to generate a master key for generating individual keys using a master key stored in the first management device, and the first secure component may output the generated master key for generating individual keys to the first management device.
[0096] (Supplementary Note 5) In the key management method of any one of Supplementary Notes 1 to 4, a first secure component connected to the first management device may generate a local master key based on instructions from the first management device, and the first management device may store the generated local master key.
[0097] (Supplementary Note 6) In the key management method, in any one of Supplementary Note 1 to Supplementary Note 5, the first management device may store an individual key generation master key generated by a first secure component connected to the first management device and encrypted with a local master key.
[0098] (Supplementary Note 7) In the key management method, in any one of Supplementary Note 1 to Supplementary Note 6, a second secure component connected to the first management device may store a local master key, and the second secure component connected to the second management device may output the stored local master key to the second management device, and the second management device may store the output local master key.
[0099] (Appendix 8) In the key management method of any one of Appendices 1 to 7, a second secure component connected to the second management device encrypts a master key for generating individual keys transmitted from the first management device to the second management device with a local master key stored in the second management device, and the second management device may store the encrypted master key for generating individual keys.
[0100] (Additional Note 9) A key management system includes a first management device at a first location, a second management device at a second location, a first secure component connected to the first management device, and a second secure component connected to the second management device, wherein the first management device stores a master key for generating individual keys generated by the first secure component and transmits the stored master key for generating individual keys to a second management device at a second location, and the second management device outputs an instruction to the second secure component to generate an individual key using the master key for generating individual keys, and outputs the individual key generated by the second secure component to an external device.
[0101] (Addendum 10) The computer program is a computer program running on a second management device at a second location, and causes a computer to execute a process of receiving a master key for generating individual keys generated by a first secure component connected to a first management device at a first location, outputting an instruction to a second secure component connected to the second management device to generate an individual key using the master key for generating individual keys, and outputting the individual key generated by the second secure component to an external device.
[0102] The matters described in each embodiment can be combined with each other. In addition, the independent claims and dependent claims described in the claims can be combined with each other in any and all combinations regardless of the citation format. Furthermore, the claims use a format in which a claim cites two or more other claims (multiple claim format), but this is not limited to this. A multiple claim (multi-multi claim) that cites at least one multiple claim may also be used. [Explanation of symbols]
[0103] 1. Secret communication channel 10 1st management device 11 Control section 12 Communications Department 13. Memory 14 Interface section 15 Display Panel 16 Control section 17 Memory section 18 Computer Programs 20 Second management device 21 Control section 22 Communications Department 23 Memory 24 Interface section 25 Display Panel 26 Control section 27 Memory section 28 Computer Programs 31, 32, 41 Leader 50 IC Card 50A CPU 50B Interface section 50C RAM 50D ROM 50E Secure Memory 51 IC Card 52 IC Card
Claims
1. A first management device at a first base storing a master key for generating individual keys generated by a first secure component connected to the first management device; Transmitting the stored master key for generating individual keys to a second management device at a second location; The second management device is outputting, to a second secure component connected to the second management device, an instruction to generate an individual key by using the individual key generation master key; outputting the individual key generated by the second secure component to an external device; Key management method.
2. A first secure component connected to the first management device, encrypting the master key for generating individual keys with a distribution key; The first management device is transmitting a master key for generating individual keys encrypted with the distribution key to the second management device; The key management method according to claim 1 .
3. The first management device is sharing a key component for generating a distribution key with the second management device; A second secure component connected to the second management device, Generate a distribution key using the shared key components, decrypting the encrypted individual key generation master key transmitted by the first management device with the generated distribution key; The second management device is storing the decrypted master key for generating individual keys; The key management method according to claim 2 .
4. The first management device is outputting, to a first secure component connected to the first management device, an instruction to generate a master key for generating individual keys by using a master key stored in the first management device; The first secure component is outputting the generated individual key generation master key to the first management device; The key management method according to claim 1 .
5. A first secure component connected to the first management device, generating a local master key based on an instruction from the first management device; The first management device is Store the generated local master key; The key management method according to any one of claims 1 to 4.
6. The first management device is storing an individual key generation master key obtained by encrypting an individual key generation master key generated by a first secure component connected to the first management device with a local master key; The key management method according to any one of claims 1 to 4.
7. A second secure component connected to the first management device, Remember the local master key The second secure component connected to the second management device Outputting the stored local master key to the second management device; The second management device is Store the output local master key; The key management method according to any one of claims 1 to 4.
8. a second secure component connected to the second management device encrypts an individual key generation master key transmitted from the first management device to the second management device with a local master key stored in the second management device; The second management device is storing an encrypted master key for generating individual keys; The key management method according to any one of claims 1 to 4.
9. A system includes a first management device at a first location, a second management device at a second location, a first secure component connected to the first management device, and a second secure component connected to the second management device, The first management device is storing a master key for generating individual keys generated by the first secure component; Transmitting the stored master key for generating individual keys to a second management device at a second location; The second management device is outputting, to the second secure component, an instruction to generate an individual key by using the individual key generation master key; outputting the individual key generated by the second secure component to an external device; Key management system.
10. A computer program that operates on a second management device at a second site, receiving a master key for generating an individual key generated by a first secure component connected to a first management device at a first location; outputting, to a second secure component connected to the second management device, an instruction to generate an individual key by using the individual key generation master key; outputting the individual key generated by the second secure component to an external device; A computer program that causes a computer to carry out processing.
Citation Information
Patent Citations
Key generation system in ic card
JP2000056680A
