Information processing device and key management device
The information processing device addresses the challenge of updating verification keys by switching expected values to maintain continuous and secure program verification, enhancing security and reliability.
Patent Information
- Application Number
- JP2023563517
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-11-29
- Filing Date
- 2022-08-12
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2042-08-12
AI Technical Summary
Existing program verification methods fail to appropriately switch verification expected values when program verification keys are updated, leading to potential security vulnerabilities and program verification failures.
An information processing device that calculates verification values using program verification keys, updates keys, and switches verification expected values to match the updated keys, ensuring continuous program verification without disabling the verification function.
Maintains high security over a long life cycle by updating program verification keys without disabling the verification function, ensuring continuous and secure program execution.
Smart Images

Figure 0007565458000001 
Figure 0007565458000002 
Figure 0007565458000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device and a key management device, and more particularly to a method for switching a verification expected value in response to updating of a program verification key. [Background technology]
[0002] In embedded systems installed in automobiles, home appliances, medical devices, etc., there is concern that if an attacker illegally rewrites software or firmware, it could lead to serious damage. As a countermeasure against such threats, program verification that allows only untampered programs to be launched is being considered.
[0003] As one method of program verification, Patent Document 1 discloses a technology in which, when the program is started, a verification value is calculated using the program to be verified, a verification process based on cryptographic technology, and a key used in the verification process, and it is verified whether the calculated verification value matches a verification expected value calculated in advance.
[0004] In cryptographic technology, if the key used in the calculation is compromised even once, the security of the program verification itself cannot be guaranteed. One method to reduce the risk of key compromise is to periodically update the key, thereby reducing the risk that an attacker can identify the key being used. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Republished Publication No. 2009 / 044533 Summary of the Invention [Problem to be solved by the invention]
[0006] In program verification, even if the verification target program is the same, if the key value is different, the calculated verification value will be different, so a different verification expected value is required when the key is updated. However, conventional techniques have a problem in that the verification expected value cannot be appropriately switched when the key is updated.
[0007] According to the technology of Patent Document 1, it is possible to update a program to be verified and the verification expected value of the program. However, immediately after updating the key, the updated key value and the verification expected value corresponding to the updated key value do not match, so there is a risk that program verification will always fail and recovery will become impossible.
[0008] To address this issue, a method can be considered in which the program verification function is disabled, the program including the verification expected value is updated, and the program verification function is enabled again after the verification expected value is updated. However, since the function for disabling the program verification function is provided, there is a risk that the function itself may become vulnerable to exploitation by an attacker.
[0009] The present invention has been made in consideration of the above problems, and has an object to provide an information processing device that can accommodate updating of a program verification key without invalidating a program verification function. [Means for solving the problem]
[0010] One example of an information processing device according to the present invention is an information processing device that calculates a verification value using a key for program verification and verifies whether the verification value matches a pre-stored verification expected value, and includes a key updating unit that updates the key, a memory unit that pre-stores the verification expected value corresponding to the key updated by the key updating unit, and a verification expected value switching unit that switches the verification expected value in the memory unit that is referenced for verification when verifying the verification value calculated based on the updated key to the verification value corresponding to the updated key. Effect of the Invention
[0011] The information processing device according to the present invention can provide high security over a long life cycle by updating the program verification key without disabling the program verification function. Further features related to the present invention will become apparent from the description of the present specification and the accompanying drawings. Furthermore, the problems, configurations and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram showing a configuration of an information processing device according to an embodiment of the present invention. [Diagram 2] FIG. 13 is a diagram showing an outline of a processing sequence relating to key update and program verification processing. [Diagram 3] FIG. 13 is a diagram showing an outline of a processing flow for updating a key. [Figure 4] FIG. 1 is a diagram showing an outline of a processing flow for program verification. [Diagram 5] FIG. 4 is a diagram showing the data structure of key-related information. [Figure 6] FIG. 13 is a diagram showing a data structure of verification expected value information. [Figure 7] FIG. 13 is a diagram showing a data structure of reference destination verification expected value information. [Figure 8] FIG. 4 is a diagram showing a data structure of verification range information. [Figure 9] FIG. 1 is a diagram showing a configuration of a key management device according to an embodiment of the present invention. [Figure 10] FIG. 13 is a diagram showing an outline of a processing flow for generating a key and a verification expected value accompanying a key update. [Figure 11] FIG. 4 is a diagram showing the data structure of a key master. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, the present invention will be described in detail using examples with reference to the drawings.
[0014] [Information processing device 1] First, an information processing device 1 according to an embodiment of the present invention will be described. In this embodiment, an example of a method for updating a program verification key for an information processing device connected to an in-vehicle network will be described. However, the technical idea of the present invention is not limited to this embodiment.
[0015] 1 shows the configuration of an information processing device 1 in this embodiment. The information processing device 1 is, for example, a device mounted on a vehicle and controls the vehicle. However, the information processing device 1 may not be mounted on a vehicle, and may be a device that controls an object other than a vehicle.
[0016] An information processing device 1 is connected to other information processing devices 1 via a communication bus 2. The information processing device 1 is communicably connected to a plurality of information processing devices 1. The information processing device 1 may be directly connected to a key management device 3, which is a device for updating a key, or may be connected via an interface such as a DLC (Data Link Coupler), or may be connected via any of the information processing devices 1. In this embodiment, as an example, an example in which the information processing device 1 and the key management device 3 are connected via the communication bus 2 is disclosed.
[0017] The communication bus 2 may physically include multiple communication buses, and the standards of each communication bus may be the same or different, such as CAN (registered trademark), LIN (registered trademark), FlexRay (registered trademark), Ethernet (registered trademark), etc.
[0018] The information processing device 1 includes a calculation means (not shown) and a storage means (not shown). The calculation means includes, for example, a CPU. The storage means includes, for example, a non-volatile memory and a volatile memory. The calculation means executes a program stored in the storage means, whereby the information processing device 1 realizes the functions described in this specification.
[0019] For example, the information processing device 1 includes, as its functional units, a key update control unit 12, a verification expected value switching unit 13, a program verification unit 14, a program execution control unit 15, a program update unit 16, and a program update request management unit 17. In this specification, the processes executed by the CPU or these functional units can also be said to be executed by the information processing device 1.
[0020] The storage means includes a storage unit 100. The storage unit 100 may be entirely non-volatile, or may be partially volatile. The information processing device 1 also includes a communication unit 11, which is a communication interface and performs calculations necessary for communication.
[0021] The functional block diagram shown in Fig. 1 is an example, and the units and names of the functions are not limited to those shown therein. For example, the functions realized by the verification expected value switching unit 13 in this embodiment may be realized by other functional units shown in Fig. 1, or may be realized by functional units not shown in Fig. 1.
[0022] The communication unit 11 receives messages from the information processing device 1 via the communication bus 2, and transmits messages via the communication bus 2 to other information processing devices 1 and devices outside the vehicle.
[0023] The key update control unit 12 updates the key stored in the memory unit 100 when the information processing device 1 receives a key update request. The verification expected value switching unit 13 sets an appropriate verification expected value according to the key used for program verification. The program verification unit 14 verifies whether there are any abnormalities in the program to be verified. The program execution control unit 15 controls whether or not the program can be executed based on the verification result of the program verification unit 14. The program update unit 16 updates the program stored in the information processing device 1 to a new program. The program update request management unit 17 manages the timing of sending a message requesting a program update using the communication unit 11.
[0024] The memory unit 100 stores key-related information 101 including key values used during program verification, verification expected value information 102 including multiple keys used for program verification, verification range information 103 indicating the verification range of program verification, and reference verification expected value information 104 that sets expected values to be referenced during program verification.
[0025] Similarly, the functional block diagram of the storage unit 100 shown in Fig. 1 is merely an example, and the units and names of the functions are not limited thereto. For example, the information held by the reference verification expected value information 104 in this embodiment may be held by another functional unit shown in the storage unit 100 in Fig. 1, or may be held by a functional unit not shown in the storage unit 100 in Fig. 1.
[0026] 2 is a sequence diagram showing a process in which the information processing device 1 updates a key, verifies a program after the key update, and then executes the program. Each step described below is executed by, for example, a CPU (not shown) of the information processing device 1.
[0027] In step 201 , the communication unit 11 of the information processing device 1 receives a key update request from the key management device 3 . In step 202, the key update control unit 12 of the information processing device 1 verifies whether the communication data relating to the key update request received in step 201 above is correct.
[0028] In step 203 , the key update control unit 12 of the information processing device 1 rewrites the key value to be updated to the new key value received in step 201 above. In step 204 , the communication unit 11 of the information processing device 1 transmits the update result of the key updated in step 203 to the key management device 3 .
[0029] In step 205, the key management device 3 verifies, based on the key update result received from the information processing device 1 in step 204 above, whether the key has been updated correctly. In step 206, the verification expected value switching unit 13 of the information processing device 1 checks whether the key has been updated, and verifies whether the verification expected value needs to be switched.
[0030] In step 207, when the verification expected value switching unit 13 of the information processing device 1 determines in step 206 above that it is necessary to switch the verification expected value, it switches the reference from the verification expected value referenced by the key before the update to a verification expected value suitable for the key after the update. In step 208, the program verification unit 14 of the information processing device 1 verifies whether or not there is an abnormality in the program based on the key updated in step 203, the verification expected value switched in step 207, and the program to be verified.
[0031] In step 209, if the program execution control unit 15 of the information processing device 1 determines in step 208 that there is no abnormality in the program to be verified, the program execution control unit 15 starts up and executes the program. Through the above steps, the information processing device 1 can update the key to a new key without disabling the program verification function.
[0032] 3 is a flowchart showing the key update process from step 201 to step 205. As a technology related to key update, the Memory Update Protocol (MUP) is disclosed in the Specification of Secure Hardware Extensions (SHE) issued by AUTOSAR. The key update described below will be explained using SHE / MUP as an example, but other key update protocols may also be adopted.
[0033] In step 301, the key update control unit 12 receives a key update request from the key management device 3. For example, the key update control unit 12 receives communication data in the M1, M2, or M3 format defined by SHE / MUP.
[0034] In step 302, the key update control unit 12 verifies whether the communication data regarding the key update request received in step 301 above is correct. For example, M3 received in step 301 above is compared with the calculation result of AES-CMAC calculated based on M1, M2, and a predetermined key, and if they match, it is determined to be correct. Note that as the predetermined key, an initial value "0" may be used, or a key value shared in advance between the information processing device 1 and the key management device 3 may be used.
[0035] In step 303, the key update control unit 12 proceeds to step 304 if there is no defect in the update contents based on the verification result in step 302 above, and proceeds to step 308 if there is no defect in the update contents.
[0036] In step 304, the key update control unit 12 identifies the key to be updated based on the update content received in step 301. For example, the key slot ID to be updated is identified based on the key slot ID to be updated included in M1.
[0037] In step 305, the key update control unit 12 rewrites the key value to be updated with the received new key value. For example, M2 received in step 301 above is decrypted using a predetermined key to obtain the update key contained in M2, and the key associated with the key slot ID identified in step 304 above in the key related information 101 is rewritten with the update key. Note that as the predetermined key, an initial value "0" may be used, or a key value previously shared between the information processing device 1 and the key management device 3 may be used.
[0038] 5 shows the data structure of key-related information 101 that stores the updated key in step 305. Key-related information 101 consists of key slot ID 1011 for identifying each key stored in key-related information 101, key value 1012 indicating the value of the key, and update counter 1013 that counts up every time a key is updated. Note that instead of update counter 1013, a flag indicating whether or not a key has been updated may be used, or any other method may be used as long as it is information that changes with a key update.
[0039] For example, if the key update control unit 12 obtains "0x01" from M1 as the key slot ID to be updated in step 304 above, it rewrites the key value 1012 linked to "0x01" in the key slot ID 1011 of the key-related information 101 to the update key obtained by decrypting from M2, and updates the counter value of the update counter 1013 from "0x00000001" to "0x00000002".
[0040] In step 306, the key update control unit 12 creates a key update result to be transmitted to the key management device 3. For example, the key update control unit 12 creates key update result information including M4 indicating information on the key update content updated in above step 305, and M5 indicating the calculation result of AES-CMAC calculated based on the updated key and M4.
[0041] Here, data M4 is data combining M1 and an encrypted (the key is generated based on the update key) update counter value, and is used by the sender of M1-M3 to confirm whether the memory slot has been correctly updated by the information processing device 1. Data M5 is a CMAC authentication value of M4 (the key is generated based on the update key), and is used by the sender of M1-M3 to confirm the legitimacy of M4.
[0042] In step 307, the key update control unit 12 uses the communication unit 11 to transmit the key update result information created in step 306 to the key management device 3. The key management device 3 verifies whether the key has been updated correctly based on the key update result received from the information processing device 1. For example, if the calculation result of AES-CMAC calculated based on the update key transmitted to the information processing device 1 in step 301 and M4 transmitted in step 307 matches the value of M5 transmitted in step 307, it is determined that the key has been updated correctly. Through the above steps, the information processing device 1 can safely update the key for program verification to a new key.
[0043] 4 is a flowchart showing the process related to the program verification from the above step 206 to step 209. The program verification process described below may be performed immediately after the above step 203, may be performed when an instruction is received from outside the device, may be performed at the time of rebooting, or may be performed periodically.
[0044] In step 401, the verification expected value switching unit 13 verifies whether the key has been updated. For example, the previous counter value and the latest counter value of the update counter 1013 may be provided, and it may be determined that the key has been updated if there is a difference between the counter values. It may also be determined that the key has been updated by storing updated history information as flag information at the time of key update in the above step 305. It may also be determined that the key has been updated when it is performed immediately after the above step 203. It may also be determined that the key has been updated according to the instruction content when an instruction is received from outside the device. Alternatively, it may be determined whether the key has been updated by using a method capable of determining that the key has been updated.
[0045] In step 402 , if the verification expected value switching unit 13 determines in the above step 401 that the key has been updated, the process proceeds to step 403 , and if it determines that the key has not been updated, the process proceeds to step 405 .
[0046] In step 403, the verification expected value switching unit 13 selects a new verification expected value suitable for the updated key from the verification expected value information 102.
[0047] 6 shows the data structure of the verification expected value information 102 that stores the verification expected value selected in the above step 403. The verification expected value information 102 includes a key slot ID 1021 that identifies each key stored in the key related information 101, a verification expected value 1022 that stores the verification expected value associated with the key value used for program verification and the verification expected value associated with the updated key value, an arrangement address 1023 that indicates address information where each verification expected value is arranged, and a usage status 1024 that indicates the usage status of the verification expected value 1022.
[0048] For example, the verification expected value switching unit 13 selects "verification expected value B", which is one level lower than "verification expected value A", for the verification expected value 1022 for which the usage status 1024 is "in use". If the verification expected value 1022 for which the usage status 1024 is "in use" is "verification expected value C", it may be changed back to "verification expected value A". In this case, each time the key is updated, the verification expected value to be selected is "verification expected value A -> verification expected value B -> verification expected value C -> verification expected value A ->". Note that the selection order of the verification expected values may be repeated in a fixed order as described above, or may be random as long as the association between the key value and the verification expected value is guaranteed.
[0049] Furthermore, the verification expected value switching unit 13 may receive an instruction of the verification expected value to be selected next time when updating the key from outside the information processing device 1 at a stage before the above step 403. Furthermore, the verification expected value switching unit 13 may select the verification expected value based on the counter value of the update counter 1013. For example, when the calculation result of "A mod n" is "1" for the update counter value "A" and the total number of verification expected values stored in the verification expected value 1022, "n=3", the verification expected value switching unit 13 may select "verification expected value A"; when the calculation result is "2", the verification expected value B"; and when the calculation result is "0", the verification expected value C" may be selected. In this case, each time the key is updated, the verification expected value to be selected is "verification expected value A → verification expected value B → verification expected value C → verification expected value A →...".
[0050] In the above cases, in order to ensure an appropriate combination of the updated key value 1012 and the selected verification expected value 1022, the administrator who performs the key update may update the key to a new key that is appropriate for the verification expected value to be used after the key update. Alternatively, the information processing device 1 may notify the outside of the device of information on the verification expected value to be used after the key update, and update the new target key based on the notification result so that the verification expected value and key are an appropriate combination. In step 404, the verification expected value switching unit 13 registers the verification expected value selected in above step 403 in the reference verification expected value information 104.
[0051] 7 shows a data structure of the referenced verification expected value information 104 in which the verification expected value selected in the above step 404 is registered. The referenced verification expected value information 104 includes a key slot ID 1041 indicating a key slot associated with the selected verification expected value, and a referenced verification expected value 1042 used in the program verification. The referenced verification expected value 1042 may be a specific verification expected value, or address information in which the verification expected value selected in the above step 403 is stored may be registered, or any other method may be used as long as the verification expected value used in the program verification can be specified. For example, in the above step 403, the verification expected value switching unit 13 selects "verification expected value B" from the verification expected value 1022 associated with "0x01" in the key slot ID 1021, and changes the value of the referenced verification expected value 1042 in which the key slot ID 1041 is "0x01" from "verification expected value A" to "verification expected value B".
[0052] In step 405 , the program verification unit 14 obtains the key used for program verification from the key value 1012 of the key related information 101 .
[0053] In step 406, a verification expected value corresponding to the key obtained in step 405 is obtained.
[0054] In step 407, the program verification unit 14 acquires from the verification range information 103 the area in which the program to be verified is stored.
[0055] 8 shows the data structure of verification range information 103 from which the program verification unit 14 acquires the storage area of the program to be verified in step 407. The verification range information 103 includes a key slot ID 1031 indicating a key slot used for program verification, a verification target program 1032 indicating the program to be verified, and a verification range address 1033 indicating range information of the program to be verified that is to be verified.
[0056] For example, the program verification unit 14 obtains the verification range address 1033 corresponding to the key slot ID of the key value 1012 obtained in the above step 405. In step 407, the program verification unit 14 obtains the program information specified by the verification range address 1033 obtained in the above step 406.
[0057] In step 408, the program verification unit 14 calculates a verification value based on the key value 1012 acquired in step 405 and the program to be verified acquired in step 407, verifies whether it matches the expected verification value acquired in step 406, and if it matches, determines that there is no defect in the verification target such as the key value 1012 or the program to be verified, and if it does not match, determines that there is a defect in the verification target such as the key value 1012 or the program to be verified. The verification value may be a signature value generated using a public key cryptography such as DSA, ECDSA, or RSA, a MAC (Message Authentication Code) value generated using a common key cryptography such as AES-CMAC, or a hash or a checksum.
[0058] In step 409 , if the program verification unit 14 determines in step 408 above that there is no defect in the verification target, the program verification unit 14 proceeds to step 410 , and if it determines that there is a defect in the verification target, the program verification unit 14 proceeds to step 411 . In step 410 , the program execution control unit 15 executes the program verified in step 408 above.
[0059] In step 411, the program execution control unit 15 executes a predetermined error process. For example, the program may be stopped, or only a program having a part of the functions may be executed.
[0060] By following the above steps, even if the key for program verification is updated to a new key, the information processing device 1 can continue program verification correctly by switching the verification expected value used before the key update to a verification expected value suitable for the updated key, without the need to disable the program verification function or update the program itself.
[0061] Also, for example, in the above step 204, the program update request management unit 17 mounted on the information processing device 1 can request the key management device 3 to update the program to one including a new bunch of verification expected values based on the number of unused verification expected values or before the number of switching times reaches a predetermined number, for example when the number of remaining verification expected values becomes less than a predetermined number, and can update to a program including the new verification expected value 1022 using the program update unit 16. In this way, even if the number of verification expected values that have become used due to key updating increases, program verification can always be realized using pairs of unused keys and verification expected values, thereby improving security.
[0062] [Key management device 3] Next, a description will be given of a key management device 3 according to an embodiment of the present invention. The key management device 3 according to an embodiment is connected to an information processing device 1 via a communication bus 2.
[0063] The key management device 3 has a communication unit 31 that transmits and receives various data to and from the information processing device 1. The communication unit 31 transmits a key update request to the information processing device 1 in step 201 in Fig. 2, and receives a result notification of the key update from the information processing device 1 in step 204.
[0064] Moreover, the key management device 3 has a key generation unit 32 that generates keys corresponding to a plurality of verification expected values held by the information processing device 1. The key generation unit 32 generates keys including those to be used in the future, and stores the first key to be used among them in the information processing device 1 at the shipping factory.
[0065] Moreover, the key management device 3 includes a verification expected value generating unit 33. The verification expected value generating unit 33 generates a verification expected value for each of the generated keys, and stores the verification expected value in the information processing device 1 at the shipping factory.
[0066] Furthermore, when the verification expected value generation unit 33 generates a verification expected value, the verification expected value update request unit 34 requests the information processing device 1 to update the batch of verification expected values stored in the storage unit 100 of the information processing device 1 to a new batch of verification expected values. Then, upon receiving the above-mentioned update request for the verification expected value, the information processing device 1 updates the verification expected value.
[0067] In the above, an example has been described in which the key management device 3 directly transmits various pieces of information to the information processing device 1, but the present invention is not limited to this, and notification may be sent to a device other than the information processing device 1. For example, notification may be sent to a program update management system (not shown) so that the verification expected value is safely updated together with the program update of the information processing device 1. More preferably, a program update technique that ensures the confidentiality and integrity of the update program may be used.
[0068] Furthermore, the key update requesting unit 35 requests the information processing device 1 to update the stored key to a new key by a predetermined deadline, and searches for a key corresponding to the updated verification expected value from the key master information and transmits it to the information processing device 1. Then, the key update result verifying unit 36 verifies whether the key update has been performed correctly.
[0069] 11 shows the data structure of key master information 371 stored in the storage unit 37. The verification range information 103 is made up of a product ID 3711 corresponding to a product in which a program to be verified is stored, a key slot ID 3712 indicating a key slot used for program verification, and key information 3713 for each generation stored in each of the key slot IDs 3712.
[0070] According to the above-described key management device 3, since the key management device 3 is provided with the key master information 371 relating to keys corresponding to a plurality of verification expected values in advance, it is not necessary to generate a key every time the verification expected value is updated, and it is possible to reduce the computational load.
[0071] According to the embodiment of the present invention described above, the following advantageous effects are obtained. (1) An information processing device according to one embodiment of the present invention is an information processing device that calculates a verification value using a key for program verification and verifies whether the verification value matches a pre-stored verification expected value, and includes a key updating unit that updates the key, a memory unit that pre-stores a verification expected value corresponding to a key updated by the key updating unit, and a verification expected value switching unit that switches the verification expected value in the memory unit that is referenced for verification when verifying a verification value calculated based on the updated key, to the verification expected value corresponding to the updated key.
[0072] With the above configuration, by updating the program verification key without disabling the program verification function, it is possible to provide high security over a long life cycle.
[0073] (2) The storage unit stores in advance a plurality of verification expected values corresponding to a key to be updated, and the verification expected value switching unit switches from the plurality of verification expected values to an unused verification expected value. This avoids using the same verification expected value multiple times, and always uses a new verification expected value and a corresponding key, ensuring higher security.
[0074] (3) The storage unit pre-stores a plurality of verification expected values corresponding to the key to be updated, and the verification expected value switching unit switches to a second verification expected value from among the used verification expected values when there is no unused verification expected value among the plurality of verification expected values. This makes it possible to reduce the number of verification expected values to be stored, thereby reducing memory capacity.
[0075] (4) A program update request management unit that notifies the outside of the device of information regarding the timing when it is necessary to update the verification expected values, including the verification expected values in use, before the number of switching times reaches a predetermined number. This makes it possible to always realize program verification using unused key / verification expected value pairs, thereby improving security, even if the number of verification expected values that have become used due to key updating increases.
[0076] (5) When the remaining number of unused verification expectations falls below a predetermined value, the program update request management unit notifies the outside of the device of information regarding the timing when verification expectations, including those in use, need to be updated. This makes it possible to enhance security in the same way as (4).
[0077] (6) A program update unit is further provided that updates the program to include verification expected values corresponding to the key in use and the newly generated key before the verification values are exhausted. This makes it possible to reliably achieve the effect of (4).
[0078] (7) The storage unit stores in advance a plurality of verification expected values corresponding to the key to be updated. As a result, if the key is updated once every three years, for example, by storing about six verification expected values in advance, it becomes unnecessary to update the key during the product life cycle, which is advantageous in terms of maintenance.
[0079] (8) A key management device according to an embodiment of the present invention is connected to the information processing device of (1) and includes a storage unit that stores key master information for a plurality of keys. As a result, since the key management device is provided with key master information for a plurality of keys corresponding to a plurality of verification expected values, it is not necessary to generate a key each time the verification expected value is updated, and the computation load can be reduced.
[0080] The present invention is not limited to the above-described embodiments, and various modifications are possible. For example, the above-described embodiments have been described in detail to clearly explain the present invention, and the present invention is not necessarily limited to an embodiment having all of the configurations described. It is also possible to replace a part of the configuration of one embodiment with the configuration of another embodiment. It is also possible to add the configuration of another embodiment to the configuration of one embodiment. It is also possible to delete a part of the configuration of each embodiment, or to add or replace another configuration. [Explanation of symbols]
[0081] 1 Information processing device, 12 Key update control unit, 13 Verification expected value switching unit, 16 Program update unit, 17 Program update request management unit, 100 Storage unit
Claims
1. 1. An information processing device that calculates a verification value using a key for program verification and verifies whether or not the verification value matches a pre-stored verification expected value, a key updating unit for updating the key; a storage unit that stores in advance a verification expectation value corresponding to a key to be updated by the key update unit; a verification expected value switching unit that switches the verification expected value in the storage unit, which is referred to for verification, to the verification expected value corresponding to the updated key when verifying a verification value calculated based on the updated key; An information processing device comprising:
2. 2. The information processing device of claim 1, The storage unit stores in advance a plurality of verification expected values corresponding to the key to be updated; the verification expected value switching unit switches to an unused verification expected value from among the plurality of verification expected values; 23. An information processing apparatus comprising:
3. 2. The information processing device of claim 1, The storage unit stores in advance a plurality of verification expected values corresponding to the key to be updated; The information processing device, characterized in that the verification expected value switching unit switches to a second verification expected value from among the used verification expected values when there is no unused verification expected value among the plurality of verification expected values.
4. 2. The information processing device of claim 1, and a program update request management unit that notifies, to the outside of the device, information regarding a timing when it is necessary to update the verification expectation including the verification expectation being used before the number of times of switching reaches a predetermined number.
23. An information processing apparatus comprising:
5. 5. The information processing device of claim 4, when the remaining number of the unused verification expectations becomes smaller than a predetermined value, the program update request management unit notifies, to the outside of the device, information regarding a timing when the verification expectations, including the verification expectations being used, will need to be updated; 23. An information processing apparatus comprising:
6. 5. The information processing device of claim 4, a program updating unit that updates the program to include verification expected values corresponding to the key currently in use and a newly generated key before the verification expected values are exhausted; The information processing device further comprising:
7. 2. The information processing device according to claim 1, The storage unit stores in advance a plurality of verification expected values corresponding to the key to be updated.
23. An information processing apparatus comprising:
8. A key management device connected to the information processing device of claim 1, a storage unit for storing key master information relating to the key; 1. A key management device comprising:
