Customer-specific activation of functions in semiconductor devices

By introducing a hardware security module into the semiconductor device to manage unique identifiers and keys, the security risks and inefficiencies caused by cloud reliance in existing technologies are solved, and secure and efficient symmetric key activation and management are achieved.

CN116034364BActive Publication Date: 2026-11-24MICRON TECHNOLOGY INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202180054651.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-09-08
Filing Date
2021-09-07
Publication Date
2026-11-24
Estimated Expiration
2041-09-07

AI Technical Summary

Technical Problem

Existing key distribution systems for semiconductor devices rely on cloud connections, which pose security risks and cannot be managed in batches, making them particularly inefficient in high-value manufacturing environments.

Method used

By establishing a secure channel between the manufacturer's and customer's systems, and utilizing hardware security modules to store and manage unique identifiers, manufacturer root keys, and customer authentication keys, local activation and management of symmetric keys are achieved. This supports requesting multiple keys at once and avoids end-to-end symmetric exposure.

Benefits of technology

It enables secure and efficient activation and management of symmetric keys for semiconductor devices without cloud connectivity, improving system security and efficiency, and making it suitable for high-value manufacturing environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116034364B_ABST
    Figure CN116034364B_ABST
Patent Text Reader

Abstract

The disclosed embodiments relate to securely updating a semiconductor device. In one embodiment, a method includes: receiving a command; generating a response code by the semiconductor device in response to the command; sending the response code back to a processing device; receiving a command to replace a stored root key of the device; generating a replacement key based on the response code; and replacing the existing key with the replacement key.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related applications

[0002] This application claims priority to U.S. Patent Application No. 17 / 014,203, filed September 8, 2020, entitled "CUSTOMER-SPECIFIC ACTIVATION OF FUNCTIONALITY IN A SEMICONDUCTOR DEVICE", the entire contents of which are hereby incorporated herein by reference.

[0003] This application relates to two co-owned U.S. patent applications filed concurrently with this application on September 8, 2020, with serial numbers 17 / 014,206 and 17 / 014,215, the disclosure of which is incorporated herein by reference in its entirety. Technical Field

[0004] At least some of the embodiments disclosed herein generally relate to semiconductor devices, and more specifically to providing secure field upgrades for semiconductor devices. Background Technology

[0005] Currently, many semiconductor devices (e.g., semiconductor memory devices) offer field-upgradeable capabilities that allow for post-manufacturing updates. For example, memory devices may offer the ability to update the firmware of the memory device after it has been manufactured and installed. Securing these field upgrades is crucial for the reliable and trusted operation of such devices. Some devices utilize symmetric encryption to secure field upgrades. In these devices, the manufacturer and the semiconductor device share a secret key and rely on this key to encrypt and decrypt field upgrades. In symmetric key systems, the key is unique between the two parties (e.g., the manufacturer and the end user). However, key distribution in such systems suffers from numerous drawbacks that are remedied by the disclosed embodiments.

[0006] First, many systems exclusively rely on cloud-based key distribution technologies. These technologies require end users (e.g., device owners) to connect to a public network to download keys. However, the requirement for public network connectivity introduces potential security risks. Second, most cloud-based systems rely on unique identifier (UID) values ​​to enable end users to request symmetric keys from the cloud-based platform. Generally, these UID values ​​must be read individually from the semiconductor device and uploaded individually. Therefore, bulk access to symmetric keys is not feasible because the electrical identification of UID values ​​is typically only available during manufacturing when public network access is unavailable. Furthermore, considering the time delays involved in operation and the costs introduced by those delays, retrieving symmetric keys in high-value manufacturing (HVM) environments is generally not feasible. Attached Figure Description

[0007] Figure 1 This is a block diagram illustrating an authentication system according to some embodiments of the present disclosure.

[0008] Figure 2 This is a block diagram illustrating a semiconductor device according to some embodiments of the present disclosure.

[0009] Figure 3 This is a flowchart illustrating a method for deploying one or more semiconductor devices according to some embodiments.

[0010] Figure 4 This is a flowchart illustrating a method for replacing the storage root key of one or more semiconductor devices according to some embodiments.

[0011] Figure 5 This is a block diagram illustrating a memory system according to some embodiments of the present disclosure.

[0012] Figure 6 This is a block diagram illustrating an example embodiment of a computing device used in various embodiments of this disclosure. Detailed Implementation

[0013] The disclosed embodiments address the aforementioned and other problems in the art. The disclosed embodiments allow end users to activate capabilities in semiconductor devices using symmetric-key cryptography in a manufacturing environment without requiring a connection to a public network and ultimately a cloud-based key management system (KMS). Furthermore, the disclosed embodiments support requesting multiple symmetric keys at once. Additionally, the disclosed embodiments retain the ability to prevent end-to-end symmetric exposure, but this is done simultaneously for multiple devices when connected to a KMS. These and other features are described in more detail with reference to the disclosed embodiments.

[0014] Figure 1 This is a block diagram illustrating an authentication system according to some embodiments of the present disclosure.

[0015] The illustrated system includes a semiconductor device manufacturer (110), a KMS (102), a trusted partner (TP) (104), a customer system (106), and multiple semiconductor devices (108). In the illustrated embodiment, the manufacturer (110) is the manufacturer of the devices (108). In the illustrated embodiment, the manufacturer (110) can communicate with the KMS (102) via a secure channel. In some embodiments, the manufacturer (110) uploads a corresponding unique identifier (UID) and device secret key (also referred to as the manufacturer's stored root key (MFGSRK)) to the KMS (102) for each device (108). In the illustrated embodiment, the MFGSRK is generated in the manufacturer's (110) secure manufacturing environment. In some embodiments, the manufacturer (110) also uploads a customer identifier (CID) for each customer who purchases or otherwise associates with the device (108). In some embodiments, the manufacturer also uploads a customer authentication key (CAK) associated with the CID. In one embodiment, the CAK is limited to a specified date range and thus becomes invalid after the last day of the range. UID, MFGSRK, CID, and CAK values ​​are collectively referred to as "manufacturing data".

[0016] In the illustrated embodiment, the KMS (102) stores the aforementioned data received from the manufacturer (110). In one embodiment, the KMS (102) includes one or more servers to store manufacturing data. In some embodiments, the KMS (102) utilizes a Hardware Security Module (HSM) to secure the manufacturing data. In the illustrated embodiment, the KMS (102) is capable of generating an activation code for each of the received UIDs. In some embodiments, the activation code includes an integer or similar processable value. In some embodiments, the KMS (102) generates the activation code in response to a request from the TP (104).

[0017] In the illustrated embodiment, the TP (104) includes a computing system securely and communicatively coupled to the KMS (102). In the illustrated embodiment, the TP (104) sends a network request to the KMS (102) for a batch activation code (also referred to as an activation database). In one embodiment, the request for the activation database includes a CID, a date range, a device type, and a random number (referred to as a "KMS random number") that is unique to the client and known to the KMS (102). In some embodiments, the client negotiates the KMS random number with the KMS (102) via a network communication session, thus establishing a well-known value for the KMS random number. In the illustrated embodiment, the TP (104) receives and stores the contents of the activation database. In some embodiments, the TP (104) also includes an HSM for securing the activation database. In the illustrated embodiment, the TP (104) also includes processing capabilities for generating a Message Authentication Code (MAC) for a given client. Furthermore, in the illustrated embodiment, the TP (104) includes processing capabilities for generating a secure database of shared device secrets based on the activation codes in the activation database and response codes received from a semiconductor device (108).

[0018] In the illustrated embodiment, the client system (106) communicates with the TP (104). The client system (106) may include a client manufacturing line or other system for handling semiconductor devices (108). The specific arrangement of the computing devices in the client system (106) is not limited herein. In some embodiments, the TP (104) includes one or more secure computing devices installed within the client system (106). In other embodiments, the TP (104) is a computing system separate from the client system (106).

[0019] In the illustrated embodiment, the client system (106) interacts with a plurality of semiconductor devices (108a), (108b), and (108c) (collectively referred to as 108). Devices (108) include semiconductor devices, such as (but not limited to) memory devices. For example, devices may include NOR or NAND flash memory chips, system-on-a-chip (SoC) devices, or other types of discrete semiconductor packages.

[0020] The device (108) includes multiple non-volatile storage locations for storing various fields and parameters such as CID and CAK. The device (108) additionally includes hardware or firmware capable of performing cryptographic operations, such as MAC-enabled operations. Examples of such operations include HMAC-SHA256, AES, and CMAC operations. Details of the device (108) are as follows. Figure 2 A more comprehensive description is available elsewhere and will not be repeated here.

[0021] Figure 2 This is a block diagram illustrating a semiconductor device according to some embodiments of the present disclosure.

[0022] As described, the semiconductor device (108) includes an interface (230), a controller (228), an encryption engine (232), and a non-volatile memory area (202). Details of these components are described herein. The device (108) may contain more or fewer Figure 2 The components described herein are not limited to any additional components included in the device (108). For example, the device (108) may include a memory device such as a NAND flash memory device. In this example, the device (108) may further include an array of NAND flash memory chips and a controller for accessing such chips.

[0023] In the illustrated embodiment, the device (108) communicates with an external device via an interface (230). In one embodiment, the interface (230) may include any interface for transmitting electronic signals. In one embodiment, the interface (230) may include a Serial Peripheral Interface (SPI) or a Universal Asynchronous Receiver-Transmitter (UART) interface. In an alternative embodiment, the interface (230) may include a Fast Peripheral Component Interconnect (PCIe) or a Fast Non-Volatile Memory (NVMe) interface. Generally, any suitable bus available for transmitting and receiving data can be used.

[0024] The interface (230) transmits commands and data to the controller (228). In some embodiments, the controller (228) may execute various commands to operate the device (108). The illustrated embodiments do not limit the types of commands that can be processed by the controller (228).

[0025] In the illustrated embodiment, the controller (228) is communicatively coupled to the encryption engine (232). In some embodiments, the encryption engine (232) is integrated as part of the controller (228). In other embodiments, the encryption engine (232) may include a separate processing element. In some embodiments, the encryption engine (232) may include an encryption coprocessor. Generally, the encryption engine (232) performs various encryption operations on data stored in non-volatile storage (202) or received via the controller (228). As illustrated, in some embodiments, the encryption engine (232) performs HMAC-SHA256 (224) and AES-CMAC (226) operations, but other algorithms may be utilized. In some embodiments, the operations (224, 226) may be implemented as firmware and performed by the encryption engine (232). In other embodiments, the operations (224, 226) may be implemented in hardware (i.e., a dedicated circuit system).

[0026] In the illustrated embodiment, the encryption engine (232) reads and writes various fields (204 to 220) stored in the non-volatile storage device (202). The illustrated fields (204 to 220) are briefly described herein and referenced in the following text. Figure 3 and 4 The description, Figure 3 and 4 Further details are provided therein.

[0027] The non-volatile storage device (202) includes a Customer Identifier (CID) field (204). In the illustrated embodiment, the CID includes a unique identifier that uniquely identifies the customer. As used herein, a customer refers to any entity utilizing a semiconductor device. For example, a customer may include a manufacturer of an electronic device that includes a semiconductor device. In the illustrated embodiment, the customer and Figure 1 All entities depicted herein are aware of the CID. In some embodiments, the contents of the CID field (204) may be read by the encryption engine (232) or the controller (228). In some embodiments, the CID may be written by the manufacturer (110).

[0028] The non-volatile storage device (202) includes a unique ID (UID) field (206). In the illustrated embodiment, the UID refers to a unique identifier that uniquely identifies the semiconductor device (108). In some embodiments, the UID may include a serial number, barcode, or other electrically readable identifier. During manufacturing, the manufacturer (110) may generate the UID and write it into the field (206). The UID may not be known until a customer digitally reads it (e.g., during the manufacturing of a larger device). In some embodiments, the UID is read during manufacturing and is therefore executed "offline" (i.e., not connected to a network device). In some embodiments, the UID includes a date field describing the manufacturing date of the semiconductor device (108). If a date field is included, the UID may also include additional fields. In some embodiments, the contents of the UID field (206) may be read by an encryption engine (232) or a controller (228).

[0029] The non-volatile storage device (202) includes an activation code field (218). In the illustrated embodiment, the activation code includes a data field, such as SHRSRK (214), used to activate a new storage root key. In one embodiment, the data in the activation code field (218) is generated by an encryption engine (232) and written into the activation code field (218). In one embodiment, the encryption engine (232) generates activation by performing an HMAC operation (224) using a random value (222) as the message and the manufacturing storage root key (210) as the key, as described in more detail herein. In other embodiments, the manufacturing storage root key (210) is used as the key and the random value (222) is used as the message. The various embodiments described herein using a random value (222) as the key and the root key (210) as the message are interchangeable, and similar descriptions of such operations are not repeated herein. In one embodiment, the activation code is not exposed outside the device (108) and therefore, in some embodiments, it is not readable by the controller (228).

[0030] The non-volatile storage device (202) includes a response code field (220). In one embodiment, the response code field (220) is generated by an encryption engine (232). In another embodiment, the response code is generated after the activation code field (218) is filled in, as will be discussed. In one embodiment, the encryption engine (232) generates the response code by performing an HMAC operation (224) using the value of a monotonic counter field (212) as the message and a private activation key field (218) as the key. In other embodiments, a CID (204) or a random number (222) may be used as the key.

[0031] The non-volatile storage device (202) includes a monotonic counter (MTC) (212). In one embodiment, the controller (228) updates the MTC (212), while in other embodiments, the encryption engine (232) updates the MTC (212). In the illustrated embodiment, the MTC (212) includes an incrementing value. In some embodiments, the MTC (212) is manually incremented by the encryption engine (232) in response to an external command to increment the MTC (212). In other embodiments, the MTC (212) may be updated whenever one or more types of commands are received. Generally, the MTC (212) may be updated in various ways to fulfill the objective of providing a random value. As described above, the value of the MTC (212) can be used to generate a response code (220). This serves to allow the response code (220) to change whenever activation is requested (described below) and to ensure that the response code is a device-generated random number unique to the device (108).

[0032] The non-volatile storage device (202) includes a Customer Authentication Key (CAK) field (208). In one embodiment, the CAK includes a symmetric key. In one embodiment, both the customer system (106) and the manufacturer (110) maintain the CAK for a given customer. Thus, the manufacturer (110) may store the CAK for each customer, and each customer stores its own CAK. In one embodiment, the CAK is updated periodically (e.g., at regular intervals). In the illustrated embodiment, the CAK (208) may be written by the manufacturer (110) during device manufacturing. As discussed, the manufacturer (110) may periodically transmit the CID-CAK pair to the KMS (102). The KMS (102) may additionally transmit the CAK along with activation codes for multiple devices to the TP (104).

[0033] The non-volatile storage device (202) includes a device storage root key (MFGSRK) field (210). In one embodiment, the MFGSRK (210) is written by the manufacturer (110) during manufacturing. In one embodiment, the MFGSRK (210) is uniquely paired with a UID (206). There are no restrictions on the specific mechanism used by the manufacturer (110) to generate the MFGSRK (210); however, a fixed-width value generated via a cryptographic algorithm is generally used.

[0034] The non-volatile storage device (202) includes a Final Storage Root Key (SHRSRK) field (214). In one embodiment, SHRSRK (214). The non-volatile storage device (202) additionally includes a Candidate Storage Root Key (CSRK) field (216). In one embodiment, the encryption engine (232) generates a CSRK using a response code (220) and an activation code (218). In one embodiment, the encryption engine (232) performs an HMAC operation (224) using the response code (220) as the message and the activation code (218) as the key. The result of the operation is stored in the CSRK field (216). The encryption engine (232) may then receive a second command to submit the value of the CSRK field (216). In one embodiment, after a verification command (e.g., verifying a digital signature), the encryption engine (232) copies the contents of the CSRK field (216) to the SHRSRK field (214). In some embodiments, after writing the candidate key to the SHRSRK field (214), the encryption engine (232) may also erase the contents of the CSRK field (216).

[0035] The non-volatile storage device (202) contains a client random value (222). In one embodiment, the client random value (222) is generated based on an external random value. In one embodiment, this external random value is generated by KMS and transmitted to the device (108). In one embodiment, the client random value (222) is generated by performing a sequential concatenation operation on the CID (204) and the received external random number, and performing a SHA256 operation on the result.

[0036] refer to Figure 3 and 4 The aforementioned operations of the encryption engine (232) and the use of various fields (204 to 222) are described in more detail.

[0037] Figure 3 This is a flowchart illustrating a method for deploying one or more semiconductor devices according to some embodiments. In the illustrated embodiments, the semiconductor device (108) receives common data (e.g., CID, KMS random number, MAC) from a host processor and returns a common response code. The response code is submitted to the TP (104) to securely generate a secret key. Similarly, the semiconductor device (108) uses the response code to securely generate a secret candidate key on the semiconductor device (108). Therefore, the secret key stored by the TP (104) and the semiconductor device (108) will be the same.

[0038] In step 302, the method receives a deployment command. In the illustrated embodiment, the method is performed by a semiconductor device, such as a semiconductor device (108). In one embodiment, the deployment command is received via a wired bus through an interface such as SPI, UART, I2C (Internal Integrated Circuit), SMBus (System Management Bus), or a similar interface. In other embodiments, the command may be received via a wireless transceiver.

[0039] In one embodiment, the deployment command includes a CID value, a KMS random number, and a Message Authentication Code (MAC) generated based on a CAK. The CID, KMS random number, and CAK value have been previously described and will not be repeated here. In one embodiment, the MAC includes a signature generated by the TP (104). In one embodiment, the client system (106) requests the TP (104) to generate the MAC for a given message. The client system (106) then inserts this MAC into the deployment command.

[0040] In step 304, the method reads the CID and CAK. In one embodiment, the CID includes a publicly accessible customer identifier stored by the semiconductor device. In the same embodiment, the CAK includes a secret key uniquely associated with the CID and not publicly exposed. In some embodiments, the semiconductor device contains multiple CAKs for multiple customers, but only a single CID. In one embodiment, the CAK is limited to a specified date range and therefore becomes invalid after the last day of the range. Details of the CAK and CID are provided in Figure 2 The description is already present and will not be repeated here. In the illustrated embodiment, the method reads the CAK value from a non-volatile memory location using the CID extracted from the deployment command itself. In an alternative embodiment, the CID value may be written to the semiconductor device during manufacturing and thus read from NV memory.

[0041] In step 306, the method generates a candidate MAC for the deployment command. In one embodiment, the encryption engine of the semiconductor device generates the MAC by using a CAK as a key and a CID and a KMS random number as the message to calculate the candidate MAC. In some embodiments, additional data may be added to the message. In the illustrated embodiment, the device accesses the CAK stored in NV memory to calculate the MAC and compares the MAC calculated on the device with the MAC of the deployment command to confirm the command. In one embodiment, the AES-CMAC algorithm is used to generate and confirm the MAC, but other MAC algorithms may be used.

[0042] In step 308, the method compares the candidate MAC with the MAC of the deployment command. If the comparison fails, the method terminates, and the command is not processed because it cannot be verified.

[0043] In step 310, the method confirms that the received MAC is valid and continues to process the command. Specifically, in step 310, the method generates a second random number, called a "client random number," based on the KMS random value and the CID value. In one embodiment, the method concatenates the KMS random value and the CID value and calculates a SHA256 value based on the calculated value. That is, the Nonce customer =SHA256(CID||Nonce) KMS Of course, other techniques for generating random numbers can also be used. It should be noted that the use of CID and KMS random numbers links customer-specific random numbers to specific customers and effectively eliminates random number conflicts between customers.

[0044] Next, in step 312, the method generates an activation code based on a client-randomized number and a manufacturer-stored root key (MFGSRK). As discussed above, the value of the MFGSRK can be private and inaccessible to external devices (including the client system (106)). In one embodiment, the method uses a MAC algorithm to generate the activation code. In one embodiment, the MAC algorithm includes the HMAC algorithm. In one embodiment, the HMAC algorithm includes the HMAC-SHA256 algorithm. As will be used herein, HMAC-SHA256 is represented by C = HMAC-SHA256(K, M), where K represents the secret key, M includes the message to be encoded, and C represents the ciphertext generated by the HMAC-SHA256 algorithm. Other algorithms may be used. In some embodiments, the fixed length of the activation code is equal to the fixed length of the client-randomized number.

[0045] In the illustrated embodiment, a client-randomized value is used as the MAC message and the value of MFGSRK is used as the key to generate the activation code. Therefore, Activation Code = HMAC - SHA256(MFGSRK, nonce) customer ), where the first parameter (MFGSRK) includes the key, and the nonce customer The value includes the message. The resulting code includes an irreversible 256-bit activation code.

[0046] In some embodiments, the activation code is written to a non-volatile storage location in the semiconductor device (108). In some embodiments, this location temporarily stores the activation code and is erased when the storage root key is replaced. Figure 4 (as described in the text). In particular, in the illustrated embodiment, the activation code is not sent back to the client system, but is instead proprietary to the semiconductor device (108).

[0047] In step 314, the method uses the activation code and a monotonic counter value to generate a response code. In one embodiment, the method uses a MAC algorithm to generate the response code. In one embodiment, the MAC algorithm includes the HMAC algorithm. In one embodiment, the HMAC algorithm includes the HMAC-SHA256 algorithm. Other algorithms may be used. In some embodiments, the fixed length of the response code is equal to the fixed length of the activation code.

[0048] In the illustrated embodiment, the value of a monotonic counter is used as the MAC message and the value of the activation code is used as the key to generate the response code. Therefore, Response Code = HMAC - SHA256(Activation Code, MTC), where the first parameter (Activation Code) includes an incrementing monotonic counter used as the key, and the value of MTC includes the message. The resulting code comprises an irreversible 256-bit response code.

[0049] Finally, in step 316, the method returns the response code to the device that issued the deployment command. In another embodiment, the method may return the response code directly to the TP (104), while in the illustrated embodiment, the device returns the response code to the client system (106). In one embodiment, the client system (106) reads the response code and uploads it to the TP (104). In one embodiment, the client system (106) may also connect to... Figure 3 The response code generated in the method described herein is transmitted along with the UID of the transmission device (108). For example... Figure 4 The general describes that the client system (106) can then request the MAC to replace the key on the device (108) and issue a command to modify the storage root key of the underlying device.

[0050] In one embodiment, Figure 3 The method described herein includes an additional step 318 performed after step 316. In this embodiment, step 318 includes generating a candidate key based on the response code and the activation code. In one embodiment, the method uses a MAC algorithm to generate the candidate key. In one embodiment, the MAC algorithm includes the HMAC algorithm. In one embodiment, the HMAC algorithm includes the HMAC-SHA256 algorithm. Other algorithms may be used. In some embodiments, the fixed length of the candidate key is equal to the fixed length of the MFGSRK value. In one embodiment, the method uses the response code as the key for the MAC algorithm and the activation code as the message to compute the candidate key. Therefore, in some embodiments, the candidate key may be calculated as:

[0051] Candidate key = HMAC-SHA256(response code, activation code).

[0052] In some embodiments, parameters may be exchanged. In some embodiments, the semiconductor device (108) returns a response code and then generates a candidate key. In other embodiments, the semiconductor device (108) may generate a candidate key before returning a response code. As will be discussed, in other embodiments, alternatively, a candidate key may be generated in response to receiving a command from a host processor.

[0053] Figure 4 This is a flowchart illustrating a method for replacing a storage root key of one or more semiconductor devices according to some embodiments. In the illustrated embodiments, the method is executed by the semiconductor device after the semiconductor device generates and returns a response, such as in... Figure 3 A more complete description is provided in the description.

[0054] In step 402, the method receives a command to replace the stored key, which is alternatively referred to as a replacement command. In the illustrated embodiment, the command to replace the stored key causes the semiconductor device (e.g., 108) to submit a candidate key as the valid secret key for the semiconductor device.

[0055] In one embodiment, the replacement command includes a MAC. In one embodiment, the client system (106) generates the MAC by sending a request to the TP (104). In one embodiment, the MAC is generated based on the UID of the semiconductor device (108). The client system (106) then includes the MAC in the replacement command and sends the command to the semiconductor device (108). In one embodiment, the MAC is generated using the AES-CMAC algorithm and uses the value of CAK as the key. In one embodiment, the value of a KMS random number is used as the message.

[0056] In step 404, the method generates a candidate MAC for the replacement command. In one embodiment, the encryption engine of the semiconductor device generates the MAC by using a CAK as a key and a KMS random number as the message to compute the candidate MAC. In some embodiments, additional data may be added to the message. In the illustrated embodiment, the device accesses the CAK stored in NV memory to compute the MAC and compares the MAC computed on the device with the MAC of the replacement command to verify the command. In one embodiment, the AES-CMAC algorithm is used to generate and verify the MAC, but other MAC algorithms may be used.

[0057] In step 406, the method compares the candidate MAC with the MAC of the replacement command. If the comparison fails, the method terminates, and the command is not processed because it cannot be verified.

[0058] In step 408, the method generates a candidate key based on the response code and the activation code. As described above, in some embodiments, this step 408 is optional because the candidate key is generated in response to a deployment command, such as... Figure 3 As described in the description.

[0059] In one embodiment, the method uses a MAC algorithm to generate a candidate key. In one embodiment, the MAC algorithm includes the HMAC algorithm. In one embodiment, the HMAC algorithm includes the HMAC-SHA256 algorithm. Other algorithms may be used. In some embodiments, the fixed length of the candidate key is equal to the fixed length of the MFGSRK value. In one embodiment, the method uses a response code as the key for the MAC algorithm and an activation code as the message to compute the candidate key. Therefore, in some embodiments, the candidate key may be computed as:

[0060] Candidate key = HMAC-SHA256(response code, activation code).

[0061] In some embodiments, parameters can be exchanged. In step 410, the method replaces the MFGSRK, which serves as the device's secret key, with the value of the candidate key. Figure 2 The description describes the process in more detail: the device (108) temporarily stores the candidate key in the NV storage device (202). The device (108) additionally retains the value of MFGSRK as the valid key (210). During step 410, the method copies the value of the candidate key to the location representing the valid secret key. In one embodiment, the device (108) may not include a separate location (214) for the new key. Alternatively, the device (108) may copy the contents of the candidate key storage location (216) to the location storing MFGSRK (210), thereby effectively overwriting the value of MFGSRK. Alternatively, the method may copy the contents of the candidate key storage location (216) to a separate location (214) and instruct the encryption engine (232) to use the new key (214) as the valid secret key. In this way, MFGSRK is retained despite the use of a new valid secret key. In one embodiment, the encryption engine (232) may include firmware and / or circuitry to automatically replace the content of location (210) with the content of location (214) when data is written to location (214). In some embodiments, the method further erases candidate keys from any temporary storage location before termination.

[0062] Figure 5 This is a block diagram illustrating a memory system according to some embodiments of the present disclosure.

[0063] like Figure 5 As described herein, the computing system (500) includes a processor (502) communicatively coupled to a memory system (506) via a bus (504). The memory system (506) includes a controller (220) communicatively coupled to one or more memory banks (508A to N) via a bus / interface (512). As described, the controller (220) includes a local cache (514), firmware (516), and an ECC module (518).

[0064] In the illustrated embodiment, the processor (502) may include any type of computing processor, such as a central processing unit, a graphics processing unit, or other type of general-purpose or special-purpose computing device. The processor (502) includes one or more output ports that allow the transfer of address, user, and control data between the processor (502) and the memory system (506). In the illustrated embodiment, this communication is performed via a bus (504). In one embodiment, the bus (504) includes an input / output (I / O) bus or a similar type of bus.

[0065] The memory system (506) manages one or more memory banks (508A to 508N). In one embodiment, the memory banks (508A to 508N) include NAND flash memory dies or other configurations of non-volatile memory.

[0066] The memory modules (508A to 508N) are managed by a controller (220). In some embodiments, the controller (220) includes a computing device configured to mediate access to and from the memory modules (508A to 508N). In one embodiment, the controller (220) includes an ASIC or other circuitry mounted on a printed circuit board housing the memory modules (508A to 508N). In some embodiments, the controller (220) may be physically separate from the memory modules (508A to 508N). The controller (220) communicates with the memory modules (508A to 508N) via an interface (512). In some embodiments, this interface (512) includes a physically wired (e.g., trace) interface. In other embodiments, the interface (512) includes a standard bus for communicating with the memory modules (508A to 508N).

[0067] The controller (220) includes various modules (514 to 518). In one embodiment, the various modules (514 to 518) include various physically dissimilar modules or circuits. In other embodiments, the modules (514 to 518) may be implemented entirely (or partially) in software or firmware.

[0068] As described, the firmware (516) includes the core of the controller and manages all non-encrypted operations of the controller (220). An encryption engine (232) is provided for encrypted operations, such as... Figure 2 The details are described in more detail below. Therefore, firmware (516) mediates access to the storage devices (508A to 508N) for non-encrypted operations. As explained, both the controller (220) and the engine (232) access the non-volatile (NV) storage device (202). Details of access to the NV storage device (202) are described in [the following text is missing from the original extract]. Figure 2 The description is provided and will not be repeated here.

[0069] Figure 6 This is a block diagram illustrating example embodiments of a computing device used in various embodiments of this disclosure. The device (600) may include a computing device used by a manufacturer (110), KMS (102), TP (104), or client system (106). Furthermore, various components may include a device comprising a semiconductor device (108) or may include the semiconductor device (108) itself.

[0070] The computing device (600) may contain more or less Figure 6The components shown are components of the same type. For example, a server computing device may not include an audio interface, display, keypad, lighting, haptic interface, GPS receiver, camera, or sensors.

[0071] As shown in the figure, the device (600) includes a processing unit (CPU) (622) that communicates with a mass storage device (630) via a bus (624). The computing device (600) also includes one or more network interfaces (650), an audio interface (652), a display (654), a keypad (656), a illuminator (658), an input / output interface (660), a haptic interface (662), an optional Global Positioning System (GPS) receiver (664), and a camera or other optical, thermal, or electromagnetic sensor (666). The device (600) may include one or more cameras / sensors (666), as is known to those skilled in the art. The positioning of the camera / sensor (666) on the device (600) may vary depending on the model of the device (600), the capabilities of the device (600), and the like, or a combination thereof.

[0072] The computing device (600) may optionally communicate with a base station (not shown) or directly with another computing device. The network interface (650) is sometimes referred to as a transceiver, transceiver device, or network adapter (NIC).

[0073] The audio interface (652) generates and receives audio signals, such as human voices. For example, the audio interface (652) may be coupled to a speaker and microphone (not shown) to enable telecommunication with others or to generate audio recognition of an action. The display (654) may be a liquid crystal display (LCD), a gas plasma display, a light-emitting diode (LED), or any other type of display used in conjunction with a computing device. The display (654) may also include a touch-sensitive screen arranged to receive input from an object such as a stylus or a finger from a human hand.

[0074] The keypad (656) may include any input device arranged to receive input from the user. The illuminator (658) may provide status indication or provide light.

[0075] The computing device (600) also includes a means for using, for example, USB, infrared, Bluetooth. TM An input / output interface (660) for communicating with external devices using communication technologies of the same or similar means. A haptic interface (662) provides haptic feedback to the user of the client device.

[0076] An optional GPS transceiver (664) can determine the physical coordinates of the computing device (600) on the Earth's surface, typically outputting the location as latitude and longitude values. The GPS transceiver (664) may also employ other geolocation mechanisms, including (but not limited to) triangulation, assisted GPS (AGPS), E-OTD, CI, SAI, ETA, BSS, or the like, to further determine the physical location of the computing device (600) on the Earth's surface. However, in one embodiment, the computing device (600) may be provided with additional information that can be used to determine the device's physical location via other components, including, for example, a MAC address, an Internet Protocol (IP) address, or the like.

[0077] Mass storage (630) includes RAM (632), ROM (634), and other storage components. Mass storage (630) illustrates another example of computer storage media used to store information such as computer-readable instructions, data structures, program modules, or other data. Mass storage (630) stores the Basic Input / Output System (“BIOS”) (640) for controlling the low-level operations of the computing device (600). Mass storage also stores the operating system (641) for controlling the operation of the computing device (600).

[0078] The application program (642) may include computer-executable instructions that, when executed by a computing device (600), perform any of the methods (or portions thereof) previously described in the preceding figures. In some embodiments, software or programs implementing the method embodiments may be read from a hard disk drive (not shown) and temporarily stored in RAM (632) by a CPU (622). The CPU (622) may then read the software or data from RAM (632), process the software or data, and store the software or data back into RAM (632).

[0079] This disclosure includes various apparatuses for performing the methods described above and implementing the systems described above, including a data processing system for performing these methods, and a computer-readable medium containing instructions that, when executed on the data processing system, cause the system to perform these methods.

[0080] The descriptions and figures are illustrative and should not be construed as limiting. Numerous specific details are described to provide a thorough understanding. However, in certain instances, well-known or conventional details have not been described to avoid ambiguity. References to one or more embodiments in this disclosure are not necessarily references to the same embodiment; moreover, such references imply at least one.

[0081] In this specification, references to "an embodiment" or "embodiment" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of this disclosure. The phrase "in one embodiment" appearing in various places throughout the specification does not necessarily refer to all the same embodiment, nor is it a single or alternative embodiment mutually exclusive with other embodiments. Furthermore, various features that may be shown in some embodiments but not in others are described. Similarly, various requirements that may be requirements of some embodiments but not of others are described.

[0082] In this description, various functions and operations may be described as being executed or caused by software code for simplification. However, those skilled in the art will recognize that such expressions mean that the functions are generated by the execution of code by one or more processors (e.g., microprocessors, application-specific integrated circuits (ASICs), graphics processors, and / or field-programmable gate arrays (FPGAs)). Alternatively or in combination, functions and operations may be implemented using dedicated circuit systems (e.g., logic circuit systems) with or without software instructions. Embodiments may use hardwired circuit systems with or without software instructions. Therefore, the technology is not limited to any particular combination of hardware circuit systems and software, nor to any particular source of instructions executed by a computing device.

[0083] While some embodiments may be implemented in fully functional computers and computer systems, various embodiments are capable of being distributed as computing products in a variety of forms and can be applied regardless of the specific type of machine or computer-readable medium used to actually implement the distribution.

[0084] At least some of the disclosed aspects may be embodied, at least partially, in software. That is, the technology may be implemented in a computing device or other system in response to its processor (e.g., a microprocessor) executing a sequence of instructions contained in memory (e.g., ROM, volatile RAM, non-volatile memory, cache, or remote storage device).

[0085] The routines executed to implement the embodiments can be implemented as part of an operating system, middleware, service delivery platform, SDK (Software Development Kit) component, network service, or other specific program, component, program, object, module, or sequence of instructions referred to as a "computer program." The calling interface of these routines can be exposed to the software development community as an API (Application Programming Interface). A computer program typically comprises one or more instructions that are set at various times in various memories and storage devices within a computer and, when read and executed by one or more processors in the computer, cause the computer to perform operations necessary to carry out various aspects.

[0086] Machine-readable media can be used to store software and data that, when executed by a computing device, cause the device to perform various methods. Executable software and data can be stored in various locations, including, for example, ROM, volatile RAM, non-volatile memory, and / or cache. A portion of this software and / or data can be stored in any of these storage devices. Furthermore, data and instructions can be obtained from a centralized server or a peer-to-peer network. Different portions of data and instructions can be obtained from different centralized servers and / or peer-to-peer networks at different times and in different communication sessions or in the same communication session. Data and instructions can be obtained entirely before the application is executed. Alternatively, portions of data and instructions can be dynamically obtained as needed. Therefore, at any given time, data and instructions do not need to be entirely located on the machine-readable media.

[0087] Examples of computer-readable media include (but are not limited to) recordable and non-recordable media, particularly volatile and non-volatile memory devices, read-only memory (ROM), random access memory (RAM), flash memory devices, solid-state drive storage media, removable disks, disk storage media, optical storage media (e.g., optical disc read-only memory (CDROM), digital versatile optical disc (DVD), etc.). Computer-readable media can store instructions.

[0088] Generally, tangible or non-transitory machine-readable media includes any entity that provides (e.g., stores) information in a form accessible by a machine (e.g., a computer, mobile device, network device, personal digital assistant, manufacturing tool, any device having one or more processors, etc.).

[0089] In various embodiments, the technology can be implemented using a hardwired circuit system in conjunction with software and firmware instructions. Therefore, the technology is neither limited to any particular combination of hardware circuit systems and software, nor to any particular source of instructions executed by a computing device.

[0090] The various embodiments described herein can be implemented using a wide variety of different types of computing devices. As used herein, examples of "computing device" include (but are not limited to) servers, centralized computing platforms, systems with multiple computing processors and / or components, mobile devices, user terminals, vehicles, personal communication devices, wearable digital devices, electronic information stations (kiosks), general-purpose computers, electronic document readers, tablet computers, laptop computers, smartphones, digital cameras, home appliances, televisions, or digital music players. Additional examples of computing devices include devices that are part of a so-called "Internet of Things" (IoT). Such "things" may occasionally interact with their owners or administrators who can monitor the things or modify settings about them. In some cases, such owners or administrators act as users relative to the "thing" device. In some instances, a user's primary mobile device (e.g., an Apple iPhone) may act as an administrator server relative to a paired "thing" device worn by the user (e.g., an Apple Watch).

[0091] In some embodiments, the computing device may be a computer or a host system, implemented as, for example, a desktop computer, a laptop computer, a web server, a mobile device, or other computing device including memory and processing means. The host system may include or be coupled to a memory subsystem, enabling the host system to read data from or write data to the memory subsystem. The host system may be coupled to the memory subsystem via a physical host interface. Generally, the host system may access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.

[0092] In some embodiments, the computing device is a system that includes one or more processing devices. Examples of processing devices may include a microcontroller, a central processing unit (CPU), a dedicated logic circuit system (e.g., a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.), a system-on-a-chip (SoC), or another suitable processor.

[0093] Although some diagrams illustrate certain operations in a specific order, non-sequential operations can be reordered and other operations can be combined or decomposed. While some reorderings or other groups are explicitly mentioned, other reorderings or groups will be obvious to those skilled in the art, and therefore no exhaustive list of alternatives is presented. Furthermore, it should be recognized that stages can be implemented in hardware, firmware, software, or any combination thereof.

[0094] In the foregoing description, this disclosure has been described with reference to specific exemplary embodiments thereof. It will be apparent to you that various modifications may be made to this disclosure without departing from the broader spirit and scope set forth in the following claims. Therefore, the description and drawings should be regarded as illustrative rather than restrictive.

Claims

1. A method for on-site safety upgrades, comprising: Commands are received by a semiconductor device; The semiconductor device generates a response code in response to the command; The semiconductor device transmits the response code back to the processing device; The semiconductor device receives an instruction to replace the storage root key of the device; The semiconductor device generates a replacement key based on the response code; and The existing key is replaced by the replacement key by the semiconductor device.

2. The method according to claim 1, further comprising generating a first random value based on a customer ID and a second random value.

3. The method according to claim 2, wherein the command includes the customer ID and the second random value.

4. The method according to claim 2, wherein generating the first random value comprises: Perform a hash operation on the customer ID and the second random value.

5. The method according to claim 2, further comprising generating an activation code based on the first random value.

6. The method of claim 5, wherein generating the activation code comprises: The manufacturer's storage root key is used as the key for the Message Authentication Code (MAC) operation to perform the MAC operation on the first random value.

7. The method of claim 5, wherein generating the response code comprises: The activation code is processed using a monotonic counter value as a message.

8. The method of claim 5, wherein generating the replacement key comprises: The response code is used as the message for the MAC operation to perform the MAC operation on the activation code.

9. A semiconductor device comprising: Non-volatile storage area; and A controller for receiving first and second commands from an external computing device; and An encryption processor, configured to: A response code is generated in response to the first command; The response code is sent back to the controller; In response to the second command, a replacement key is generated based on the response code; and Replace the existing key with the replacement key.

10. The semiconductor device of claim 9, wherein the encryption processor is further configured to generate a first random value based on a customer ID and a second random value.

Citation Information

Patent Citations

  • Cloud-based creation of a customer-specific symmetric key activation database

    US11728997B2

  • Leveraging a trusted party third-party HSM and database to securely share a key

    US20220078018A1

  • Method and system of modifying cipher, client, server and smart device

    CN106452752A