Device verification of public keys without having secret for generating corresponding private key

By using the intermediate key and the private key in the computing device to generate a new key pair, the external system is allowed to verify the correctness of the new public key, which solves the public key verification problem in the prior art and improves the confidentiality of the key pair. and computing device authentication processes.

CN118694516APending Publication Date: 2024-09-24MICRON TECHNOLOGY INC
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410318988.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-01-29
Filing Date
2024-03-20
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology makes it difficult to verify the correctness of the public key provided by the computing device without exposing the private key, especially to ensure the confidentiality and correctness of the key pair when generating and updating the key pair.

Method used

Generate a new key pair by performing operations using the intermediate key and the private key in the computing device, allowing external systems to independently calculate the new public key to verify its correctness without accessing the private key, utilizing asymmetric encryption techniques such as elliptic curves Cryptography generates a new key pair, ensuring that the public key generation process does not change the result.

Benefits of technology

It realizes the verification of the correctness of the new public key without exposing the private key, improves the confidentiality and usage efficiency of the key pair, reduces the dependence on the existing key pair, and enhances the identity verification and update of the computing device. Process safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694516A_ABST
    Figure CN118694516A_ABST
Patent Text Reader

Abstract

The application relates to a device verifying a public key without having a secret for generating a corresponding private key. Systems, devices, and methods of verifying or verifying a public key are disclosed. For example, a computing device computes an intermediate key from inputs known to both the computing device and a remote device, and combines the intermediate key and a first private key via an operation (e.g., summation or multiplication) to generate a second private key. A second public key calculated by the computing device for the second private key may be transmitted to the remote device for verification or verification if the remote device does not have data identifying the private key. For example, the remote device may individually compute the intermediate key from the input and then combine the intermediate key with a first public key of the first private key (e.g., via summation or multiplication) to generate a version of the second public key for comparison with the second public key received from the computing device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application claims priority to Provisional U.S. Patent Application No. 63 / 491,336, filed on March 21, 2023, the entire disclosure of which is hereby incorporated by reference herein. Technical Field

[0003] At least some embodiments disclosed herein relate generally to computer security, and more particularly, but not limited to, the generation and verification of the identity of a computing device. Background Art

[0004] Computing devices, such as Internet of Things (IoT) devices, may be configured to have a unique identity among a group of similar devices based on cryptography and a unique secret stored in the computing device. For example, the identity may be established based on a combination of the hardware and software / firmware of the computing device according to operations and requirements specified for the Device Identifier Composition Engine (DICE). The unique identity of the computing device and its verification provides a foundation of trust for the use, deployment, and service of the computing device.

[0005] For example, the memory subsystem may be configured to protect a unique secret that is the basis for the unique identity of the computing device.

[0006] In general, a memory subsystem may include one or more memory devices that store data. The memory devices may be, for example, non-volatile memory devices and volatile memory devices. In general, a host system may utilize a memory subsystem to store data at the memory devices and retrieve data from the memory devices. Summary of the invention

[0007] One aspect of the present disclosure discloses a method, comprising: protecting a secret in a read-only memory in a computing device; generating, by the computing device, a first key pair having a first public key and a first private key using the secret, wherein the first public key is obtainable from the first private key via a first operation; communicating with a system via a computer network by the computing device to obtain a component containing instructions executable in the computing device; calculating an intermediate key by the computing device using information about the component installed in the computing device; combining, by the computing device, the intermediate key and the first private key via a second operation to generate a second private key in a second key pair, wherein the second key pair has a second public key obtainable from the second private key via the first operation; and transmitting, by the computing device, the second public key to the system to determine the correctness of the second public key provided by the computing device, wherein the system is configured to verify the correctness of the second public key provided by the computing device without accessing the second private key.

[0008] Another aspect of the present disclosure discloses a computing device, comprising: a communication device; and a processor, which is configured to: generate an intermediate key from an input; combine the intermediate key with a first private key to generate a second private key; calculate a second public key of the second private key; and use the communication device to transmit the second public key to a remote device for verification without the remote device having access to the second private key.

[0009] Another aspect of the present disclosure discloses a server system, comprising: a memory configured to store a component of a computing device and a first public key; a communication device; and a processor configured to: use the communication device to transmit the component to the computing device so that the component is installed in the computing device, wherein the computing device is configured to calculate a second key pair including a second private key and a second public key from a first private key associated with the first public key in a first key pair; receive the second public key from the computing device; and determine the correctness of the second public key without data identifying the first private key and without data identifying the second private key. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings in which like references indicate similar elements.

[0011] Figure 1 The generation of an asymmetric encryption key pair based on an existing key pair according to one embodiment is shown.

[0012] Figure 2 A key pair representing an identity of a computing device and generation of an additional component based on the key pair representing an identity of a computing device according to one embodiment are shown.

[0013] Figure 3 Another technique for generating a key pair representing the identity of a computing device and an additional component is shown according to one embodiment.

[0014] Figure 4 The generation of an identity of a computing device having an updateable component according to one embodiment is shown.

[0015] Figure 5 Shown is verification of a device's public key by a remote server according to one embodiment.

[0016] Figure 6 The generation of a secondary key pair based on a shared secret and a primary key pair according to one embodiment is shown.

[0017] Figure 7 An integrated circuit memory device according to one embodiment is shown.

[0018] Figure 8The generation of identity data in an integrated circuit memory device according to one embodiment is shown.

[0019] Fig. 9 A technique for controlling execution of commands in a memory device according to one embodiment is shown.

[0020] Fig.10 A method for managing encryption keys according to one embodiment is shown.

[0021] Fig.11 An example computing system having a memory subsystem according to some embodiments of the present disclosure is shown.

[0022] Fig.12 is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION

[0023] At least some aspects of the present disclosure relate to techniques for generating an asymmetric encryption key pair in a device in a manner that enables an external system to verify the correctness of a public key in the key pair without requiring the external system to have access to a private key in the key pair and / or a secret used to generate the private key.

[0024] For example, in some techniques of asymmetric cryptography (e.g., elliptic curve cryptography), a public key for a private key can be generated by multiplying the private key with a generator element of a group for a public key operation. A new private key in a new key pair can be generated from operations applied to an existing private key and an intermediate key. A new public key in a new key pair can be calculated from an existing public key and the public key of an intermediate key when the order of applying the operations and the multiplication with the generator element can be changed in the generation of the public key without changing the result.

[0025] For example, the operation may be a sum operation such that a new private key is calculated from the sum of an existing private key and an intermediate key. Thus, a new public key may be calculated from the sum of an existing public key and a public key calculated for an intermediate key.

[0026] For example, the operation may be a multiplication operation, such that a new private key is calculated from the multiplication of an existing private key and an intermediate key. Thus, a new public key may be calculated from the multiplication of an existing public key and an intermediate key.

[0027] When using such a technique for generating a new key pair, an external system with access to the existing public key and intermediate keys can independently calculate the new public key to verify the correctness of the new public key against the new private key without having to access data that could compromise the confidentiality of the new private key and / or the existing private key.

[0028] For example, the technology can be used to generate an alias key pair in a computing device to represent a computing device with a unique device secret and running a software / firmware component. When a component is updated in a computing device (e.g., via an over-the-air update), a new alias key pair can be calculated in the computing device to represent a computing device with a unique device secret and running the updated software / firmware component. The alias key pair can be used as a new unique secret (and new identity) for the software / firmware running in the computing device. The updated software / firmware component can be mastered in a server computer for retrieval and over-the-air updates. Therefore, the server computer can have information about the correct version of the software / firmware component. The server computer can be configured to verify that the public key (and therefore the private key) in the new alias key pair of the software / firmware version running in the computing device is correct via calculating the public key independently of the computing device. The correctness of the public key calculated by the computing device can be regarded as the correctness of the installation / update of the software / firmware in the computing device. The server computer can be configured to verify the correctness of the public key in the new alias key pair without accessing the secrets of the computing device, such as the private key in the new alias key pair, the unique device secret of the computing device.

[0029] For example, the techniques may be used to establish a new identity for a device based on an existing identity of the device to communicate with another device in a particular context.

[0030] For example, through a peer-to-peer Diffie-Hellman (DH) key exchange, two devices A and B may establish a shared secret for a context (e.g., a session). An intermediate key may be generated from the shared secret and other inputs representing the context for use in generating a new identity of a device (e.g., A) (or a new identity of both devices A and B). For example, a new private key in device A may be generated from an existing private key of device A and an intermediate key (e.g., via summation or multiplication); and a new public key of device A may be independently calculated by both devices A and B from an existing public key of device A shared between devices A and B. Trust in an existing public key of device A shared between devices A and B may be considered trust in a new public key shared between devices A and B, because both devices A and B may verify the correctness of the new public key while the new private key remains secret in device A, even though the confidentiality of the intermediate key may not be preserved. Similarly, device B can establish a new private key based on the intermediate key and the existing private key of device B; and the new public key of the new private key can be verified by device A using the existing public key and the intermediate key of device B. The use of new key pairs can reduce the use of existing key pairs and thus improve the confidentiality of existing key pairs.

[0031] Figure 1 The generation of an asymmetric encryption key pair 125 based on an existing key pair 105 is shown according to one embodiment.

[0032] exist Figure 1In the example, input 101 is provided to a key derivation function 103 to generate a key pair 105 for an asymmetric cryptography, comprising a public key 107 and a private key 109.

[0033] In general, the functions of key derivation (e.g., 103, 113, 112) involve cryptographic operations such that, while it is easy to compute a key pair (e.g., 105) from an input (e.g., 101), it is impractical to determine the input (e.g., 101) from the resulting key pair (e.g., 105).

[0034] In general, an encrypted message generated via asymmetric cryptography (e.g., elliptic curve cryptography) using a private key (e.g., 109) in a key pair (e.g., 105) can be decrypted using a public key (e.g., 107) in the key pair (e.g., 105). An encrypted message generated via asymmetric cryptography using a public key (e.g., 107) can be decrypted using a private key (e.g., 109). Each of the keys (e.g., 107 and 109) can have a number of bits when represented in binary format. When the number of bits in the keys (e.g., 107 and 109) is large enough (e.g., when long keys are used), the security of the key system is strong and can prevent successful attacks using traditional computer systems. For example, it is impractical to determine a private key (e.g., 109) from a public key (e.g., 107); it is impractical to decrypt a message encrypted using a public key (e.g., 107) without the private key (e.g., 109); and it is impractical to generate an encrypted message that can be correctly decrypted using a public key (e.g., 107) without the private key (e.g., 109).

[0035] For example, after private key 109 is generated from input 101, public key 107 may be generated from private key 109, such as by multiplying private key 109 with a generator element of a group for public key operations. The multiplication result may be truncated to retain a predetermined number of least significant bits as public key 107. Thus, while it is easy to generate public key 107 from private key 109, it is difficult or impractical to determine private key 109 from public key 107. Therefore, public key 107 may be provided to the public without compromising the confidentiality of private key 109.

[0036] In general, the function of key derivation 103 may be a set of operations known to the public. Input 101 may include a secret, such as a unique device secret configured in a memory device, to ensure the confidentiality of private key 109. Therefore, private key 109 represents a combination of input 101, including the secret included in input 101. A device having private key 109 may be considered to have a secret (e.g., a unique device secret configured in a memory device).

[0037] In some applications, it is useful to generate a new key pair 125 to represent a combination of input 101 and other input 111. Although the function of key derivation 103 can be used to combine inputs 111 and 101 to generate a key pair, it is difficult for an external system that does not have access to input 101 to verify the correctness of the combined inputs 111 and 101 in the process of generating a key pair from key derivation 103.

[0038] exist Figure 1 In FIG. 1 , key derivation 113 is configured to generate a new key pair 125 from an existing key pair 105 and an input 111. Input 111 is provided to a function of key derivation 112 to generate an intermediate key pair 115 having a public key 117 and a private key 119.

[0039] For example, after the intermediate private key 119 is generated by the key derivation 112 from the other inputs 111 , the public key 117 may be calculated by multiplying the private key 119 with the same generator element used to generate the public key 107 from the private key 109 .

[0040] In general, key derivations 112 and 103 may use the same function or different functions.Key derivation 112 and key derivation 103 may apply the same operation to generate public keys 107 and 117 from respective private keys 109 and 119 (eg, via multiplication with the same generator element).

[0041] Subsequently, key derivation 113 further includes an operation of combining 123 private keys 109 and 119 to generate a new private key 129 in a new key pair 125. Thus, a new public key 127 may be generated by an operation of combining 121 the intermediate public key 117 (or the intermediate private key 119) and the existing public key 107. The result of combining 121 with the public key 107 may be the same as the result of computing the public key 127 from the private key 129 (e.g., via multiplication with the same generator element).

[0042] Because public key 127 can be independently calculated by an external system with other inputs 111 and public key 107, the external system can verify the correctness of public key 127 calculated from inputs 101 and 111. The correctness of new public key 127 can be used as a proxy for the correctness of inputs 101 and 101 in the combined computing device. In addition, the ability to verify new public key 127 can be used to prevent man-in-the-middle attacks when using new key pair 125.

[0043] The data used by the external system to verify / validate the new public key 127 (e.g., input 111 and existing public key 107) does not contain or reveal any of private keys 129 and 109 and the secret in input 101. It is difficult or impractical to determine private key 129, private key 109, or the secret in input 101 based on the data used by the external system to verify the correctness of the new public key 127. Therefore, the confidentiality of private key 129, private key 109, and the secret in input 101 is maintained while the external system still has the opportunity to verify the new public key 127.

[0044] For example, when new private key 129 is generated by combining 123 private keys 109 and 119 via summation, public key 127 can be calculated by combining 121 public keys 107 and 117 via summation (e.g., as Figure 2 middle).

[0045] For example, when new private key 129 is generated by combining 123 private keys 109 and 119 via multiplication, public key 127 can be calculated by combining 121 public key 107 and private key 119 via multiplication (e.g., as Figure 3 middle).

[0046] Figure 2 The generation of a key pair representing the identity of a computing device and an additional component based on the key pair representing the identity of the computing device according to one embodiment is shown. For example, Figure 2 The technology can be used as Figure 1 Examples of technology.

[0047] exist Figure 2 In the present invention, a device secret 131 of a computing device, a set of cryptographic measurements 133 of one or more layers of software / firmware components configured to run in the computing device, and a context 135 for operating the computing device can be provided as inputs to a key derivation 103 to generate a key pair 105 as the identity and device secret of the computing device running the one or more layers of the software / firmware components in the context 135.

[0048] In general, a cryptographic measurement (e.g., 133, 143) of a component may be a value generated by applying a cryptographic hash function to the data of the component. It is difficult and impractical to modify the data of the component without changing the cryptographic measurement. Therefore, the correctness of the cryptographic measurement may be considered a reliable representation of the integrity of the data of the component.

[0049] When another layer of software / firmware components represented by measurement 143 is configured to run in a computing device in context 145 together with the one or more layers of software / firmware represented by measurement 133, key derivation 113 may be used to generate a new key pair 125 as the identity and device secret of the computing device running the combination of the software / firmware components represented by measurements 143 and 133.

[0050] When there are multiple layers of software / firmware components represented by measurements 133 , key derivation 103 may be constructed as a chain, in a manner similar to the generation of new key pair 125 .

[0051] For example, measurement 143 may represent an upper layer of a software / firmware component that runs on top of a lower layer of the software / firmware component represented by measurement 133. Key pair 105 generated from key derivation 103 may be used as a device secret of the lower layer. The device secret of the lower layer (e.g., key pair 105) may be provided to key derivation 113 to generate a new key pair 125 as a device secret of the upper layer. The device secret 131 used to generate the key pair 105 of the lower layer may in turn be an encrypted key pair generated from a measurement of another lower layer or hardware (e.g., a unique device secret protected in a read-only memory of a computing device).

[0052] exist Figure 2 , a new private key 129 is generated from a sum 139 of the intermediate private key 119 and the existing private key 109. Thus, the same public key 127 in the new key pair 125 can be computed directly from the new private key 129 (e.g., via multiplication with the same generator element used to generate the public key 107 from the private key 109) or from the sum 137 of the intermediate public key 117 and the existing public key 107. Thus, another device with access to the public keys 117 and 107 can verify / validate the new public key 127 computed by the computing device. The secrets of the computing device (e.g., the private keys 129 and 109 and the device secret 131) can be protected from access by a device responsible for verifying / validating the correctness of the public key 127 provided by the computing device running the component represented by the measurement 143 and other components represented by the existing key pair 105.

[0053] Figure 3 Another technique for generating a key pair representing the identity of a computing device and an additional component according to one embodiment is shown. For example, Figure 3 The technology can be used as Figure 1 Examples of technology.

[0054] Similar to Figure 2 Technology in Figure 3 The technique may be used to generate a new key pair 125 that represents a combination of an upper-level component represented by another measurement 143 and one or more lower-level components represented by an existing key pair 105 .

[0055] exist Figure 3, a new private key 129 is generated from a multiplication 149 of the intermediate private key 109 and the existing private key 119. Thus, the same public key 127 in the new key pair 125 can be computed directly from the new private key 129 (e.g., via multiplication with the same generator element used to generate the public key 107 from the private key 109) or from a multiplication 147 of the intermediate private key 119 and the existing public key 107. Thus, another device with access to the intermediate private key 119 and the public key 107 can verify / validate the new public key 127 computed by the computing device. The secrets of the computing device (e.g., the private keys 129 and 109 and the device secret 131) can be protected from access by a device responsible for verifying / validating the correctness of the public key 127 provided by the computing device running the component represented by the measurement 143 and other components represented by the existing key pair 105.

[0056] Figure 4 The generation of an identity of a computing device having an updateable component according to one embodiment is shown. For example, Figure 4 The identity generation can be done using Figure 1 , Figure 2 or Figure 3 technical implementation.

[0057] For example, a computing device where the unique device secret 151 is protected in read-only memory can use it when component 163 is updated. Figure 4 The identity generator updates one of its identities.

[0058] The computing device's unique device secret 151 may be a root identity of the computing device.To generate an identity of a computing device having component 161, input 134 may be generated to include an encrypted measurement of component 161 and a context in which component 161 is used in the computing device.

[0059] Key derivation 103 may generate a key pair (eg, Figures 1 to 3 105) as a composite device identifier 106 of a computing device operating component 161.

[0060] Composite device identifier 106 (e.g., Figures 1 to 3 105) can be provided as a device secret for key derivation 113 to generate a new key pair as alias key pair 125. Input 144 to key derivation 113 may include a measurement of updatable component 163 and a context (e.g., 145) of the use of component 163 in a computing device having component 161. For example, the input may include a firmware security descriptor (FSD) 165 for updatable component 163.

[0061] For increased security, a separate identification key pair 155 may be generated via key derivation 153 to represent component 163 on top of component 161 in a computing device. Identification key pair 155 includes identification public key 157 and identification private key 159. In general, key derivation 153 of identification key pair 155 may be the same, similar, or different than key derivation 113 of alias key pair 125.

[0062] The computing device may use credential generation 141 to generate an alias key credential 124 providing an alias public key 127 and an identity key credential 154 providing an identity public key 157. Credentials 124 and 154 may be signed using an identity private key 159.

[0063] Updatable component 163 running on top of component 161 in a computing device may use alias key pair 125 as its composite device identifier and its device secret.

[0064] Optionally, another upper-level updatable component may be configured to run on top of component 163 ; and the alias key pair of the upper-level updatable component may be generated in a manner similar to the generation of alias key pair 125 of component 163 configured on top of component 161 .

[0065] The server system controlling the distribution of updateable components 163 may be configured to verify the alias public key 127 provided in the alias key credential 124. The server system is able to access the input 144 and / or the intermediate key pair 115 to generate the alias key pair 125 in the key derivation 113. However, the server system is not provided with the private key (e.g., 109) in the composite device identifier 106. Therefore, the server system does not have access to the alias private key 129 and / or other secrets of the computing device (e.g., the unique device secret 151). Using Figure 1 , Figure 2 or Figure 3 The server system can still verify and validate the alias public key 127 provided in the alias key certificate 124. By verifying and validating the alias public key 127 provided in the alias key certificate 124, the server system can confirm the correct installation of the updatable component 163 in the computing device and the validity of the certificates 124 and 154, as shown in Figure 5 middle.

[0066] Figure 5 FIG. 1 shows the verification of the public key of the device by the remote server according to one embodiment. For example, Figure 4 The alias public key 127 provided in the alias key certificate 124 can be accessed via Figure 5 Server 179 verification in.

[0067] exist Figure 5In FIG. 1 , computing device 171 has processor 173, communication device 177, and read-only memory 175 that protects unique device secret 151. Processor 173 may operate based on components 161 and 163, such as a boot loader, operating system / firmware, application, and the like.

[0068] Device 171 may establish key pair 105 as a composite device identifier 106 representing computing device 171 running component 161. Through the protection operation, device 171 may provide public key 107 in composite device identifier 106 to server 179 so that server 179 may trust public key 107. For example, the correctness of public key 107 may be verified and verified by control component 161 and / or another server distributed by device 171.

[0069] When component 163 is installed (e.g., via an over-the-air update or initial installation in device 171 or during manufacture of device 171), device 171 may compute a new key pair 125 (e.g., as an alias key pair 125) representing computing device 171 running component 163 on top of component 161, such as Figure 4 middle.

[0070] The calculation of the alias key pair 125 can be based at least in part on the cryptographic measurement 143 of the valid version of the component 163 protected in the server 179 and the context 145 of the installation and / or operation of the copy of the component 163 in the device 171. Optionally, the context 145 can include private information shared between the server 179 and the device 171, such as a secret established via a Diffie-Hellman (DH) key exchange. Optionally, the context 145 can include information unique to the device 171 and / or the use of the component 163 in the device 171.

[0071] Component 161 running in device 171 may use communication device 177 to transmit alias key certificate 124 to server 179 for verification, validation and / or distribution. Alias ​​key certificate 124 may contain a copy of alias public key 127 calculated by device 171. Figure 1 , Figure 2 or Figure 3 Using technology, server 179 can independently calculate public key 127 from public key 107, encrypted measurement 143 and context 145 known to server 179.

[0072] If server 179 determines that its calculated public key 127 is consistent with the public key 127 provided in alias key certificate 124, then server 179 can conclude that device 171 has installed a correct copy of component 163 and that alias key certificate 124 is valid. Otherwise, server 179 can reject installation of alias key certificate 124 and / or component 163 in device 171.

[0073] For example, when server 179 determines that the alias public key 127 calculated by device 171 is incorrect, server 179 may request device 171 to reinstall a fresh copy of component 163 to ensure that component 163 in device 171 is not damaged or tampered with. Optionally, server 179 is configured to provide services in conjunction with component 163; and service requests from device 171 may be rejected when the public key 127 calculated by device 171 is incorrect. Optionally, server 179 may serve as a certificate authority for key certificates for copies of component 163 running in a group of devices (e.g., 171) connected to network 420, including alias key certificates (e.g., 124) and device identification key certificates (e.g., 154).

[0074] Figure 6 The generation of a secondary key pair based on a shared secret and a primary key pair according to one embodiment is shown. Figure 4 and Figure 5 The alias key pair 125 in can be regarded as Figure 6 Instance of .

[0075] exist Figure 6 In the example, device A 181 has master key pair 105. Device B 183 has the correct version of public key 107 in master key pair 105. Device A 181 can use Figure 1 , Figure 2 and Figure 3 The technique generates a secondary key pair representing device 181 in the new context in a manner that allows device B 183 to trust secondary key pair 125 represented by public key 127 (or a certificate for public key 127) just as it trusts primary key pair 105 represented by public key 107 (or a certificate for public key 107).

[0076] For example, to generate the auxiliary key pair 125, the devices 181 and 183 may communicate 185 to establish a shared secret. For example, the shared secret may be established via a Diffie-Hellman (DH) key exchange over an open network (e.g., 420) such that the secret is known to both devices 181 and 183, while other devices on the network (e.g., 420) cannot obtain the secret. The secret may be used as part of the context 145 in key derivation 112 to generate an intermediate private key 119 known only to devices 181 and 183. Use of the secret may improve the security of the private key 109 in the auxiliary key pair 125. However, the secret need not be used as part of the context 145 when generating the auxiliary key pair 125. Use of the cryptographic measurement 143 in key derivation 112 (e.g., in Figure 2 or Figure 3Optionally, additional information that may be known to other devices on the network (eg, 420) may also be used as part of context 145.

[0077] use Figure 1 , Figure 2 or Figure 3 , the device 181 can calculate 189 a new key pair 125 from an existing key pair 105. Separately, the device 183 can calculate 187 a new public key 127 from the public key 107 in the existing key pair 125. Thus, the device 183 can verify and validate the correctness of the secondary key pair 125 calculated in the device 181. After verification / validation, the device 181 can use the secondary key pair 125 as an identity (e.g., thereby reducing the use of the primary key pair 105, exposing a context 145 represented at least in part by a shared secret, replacing the primary key pair 105, etc.).

[0078] Optionally, device 183 may use the shared secret in a similar manner to generate its secondary key pair, which can be verified, validated, and trusted by device 181 to the same degree as the primary key pair of device 183.

[0079] In general, the software / firmware of a computing device may include multiple layers of components of a trusted computer base (TCB), such as a boot loader, an operating system, and applications. During the boot process, components may be loaded into the computing device to be executed in an order corresponding to the order of the layers. A computing device that has loaded a component (e.g., a boot loader, an operating system, or an application) of a particular layer may have a composite device identifier (CDI) representing the computing device running the loaded component and a corresponding encryption key that may be used to show that the computing device has the composite device identifier (CDI). The composite device identifier (CDI) may be an identifier of the last component that has been loaded into a particular layer of the computing device.

[0080] Each component may have a TCB component identity (TCI) that characterizes the component. For example, the TCB component identity (TCI) of a software / firmware component may be based on a cryptographic measurement of the component and other information, such as the identification of the manufacturer / supplier of the component, a version number, a build number, a serial number, a component name, etc. For example, a cryptographic measurement may be a value calculated by applying a cryptographic hash function to the data of the component (e.g., the instructions and resources of the component). Such a measurement or value may be referred to as a digest or measurement of the component.

[0081] Layers of components may be connected or linked to enhance the security of the trust base. For example, a composite device identifier (CDI) of a current layer component (e.g., layer i) may be generated by a previous layer component (e.g., layer i-1) based on a secret of the previous layer component and a TCB component identity (TCI) of the current component; and the composite device identifier (CDI) of the current layer component (e.g., layer i) may be used as a unique secret of a next layer component (e.g., layer i+1).

[0082] When a component is compromised (e.g., damaged, tampered with), its Composite Device Identifier (CDI), and therefore the encryption key, will be different than if the component was not compromised and therefore cannot be authenticated. Figure 1 , Figure 2 or Figure 3 When using the technology, the external device can perform verification based on checking the correctness of the alias public key (e.g., 127).

[0083] The secure memory device may store a unique device secret representing the memory device. The encryption key may be generated based at least in part on the unique device secret. A digital signature generated using the encryption key may be used to reveal the identity of the memory device represented at least in part by the unique device secret, as described below in conjunction with Figure 8 Further discussion.

[0084] The secure memory device may require that a command be signed with a cryptographic key before executing the command to access the secure memory area. The cryptographic key represents the authority to access the secure memory area. Thus, without the cryptographic key, an application or entity cannot access the secure memory area, as described below in conjunction with Fig. 9 Further discussion.

[0085] Figure 7 An integrated circuit memory device 230 is shown according to one embodiment. For example, Figures 1 to 6 The key generation technology can be implemented in the security manager 213 in the integrated circuit memory device 230 or in a computing device having the integrated circuit memory device 230.

[0086] exist Figure 7 , the memory device 230 has a secure memory area 233 storing a component 261 (e.g., a zeroth-tier component) and component information 263. The component information 263 may include data about components (e.g., 265, 267) to be loaded for execution after the component 261 (e.g., a first-tier component loaded by the zeroth-tier component, a second-tier component loaded by the first-tier component).

[0087] The memory device 230 stores a unique device secret 201 that is unique to the memory device 230 among a group of similar memory devices.

[0088] During startup of a computing system having a memory device 230, a composite device identifier (CDI) of component 261 is generated based on unique device secret 201 and a TCB component identity (TCI) of component 261; a composite device identifier (CDI) of component 265 is generated by component 261 based on the composite device identifier (CDI) of component 261 and the TCB component identity (TCI) of component 265; and a composite device identifier (CDI) of component 267 is generated by component 265 based on the composite device identifier (CDI) of component 265 and the TCB component identity (TCI) of component 267; and so on.

[0089] Component information 263 may include at least a summary of component 265 to be loaded by component 261 and / or a summary of component 267 to be loaded by component 265. Component information 263 may further include identification of storage locations of portions of components (e.g., 265, 267, and / or component 261). The storage location may also be referred to as a measurement location.

[0090] Therefore, before component 261 calculates its composite device identifier (CDI) using the TCB component identity (TCI) of component 265, the security manager 213 of memory device 230 (and / or the host system of memory device 230 running component 261) can calculate the current digest of component 265 stored at the storage location identified by component information 263. The calculated current digest can be compared with the digest in component information 263 to determine the validity of the TCB component identity (TCI) of component 265 and / or the integrity of component 265. If the stored component 265 is compromised or unhealthy, the boot process can be suspended; and repair and / or recovery operations can be performed. If component 265 is healthy, its composite device identifier (CDI) can be calculated by component 261 from the TCB component identity (TCI) of component 265 and the composite device identifier (CDI) of component 261. Because the composite device identifier (CDI) of component 261 is derived from unique device secret 201 , ownership of the composite device identifier (CDI) of component 265 indicates that component 265 has access to unique device secret 201 .

[0091] Similarly, another component 267 (e.g., an application) will be loaded after and / or by component 265 (e.g., an operating system). The composite device identifier (CDI) of component 267 will be calculated as a secret of component 267 based on the composite device identifier (CDI) of component 265, and the TCB component identity (TCI) of component 267 will be loaded after component 265. Because the composite device identifier (CDI) of component 265 is indirectly derived from unique device secret 201, ownership of the composite device identifier (CDI) of component 267 indicates that component 265 has access to unique device secret 201. Component information 263 may include a digest of component 267 to be loaded after component 265, and further include identification of storage locations of portions of component 267. Therefore, before calculating the composite device identifier (CDI) of component 267 using the TCB component identity (TCI) of component 267, the security manager 213 of memory device 230 (and / or the host system of memory device 230 running component 261 and / or component 265) can calculate the current digest of component 267 stored at the storage location (measurement location) identified by component information 263. The calculated current digest can be compared with the digest in component information 263 to determine the validity of the TCB component identity (TCI) of component 267 and / or the integrity of component 267, in a manner similar to the verification of component 265.

[0092] In some embodiments, there may be Figure 7 In other embodiments, the computing device may be configured to include more than one component layer. Figure 7 Fewer component layers are shown. Thus, the present disclosure is not limited to a specific number of component layers that are coupled or linked to generate their composite device identifiers.

[0093] Figure 7 An example is shown in which components 261, 265, ..., 267 are stored in the non-secure memory area 231. Commands configured to access the non-secure memory area 231 do not require a signature or verification code generated using a cryptographic key representing permission to execute the command within the memory device 230. In other embodiments, some or all of the components 261, 265, ..., 267 may also be stored in the secure memory area 233 to enhance security.

[0094] The integrated circuit memory device 230 may be enclosed in a single integrated circuit package.The integrated circuit memory device 230 includes a plurality of memory regions 231, ..., 233 that may be formed in one or more integrated circuit dies.

[0095] A memory region (e.g., 231 or 233) may be allocated for use by a host system as a partition or namespace. Memory locations in a memory region (e.g., 231 or 233) may be specified by the host system via addresses of logical block addressing (LBA); and memory device 230 may include an address map for specifying a relationship between LBA addresses in a partition or namespace and physical addresses of corresponding memory cells for providing storage space allocated to the partition or namespace. In some embodiments, memory device 230 is configured in a memory subsystem (e.g., Fig.11 210 shown; and the memory subsystem controller 215 can be configured to perform address mapping of the memory device 230.

[0096] A typical memory cell in a memory region (eg, 231, ..., 233) can be programmed to store one or more bits of data.

[0097] The memory device 230 has a local media controller 250 , which may implement at least a portion of the security manager 213 .

[0098] The security manager 213 of the memory device 230 may include an access controller 209 and an encryption engine 207 .

[0099] The encryption engine 207 can be implemented via logic circuits and / or instructions or microcode to perform encryption calculations, such as applying a cryptographic hash function to a data item to generate a hash value, encrypting a data item using an encryption key to generate ciphertext, decrypting the ciphertext using a corresponding encryption key to recover the data item, generating an encryption key for symmetric cryptography and / or a pair of encryption keys for asymmetric cryptography, and so on.

[0100] The access controller 209 controls access to at least one of the memory areas 231 , . . . , 233 and / or other functions of the memory device 230 based on an encryption key representing access rights.

[0101] For example, the security manager 213 may control access to the secure memory area 233 based on a cryptographic key generated based on the secret 201 of the integrated circuit memory device 230 and / or a cryptographic key representing the owner or authorized user of the memory device 230. For example, when a request or command to write data to the secure memory area 233 is received in the integrated circuit memory device 230, the security manager 213 verifies whether the request comes from a requestor with the cryptographic key. If not, the security manager 213 may deny the write request. In order to show that the request comes from an authorized requester, the requester may digitally sign the request or challenge message using the cryptographic key. When the secure memory device 230 determines that the digital signature is made using the correct cryptographic key, the requester may be deemed to have the authority to write data to the secure memory area 233. For example, the memory device 230 may store a cryptographic key for authenticating the digital signature of the signed request / command.

[0102] The memory device 230 may be configured to use different encryption key access controls for different commands. For example, one encryption key may indicate the permission to execute a security command in the memory device 230; and the security command is used to specify another encryption key indicating the permission to read and / or write in the secure memory area 233. For example, the memory device 230 may have multiple secure memory areas (e.g., 233); and access to each secure memory area (e.g., 233) may be controlled via a separate encryption key.

[0103] For example, the memory device 230 may have a unique device secret 201 that represents the identity of the memory device 230; and a cryptographic key derived from the unique device secret 201 may represent the owner's authority to operate the memory device 230, and thus execute secure commands in the memory device.

[0104] In general, the secure memory area 233 may have different security requirements for different types of access (e.g., read, write, erase). For example, the secure memory area 233 may be configured to require a digital signature that can be verified via an encryption key to write or change data in the secure memory area 233, but does not require a signed command to read data from the secure memory area 233. Alternatively, the secure memory area 233 may be configured to require a digital signature that can be verified via an encryption key to read, write and / or change data in the secure memory area 233. Alternatively, the secure memory area 233 may be configured to require a digital signature that can be verified via different encryption keys for different operations, such as reading, writing, changing, erasing, etc. in the secure memory area 233.

[0105] The integrated circuit memory device 230 has a communication interface 247 for receiving a command having an address 235. In response to the address 235 identifying a secure memory region (e.g., 233) configured with access control, the security manager 213 uses the cryptographic engine 207 to perform cryptographic operations to verify that the request is from a requestor having an encryption key authorized to access the memory region 233, and then uses the address decoder 241 to provide memory data retrieved from the memory region 233. The address decoder 241 of the integrated circuit memory device 230 converts the address 235 into a control signal to select a group of memory cells in the integrated circuit memory device 230; and the local media controller 250 of the integrated circuit memory device 230 performs operations to determine the memory data stored at the address 235 in the memory cell.

[0106] Figure 8 The generation of identity data in an integrated circuit memory device according to one embodiment is shown. For example, Figure 8 The technology can be Figure 7 is implemented in the memory device 230.

[0107] exist Figure 8 In the example, the encryption engine 207 of the memory device 230 (e.g., Figure 7 ) is used to generate at least a secret key 237 using its unique device secret 201 and device information 221.

[0108] For example, when asymmetric cryptography is used, secret key 237 is the private key of encryption key pair 229. An associated public key 239 is generated using encryption engine 207 along with the private key.

[0109] Alternatively, when symmetric cryptography is used, secret key 237 may be generated and used without public key 239 and without key pair 229 .

[0110] In some embodiments, multiple key pairs 229 are generated and used. For example, when using the device identity combination engine (DICE) and robust Internet of Things (RIoT) methods, the first pair of asymmetric keys is referred to as a device identification key; and the second pair of asymmetric keys is referred to as an alias key. The private device identification key can be used to authenticate the authenticity of the alias key, and then immediately deleted and cleared from the memory device 230 to protect its confidentiality, especially when the generation or use of the private device identification key occurs at least in part in the host system 220. The alias key can be used for authentication in further transactions and / or communications. For example, the private device identification key can be generated at boot time and used to sign a credential, such as a credential of an alias public key, and then deleted. After the identity of the memory device 230 and the authenticity of the public alias key are verified or confirmed using a credential (which is signed with the private device identification key as the secret key 237), the private alias key can then be used as the secret key 237 of the memory device 230 in subsequent operations until the host system 220 is restarted.

[0111] For example, data 223 stored in memory unit 203 for device information 221 may include a set of instructions (eg, software, firmware, operating system, application) to be executed by processing device 218 of host system 220 connected to communication interface 247 of memory device 230 .

[0112] For example, data 223 may include an encrypted hash value of the set of instructions. For example, a known hash value of the set of instructions may be stored in memory unit 203; and a current hash value of the set of instructions may be calculated to compare with the known hash value. If the two hash values ​​are consistent with each other, the integrity of the set of instructions is verified; and the hash value of the integrity of the set of instructions may be used as part of device information 221 to calculate secret key 237.

[0113] Alternatively, the current hash value of the set of instructions stored in memory unit 203 may be used directly to calculate secret key 237. If the instructions have been altered (e.g., due to data corruption and / or tampering or theft), then the secure server's verification of secret key 237 will fail.

[0114] Optionally, data 223 may include an identification of the set of instructions, such as a hash value of the source code of the instructions, the name of the software / firmware package represented by the instructions, a version number and / or release date of the package, and the like.

[0115] Optionally, data 223 may include tracking data stored in memory unit 203 during a build and / or customization process of a computing system having host system 220 and memory device 230. For example, when memory device 230 is assembled into a component device (e.g., a memory subsystem), a piece of tracking data indicating the manufacturer of the component device, the model number of the component device, and / or the serial number of the component device is stored in memory unit 203 as part of device information 221. Subsequently, when the component device is assembled into a computing system, a piece of tracking data is added to the memory unit as part of device information 221. Other tracking data may be added to memory unit 203 as part of device information 221 to reflect the history of memory device 230 to personalize the identity of memory device 230.

[0116] Optionally, the device information 221 may further include data 225 received from the host system 220 connected to the communication interface 247 of the memory device 230 .

[0117] For example, a computing system may have at least a host system 220 and a memory device 230. Some components in the host system 220 may be removed or replaced. When the host system 220 is booted, a portion of the instructions stored in the memory unit 203 are executed to collect data 225 about the components present in the host system 220 at boot time. Therefore, the device information 221 may represent a specific configuration of the software / data and hardware combination of the memory device 230 and / or the host system 220. The secret key 237 generated based on the device information 221 and the unique device secret 201 represents the identity of the memory device 230 having the specific configuration.

[0118] To reveal the identity of the memory device 230 and / or the host system 220 , the cryptographic engine 207 generates a verification code 253 from the message 243 and the secret key 237 .

[0119] The check code 253 of the secret key 237 and the message 243 can be constructed and / or verified using various techniques, such as hash digests, digital signatures or hash-based message authentication codes, symmetric cryptography and / or asymmetric cryptography. Therefore, the check code 253 is not limited to a specific embodiment.

[0120] In general, verifying whether the sender of a message (e.g., 243) has the encryption key (e.g., 245) involves verifying a check code (e.g., 253) of the message (e.g., 243). The check code may be in the form of a hash digest, a digital signature, a hash-based message authentication code (HMAC), a cryptographic message authentication code (CMAC), etc. The check code is generated using the encryption key and the message as inputs to a cryptographic operation, such as hashing, encryption, and / or other calculations, such that it is generally impractical to generate the check code without the encryption key and to generate the check code from a modified version of the message. Therefore, when the recipient confirms that the received check code is valid for the received message and encryption key, the recipient may conclude that the sender has the corresponding encryption key and that the received message is the same as the message used to generate the received encryption key.

[0121] In some embodiments, the recipient performs verification of the message check code using the same encryption key that the sender used to generate the check code. For example, the recipient generates a check code for the received message using the same encryption key and compares the generated check code to the received check code. If there is a match, then the received check code is valid for the received message; and the sender can be considered to have the encryption key. Otherwise, the received check code is invalid for the received message; the received message has changed since the check code was generated, or the received check code was generated using a different encryption key, or both.

[0122] In some embodiments, the recipient performs verification of the message check code using the public encryption key in the key pair; and the sender generates the check code using the private encryption key in the key pair. For example, the check code can be generated by applying a hash function to the message to generate a hash value of the message. The ciphertext of the hash value obtained by encrypting the hash value using the encryption key can be used as the check code. The recipient of the message and the check code performs verification using the corresponding decryption key, which is the same as the encryption key when symmetric encryption is used and is another key in the key pair when asymmetric encryption is used. After the hash value is restored from the ciphertext using the decryption key, the restored hash value can be compared with the hash value of the received message; if there is a match, then the received check code is valid for the received message; otherwise, the received check code is invalid for the received message. Alternatively, the recipient can perform verification using the encryption key without performing decryption. The recipient can use the encryption key to generate a check code for the message to compare with the received check code.

[0123] In some embodiments, the message and the encryption key are combined to generate a hash value as a check code, such as in the technology of hash-based message authentication code (HMAC). For example, an encryption key can be used to generate two keys. After combining one of the two keys with the message to generate a message modified by the key, a cryptographic hash function can be applied to the key-modified message to generate a hash value, which is further combined with another key to generate another message. After applying the cryptographic hash function (or another cryptographic hash function) to the other message, a hash-based message authentication code is generated. The message recipient can use the same encryption key to generate a hash-based message authentication code for the received message to compare with the received hash-based message authentication code. If there is a match, then the verification is successful; otherwise, the verification fails.

[0124] In general, any technique for generating and verifying a check code of a message from a sender and an encryption key used by the sender to generate the check code can be used to determine whether the sender has the encryption key. The recipient will perform the verification using the appropriate encryption key, which may be the same encryption key used to generate the check code, or in the same asymmetric encryption key pair. Therefore, the present disclosure is not limited to the specific techniques of hash digests, digital signatures, and / or hash-based message authentication codes.

[0125] For convenience, a check code (e.g., 253) generated for a message (e.g., 243) using an encryption key (e.g., 245) to represent both the message (e.g., 243) and the encryption key (e.g., 245) may generally be referred to as a digital signature of the message (e.g., 243) signed using the encryption key (e.g., 245), but it should be understood that the check code may be generated using a variety of techniques, such as a hash-based message authentication code.

[0126] Optionally, message 243 may include a user identification, such as a name, email address, registered user name, or another identifier of the owner or authorized user of host system 220 where identity data 212 was generated.

[0127] Optionally, part of the message 243 may provide information in encrypted form. For example, the information may be encrypted using the public key of the secure server so that the information is not accessible to a third party.

[0128] The message 243 may be a credential presenting the unique identification 211 of the memory device 230 and / or the host system 220. The message 243 may further present other data 227, such as a counter value maintained in the memory device 230, a cryptographic nonce, and / or other information related to the verification of the identity data 212. The memory device 230 may monotonically increase the counter value to invalidate the identity data having a lower counter value to prevent replay attacks.

[0129] In some implementations, data 227 may include a portion of device information 221 used to generate secret key 237 .

[0130] In some embodiments, secret key 237 is a private alias key in a pair of asymmetric keys. Data 227 includes a credential presenting a corresponding public alias key in the pair of asymmetric keys. The credential presenting the public alias key is signed using the device identification key of memory device 230. The public alias key can be used to verify the check code 253 of message 243 and the private alias key used as secret key 237. Once the secure server verifies the credential presenting the public alias key, which is signed using the device identification key of memory device 230 and provided as part of data 227, the secure server can use the public alias key to verify the check code 253 signed using the private alias key as secret key 237. In this embodiment, the secure server can verify the check code 253 using the public alias key provided in message 243 without having to regenerate the pair of alias keys; and memory device 230 can generate alias key pair 229 using data that is not yet known to the secure server.

[0131] The credentials presenting the public alias key can be Figure 8 230 is generated and verified in the manner of , where secret key 237 is a device identification key generated using device information 221 and unique device secret 201. Optionally, memory device 230 first provides a credential with a public alias key to the secure server. Subsequently, memory device 230 can use the private alias key as secret key 237 without including the public alias key in message 243, or without including a credential for the public alias key in message 243.

[0132] In addition, verification of the identity of the memory device 230 may include the use of multiple secret keys and verification codes signed using the secret keys. For example, the authenticity of the alias secret key and the identity of the memory device 230 may first be established using the device identification secret key; then, the authenticity of the identity of the memory device 230 may be verified using the alias secret key. In general, the device identification secret key and the alias secret key may be based on asymmetric cryptography or symmetric cryptography, because the security server may generate the corresponding encryption key generated by the memory device 230.

[0133] For increased security, memory device 230 does not generate its copy of secret key 237 using processing power outside of memory device 230, and does not transmit secret key 237 outside of memory device 230. The generation and use of secret key 237 is performed using the logic circuitry of cryptographic engine 207 sealed within memory device 230.

[0134] Alternatively, the operations of generating and using the secret key 237 may be implemented via a set of instructions stored in the memory unit 203 and loaded to the processing device 218 of the host system 220 for execution. To increase security, the secret key 237 is not transmitted in plain text across the communication interface 247; and the instructions may be configured to clear the secret key 237 from the host system 220 after generation and / or after use.

[0135] Identity data 212 may be generated in response to memory device 230 being powered on, in response to a request received in communication interface 247, and / or in response to host system 220 booting up (e.g., by executing a boot loader stored in memory unit 203). Data 227 may include a count value maintained in memory device 230. When an operation to generate identity data 212 is performed, the count value is incremented. Thus, a version of identity data 212 having a count value invalidates a previous version of identity data 212 having a count value lower than the count value.

[0136] In some embodiments, data 223 includes multiple component layers (eg, component A 261, component B 265, component C 267); and device information 221 includes component information 263 and composite device identifiers for at least some of the components.

[0137] Fig. 9 A technique for controlling the execution of commands in a memory device according to one embodiment is shown. For example, Fig. 9 The technology can be Figure 7 is implemented in the memory device 230.

[0138] exist Fig. 9 In , access controller 209 is configured with access control key 249 to determine whether a signed command 256 received in communication interface 247 is from an entity having permission to execute command 255 in secure memory device 230 .

[0139] When the controller 216 of the host system 220 sends a command 255 to the communication interface 247 of the memory device 230, the access controller 209 determines whether the sender of the command 255 has the authority to request the memory device 230 to execute the command 255. The host system 220 may include one or more processing devices 218 that execute instructions implementing an operating system and / or application programs.

[0140] The encryption key 245 is configured to represent the permission to be checked using the access control key 249. The sender of the command 255 can generate the verification code 253 from the encryption key 245 and the message 243 containing the command 255.

[0141] Similar to the above combination Figure 8The verification code 253 discussed, the encryption key 245, and the verification code 253 of the message 243 can be constructed and / or verified using various techniques, such as hash digests, digital signatures or hash-based message authentication codes, symmetric cryptography, and / or asymmetric cryptography. Therefore, the verification code 253 is not limited to a specific embodiment; and the verification code 253 can generally be referred to as a digital signature of the message 243 signed using the encryption key 245, but it should be understood that the verification code 253 can be generated using various techniques, such as a hash-based message authentication code.

[0142] exist Fig. 9 , the access controller 209 verifies the check code 253 submitted to the communication interface 247 for the command 255 using the corresponding access control key 249. The access controller 209 generates a verification result 259 of the received message 243 and the received check code 253 using the encryption engine 207. Based on the verification result 259, the access controller 209 can selectively allow the command 255 to be executed in the memory device 230 or prevent the execution of the command 255.

[0143] For example, access control key 249 may be an encryption key stored in memory device 230. Different access control keys may be used to control different permissions to execute different commands and / or to execute commands that operate on different sectors or regions of the memory unit.

[0144] For example, one encryption key 245 may represent the permission to execute a security command in the memory device 230. When executing a security command, the access control key 249 is installed (or not installed) in the memory device 230 to verify the checksum of another encryption key representing the permission to execute a read command (or write command) to access the secure memory area 233.

[0145] Optionally, encryption key 245 is generated based on unique device secret 201 of memory device 230 in the process of verifying the identity of memory device 230; and a secret known between memory device 230 and the owner of memory device 230 allows generation of a session key as encryption key 245 to represent the authority to execute selected commands in memory device 230 during a communication session. The communication session may have a time limit and / or be terminated via a command to memory device 230.

[0146] In some embodiments, the same session key is used both as an encryption key 245 to represent permissions (e.g., to read or write data in the secure memory area 233) and as an access control key 249 for verifying a check code (e.g., 253) generated using the encryption key 245.

[0147] In another embodiment, a pair of encryption keys of asymmetric cryptography can be used for the session. The public key of the pair is used as the access control key 249; and the private key of the pair can be used as the encryption key 245 representing the corresponding permissions.

[0148] After the access control key 249 for verifying the check code (e.g., 253) generated using the encryption key 245 indicating the permission to read or write in the secure memory area 233 is installed in the memory device 230, the encryption key 245 can be used by the authorized entity to generate a signed command 256. The signed command 256 can be transmitted to the communication interface 247 of the memory device 230 through the host system 220. After the access controller 209 verifies the check code 253 in the signed command 256, the access controller 209 allows the memory device 230 to execute the command 255.

[0149] Message 243 may include data 257 indicating limitations on the request to execute command 255 .

[0150] For example, data 257 may include an execution count value maintained within memory device 230, such that check codes generated for lower counts are invalid.

[0151] For example, data 257 may include a cryptographic random number established for a specific instance of a request to execute command 255 so that verification code 253 cannot be reused for another instance.

[0152] For example, data 257 may include a time window during which check code 253 is valid.

[0153] For example, data 257 may include an identification of a memory region in which command 255 is permitted to execute.

[0154] For example, data 257 may include a type of operation that allows command 255 to be performed in memory device 230 .

[0155] Fig.10 A method for managing encryption keys according to one embodiment is shown.

[0156] For example, Fig.10 The method may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, device hardware, integrated circuits, etc.), software / firmware (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, Fig.10 The method can be Figure 5 or Figure 6The process of the present invention is implemented in a system and at least partially executed by a processing device (e.g., processor 173 or controller 250) in a device (e.g., 171, 181, or 183) or a server (e.g., 179). Although shown in a specific order or sequence, the order of the process can be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as being only examples, and the illustrated processes can be executed in different orders, and some processes can be executed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0157] At block 301 , the method includes protecting, in a computing device (eg, 171 , 181 , 230 , or 200 ), a secret (eg, 151 or 201 ) in a read-only memory (eg, 175 ).

[0158] For example, a secret (e.g., 131, 151, or 201) may be configured in an integrated circuit memory device (e.g., 230) during manufacture of the memory device (e.g., 230) and not transmitted outside the memory device (e.g., 230) after manufacture of the memory device (e.g., 230) is completed.

[0159] For example, a secret (e.g., 131, 151, or 201) may be configured to be unique to a memory device (e.g., 230) among a group of memory devices. The secret (e.g., 131, 151, or 201) may be the basis for the identity of the memory device (e.g., 230), the identity of the computing device (e.g., 171, 181, or 200) in which the memory device (e.g., 230) is installed, and the identity of the software / firmware / application component (e.g., 161) running in the computing device (e.g., 171, 181, or 200).

[0160] For example, a processor (e.g., 173, 250, 217, or 218) may be configured to compute a key pair (e.g., 105) based at least in part on a secret (e.g., 131, 151, or 201) representing an identity of a memory device (e.g., 230), a computing device (e.g., 171, 181, or 200) having a memory device (e.g., 230), or a component (e.g., 161) executing in a computing device (e.g., 171, 181, or 200).

[0161] In some embodiments, the secret (eg, 131, 151, or 201) may be a private key (eg, 109) of an asymmetric encryption key pair (eg, 105) or a composite device identifier (eg, 106).

[0162] At block 303, the method includes generating, by a computing device (e.g., 171, 181, 230, or 200), a first key pair (e.g., 105) having a first public key (e.g., 107) and a first private key (e.g., 109) using a secret (e.g., 131, 151, or 201). The first public key (e.g., 107) may be obtained from the first private key (e.g., 109) via a first operation (e.g., in elliptic curve cryptography).

[0163] For example, the first operation may include multiplication of a first private key (eg, 109) and a predetermined number (eg, a generator element of a group for a public key operation).

[0164] At box 305, the method includes communicating with a system (e.g., server 179 or device 183) via a computer network (e.g., 420) by a computing device (e.g., 171, 181, 230, or 200) to obtain a component (e.g., 163) containing instructions that can be executed in the computing device (e.g., 171, 181, 230, or 200).

[0165] For example, a computing device (eg, 171, 181, 230, or 200) may download a component (eg, 163) from server 179 for installation or for over-the-air updating.

[0166] For example, the system (e.g., server 179 or device 183) may include a memory configured to store a first public key (e.g., 107) for a distributed component (e.g., 163) and a computing device (e.g., 171, 181, 230, or 200). In addition, the system (e.g., server 179 or device 183) may include a communication device that communicates with the computing device (e.g., 171, 181, 230, or 200) via a network 420, and a processor configured to perform the following operations: Check the correctness of the installation of the component (e.g., 163) in the computing device (e.g., 171, 181, 230, or 200) by determining the correctness of the alias key certificate 124 of the component (e.g., 163) in the computing device (e.g., 171, 181, 230, or 200).

[0167] At box 307, the method includes calculating an intermediate key (e.g., intermediate private key 119) by a computing device (e.g., 171, 181, 230, or 200) using information (e.g., measurement 143, context 145) about a component (e.g., 163) installed in the computing device (e.g., 171, 181, 230, or 200).

[0168] For example, information about component 163 installed in a computing device (eg, 171 , 181 , 230 , or 200 ) may include an encrypted measurement of component 163 .

[0169] For example, information about component 163 installed in a computing device (eg, 171 , 181 , 230 , or 200 ) may include context information unique to the computing device (eg, 171 , 181 , 230 , or 200 ).

[0170] For example, information about component 163 installed in a computing device (e.g., 171, 181, 230, or 200) may include secrets derived from key exchanges over a computer network, such as Figure 6 For example, the key exchange may be based on a peer-to-peer Diffie-Hellman (DH) key exchange protocol during communication of the component 163 retrieved from the server 179 .

[0171] At box 309, the method includes combining, by a computing device (e.g., 171, 181, 230, or 200), an intermediate key (e.g., intermediate private key 119) and a first private key (e.g., 109) via a second operation (e.g., a summation or a multiplication) to generate a second private key (e.g., 129) in a second key pair (e.g., 125), the second key pair having a second public key (e.g., 127) obtainable from the second private key (e.g., 129) via the first operation.

[0172] In some applications, the second private key (e.g., 129) is generated outside the context of the installation component (e.g., 163). For example, the second private key (e.g., 129) may be generated to replace the first private key (e.g., 109) or reduce the use of the first private key (e.g., 109) or transmit in the session. In such applications, the operation in block 305 may be skipped; and the intermediate key may be generated from other information shared between the system (e.g., device 183) and the computing device (e.g., device 181). Such information may include context information (e.g., context 145) related to the generation of the second private key (e.g., 129), such as a secret established via a key exchange of the communication session.

[0173] For example, rather than communicating to obtain a component (e.g., 163) in block 305, a computing device (e.g., 171, 181, 230, or 200) and a system (e.g., device 183 or server 179) may communicate 185 to establish a shared secret (e.g., via a Diffie-Hellman (DH) key exchange) and establish an input known to both the computing device (e.g., 171, 181, 230, or 200) and the system (e.g., device 183 or server 179). The input may include the shared secret and be used to generate an intermediate private key 119.

[0174] At block 311, the method includes transmitting, by the computing device (e.g., 171, 181, 230, or 200), the second public key (e.g., 127) to the system (e.g., server 179 or device 183) to determine the correctness of the second public key (e.g., 127) provided by the computing device. The system (e.g., server 179 or device 183) is configured to verify the correctness of the second public key (e.g., 127) provided by the computing device (e.g., 171, 181, 230, or 200) without access to the second private key (e.g., 129).

[0175] For example, as in Figure 2 and Figure 3 , the second private key 129 may be generated from a second operation of summation 139 or multiplication 149 between the intermediate private key 119 and the first private key (e.g., 109). As a result, an external system (e.g., server 179 or device 183) may calculate a version of the second public key 127 using the public key 107 and the intermediate private key 119 alone to verify the correctness of the second public key 127 provided by the computing device (e.g., 171, 181, 230, or 200). The verification or validation of the second public key 127 by the external server 179 does not require any data that may reveal the second private key 129, the first private key 109, and / or the secret (e.g., 131, 151, or 201) of the computing device (e.g., 171, 181, 230, or 200).

[0176] In some applications, component 163 is a second component 163 configured to run on top of a first component 161 installed in a computing device (e.g., 171, 181, 230, or 200); and the first key pair 105 can be configured as a composite device identifier 106 of the first component 161 running in the computing device (e.g., 171, 181, 230, or 200); and the second key pair 125 can be configured as an alias key pair 125 provided as a secret of the second component 163 to the second component 163 running in the computing device.

[0177] For example, the method may further include reinstalling the second component 163 from the system (eg, server 179 ) over the computer network 420 responsive to determining that the second public key 127 provided by the computing device (eg, 171 , 181 , 230 , or 200 ) is incorrect.

[0178] For example, the second public key 127 may be provided to a system (e.g., server 179) in an alias key credential 124. For example, when the alias key credential 124 is determined by the server 179 to be incorrect, the server 179 may deny (or cause denial of) service to the second component 163 running in the computing device (e.g., 171, 181, 230, or 200).

[0179] Fig.11 An example computing system 200 including a memory subsystem 210 is shown according to some embodiments of the present disclosure. For example, Figure 5 Device 171 or server 179 or Figure 6 The device 181 or 183 in the embodiment can be Fig.11 The memory subsystem 210 may be implemented based on Figure 7 The integrated circuit memory device 230 is configured.

[0180] Memory subsystem 210 may include media such as one or more volatile memory devices (eg, memory device 240), one or more nonvolatile memory devices (eg, memory device 230), or a combination of such devices.

[0181] The memory subsystem 210 may be a storage device, a memory module, or a mixture of a storage device and a memory module. Examples of storage devices include solid state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controllers (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual inline memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual inline memory modules (NVDIMMs).

[0182] The computing system 200 may be a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., an airplane, drone, train, car, or other transportation vehicle), a device with Internet of Things (IoT) capabilities, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked commercial device), or such a computing device that includes a memory and a processing device.

[0183] Computing system 200 may include a host system 220 coupled to one or more memory subsystems 210 . Fig.11 An example of a host system 220 coupled to one memory subsystem 210 is shown. As used herein, "coupled to" or "coupled with" generally refers to a connection between components, which can be an indirect communication connection or a direct communication connection (e.g., without intermediate components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.

[0184] The host system 220 may include a processor chipset (e.g., processing device 218) and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., controller 216) (e.g., NVDIMM controller), and a storage protocol controller (e.g., PCIe controller, SATA controller). For example, the host system 220 uses the memory subsystem 210 to write data to the memory subsystem 210 and read data from the memory subsystem 210.

[0185] The host system 220 may be coupled to the memory subsystem 210 via a physical host interface. Examples of the physical host interface include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Fibre Channel, a Serial Attached SCSI (SAS) interface, a Double Data Rate (DDR) memory bus interface, a Small Computer System Interface (SCSI), a Dual In-line Memory Module (DIMM) interface (e.g., a DIMM socket interface supporting Double Data Rate (DDR)), an Open NAND Flash Interface (ONFI), a Double Data Rate (DDR) interface, a Low Power Double Data Rate (LPDDR) interface, or any other interface. The physical host interface may be used to transfer data between the host system 220 and the memory subsystem 210. When the memory subsystem 210 is coupled to the host system 220 via a PCIe interface, the host system 220 may further utilize an NVM Express (NVMe) interface to access components (e.g., the memory device 230). The physical host interface may provide an interface for passing control, address, data, and other signals between the memory subsystem 210 and the host system 220 . Fig.11 Memory subsystem 210 is shown as an example. In general, host system 220 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.

[0186] For example, the processing device 218 of the host system 220 can be a microprocessor, a central processing unit (CPU), a processing core of a processor, an execution unit, etc. In some cases, the controller 216 can be referred to as a memory controller, a memory management unit, and / or an initiator. In one example, the controller 216 controls communication via a bus coupled between the host system 220 and the memory subsystem 210. In general, the controller 216 can send commands or requests to the memory subsystem 210 for access to the memory devices 230, 240. The controller 216 can further include an interface circuit system for communicating with the memory subsystem 210. The interface circuit system can convert responses received from the memory subsystem 210 into information for the host system 220.

[0187] The controller 216 of the host system 220 may communicate with the controller 215 of the memory subsystem 210 to perform operations, such as reading data, writing data, or erasing data at the memory devices 230, 240 and other such operations. In some cases, the controller 216 is integrated into the same package of the processing device 218. In other cases, the controller 216 is separate from the package of the processing device 218. The controller 216 and / or the processing device 218 may include hardware, such as one or more integrated circuits (ICs) and / or discrete components, buffer memory, cache memory, or a combination thereof. The controller 216 and / or the processing device 218 may be a microcontroller, a dedicated logic circuit system (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.

[0188] The memory devices 230, 240 may include any combination of different types of non-volatile memory components and / or volatile memory components. Volatile memory devices (e.g., memory device 240) may be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).

[0189] Some examples of non-volatile memory components include NAND (or NOT AND) type flash memory and write-in-place memory, such as three-dimensional cross-point ("3D cross-point") memory. A cross-point array of non-volatile memory can perform bit storage based on changes in body resistance in conjunction with a stackable cross-grid data access array. In addition, compared to many flash-based memories, cross-point non-volatile memories can perform write-in-place operations, where non-volatile memory cells can be programmed without the non-volatile memory cells being previously erased. NAND type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).

[0190] Each memory device 230 may include one or more memory cell arrays. One type of memory cell, for example, a single-level cell (SLC) may store one bit per cell. Other types of memory cells, such as multi-level cells (MLC), three-level cells (TLC), four-level cells (QLC), and five-level cells (PLC) may store multiple bits per cell. In some embodiments, each memory device 230 may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, PLC, or any combination thereof. In some embodiments, a particular memory device may include an SLC portion, an MLC portion, a TLC portion, a QLC portion, and / or a PLC portion of a memory cell. The memory cells of the memory device 230 may be grouped into pages, which may refer to a logical unit of a memory device for storing data. In some types of memory (e.g., NAND), pages may be grouped to form blocks.

[0191] Although non-volatile memory devices such as 3D cross-point and NAND type memories (e.g., 2D NAND, 3D NAND) are described, the memory device 230 may be based on any other type of non-volatile memory, such as read-only memory (ROM), phase change memory (PCM), select memory, other chalcogenide-based memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridge RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), NOR flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0192] The memory subsystem controller 215 (or, for simplicity, the controller 215) can communicate with the memory device 230 to perform operations, such as reading data, writing data, or erasing data and other such operations at the memory device 230 (e.g., in response to commands dispatched by the controller 216 on the command bus). The controller 215 may include hardware, such as one or more integrated circuits (ICs) and / or discrete components, buffer memory, or a combination thereof. The hardware may include digital circuitry with dedicated (e.g., hard-coded) logic for performing the operations described herein. The controller 215 may be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.

[0193] The controller 215 may include a processing device 217 (e.g., a processor) configured to execute instructions stored in a local memory 219. In the example shown, the local memory 219 of the controller 215 includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 210, including handling communications between the memory subsystem 210 and the host system 220.

[0194] In some embodiments, local memory 219 may include memory registers that store memory pointers, fetched data, etc. Local memory 219 may also include read-only memory (ROM) for storing microcode. Fig.11 The example memory subsystem 210 in FIG. 2 has been shown as including a controller 215, but in another embodiment of the present disclosure, the memory subsystem 210 does not include a controller 215, but may rely on external control (e.g., provided by an external host or a processor or controller separate from the memory subsystem).

[0195] In general, the controller 215 may receive commands or operations from the host system 220 and convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 230. The controller 215 may be responsible for other operations such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address conversion between logical addresses (e.g., logical block addresses (LBA), namespaces) and physical addresses (e.g., physical block addresses) associated with the memory device 230. The controller 215 may further include a host interface circuit system for communicating with the host system 220 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory device 230, and convert responses associated with the memory device 230 into information for the host system 220.

[0196] The memory subsystem 210 may also include additional circuitry or components not shown. In some embodiments, the memory subsystem 210 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that may receive addresses from the controller 215 and decode the addresses to access the memory device 230.

[0197] In some embodiments, the memory device 230 includes a local media controller 250 that operates in conjunction with the memory subsystem controller 215 to perform operations on one or more memory cells of the memory device 230. An external controller (e.g., the memory subsystem controller 215) can externally manage the memory device 230 (e.g., perform media management operations on the memory device 230). In some embodiments, the memory device 230 is a managed memory device, which is a raw memory device combined with a local controller for media management (e.g., the local media controller 250) within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.

[0198] The controller 215 and / or the memory device 230 may include the security manager 213 discussed above. In some embodiments, the controller 215 and / or the local media controller 250 in the memory subsystem 210 may include at least a portion of the security manager 213. In other embodiments or combinations, the controller 216 and / or the processing device 218 in the host system 220 may include at least a portion of the security manager 213. For example, the controller 215, the controller 216, and / or the processing device 218 may include logic circuitry that implements the security manager 213. For example, the controller 215 or the processing device 218 (e.g., a processor) of the host system 220 may be configured to execute instructions stored in a memory to perform the operations of the security manager 213 described herein. In some embodiments, the security manager 213 is implemented in an integrated circuit chip disposed in the memory subsystem 210. In other embodiments, the security manager 213 may be part of the firmware of the memory subsystem 210, the operating system of the host system 220, a device driver or application, or any combination thereof.

[0199] Fig.12 An example machine of a computer system 400 is shown, within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 400 may correspond to a host system (e.g., Fig.11 220), which includes, is coupled to, or utilizes a memory subsystem (e.g., Fig.11 210), or may be used to perform operations of the security manager 213 (e.g., to execute instructions to perform operations corresponding to the reference Figure 1-8In some embodiments, the machine may be connected (e.g., using a network) to other machines. The machine may operate in the capacity of a server or a client machine in a client-server network environment, as a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.

[0200] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the machine. In addition, while a single machine is shown, the term "machine" shall also be taken to include any collection of machines that individually or collectively execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.

[0201] The example computer system 400 includes a processing device 402, a main memory 404 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), static random access memory (SRAM), etc.), and a data storage system 418, which communicate with each other via a bus 430 (which may include multiple buses).

[0202] The processing device 402 represents one or more general-purpose processing devices, such as a microprocessor, a central processing unit, etc. More specifically, the processing device can be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 402 can also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, etc. The processing device 402 is configured to execute instructions 426 for performing the operations and steps discussed herein. The computer system 400 may further include a network interface device 408 that communicates via a network 420.

[0203] The data storage system 418 may include a machine-readable medium 424 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 426 or software embodying any one or more of the methodologies or functions described herein. The instructions 426 may also reside completely or at least partially within the main memory 404 and / or within the processing device 402 during execution by the computer system 400, the main memory 404, and the processing device 402, which also constitute the machine-readable storage medium. The machine-readable medium 424, the data storage system 418, and / or the main memory 404 may correspond to Fig.11 Memory subsystem 210.

[0204] In one embodiment, instructions 426 include implementing instructions corresponding to security manager 213 (e.g., reference Figure 1-8 The term "machine-readable storage medium" should be taken to include any medium that is capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more of the methods of the present disclosure. The term "machine-readable storage medium" should therefore be taken to include, but not be limited to, solid-state memory, optical media, and magnetic media.

[0205] Some portions of the previous detailed description have been presented with respect to algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the most effective means for those skilled in the art of data processing to communicate the content of their work to others skilled in the art. Here and in general, an algorithm is conceived as a self-consistent sequence of operations that produce a desired result. The operations are those that require physical manipulation of physical quantities. Typically, but not necessarily, these quantities take the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has been demonstrated that it is sometimes convenient to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, etc., primarily for common reasons.

[0206] It should be borne in mind, however, that all of these and similar terms are associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.

[0207] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the desired purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk, including floppy disks, optical disks, CD-ROMs and magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, which are respectively coupled to a computer system bus.

[0208] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used in conjunction with the programs according to the teachings herein, or it may prove convenient to construct a more specialized device to perform the method. The structures for various of these systems will be presented from the description below. In addition, the present disclosure is not described with reference to any particular programming language. It should be appreciated that the teachings of the present disclosure as described herein may be implemented using a variety of programming languages.

[0209] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having stored thereon instructions that can be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory component, etc.

[0210] In this specification, in order to simplify the description, various functions and operations are described as being performed by computer instructions or caused by computer instructions. However, those skilled in the art will recognize that the intention of such expressions is that the functions are derived from the execution of computer instructions by one or more controllers or processors (e.g., microprocessors). Alternatively or in combination, the functions and operations can be implemented using a dedicated circuit system with or without software instructions, such as using an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). An embodiment can be implemented using a hard-wired circuit system without software instructions or in combination with software instructions. Therefore, the technology is neither limited to any specific combination of hardware circuit systems and software, nor to any specific source of instructions executed by a data processing system.

[0211] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments thereof. It will be apparent that various modifications may be made thereto without departing from the broader spirit and scope of the embodiments of the present disclosure as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative sense rather than a restrictive sense.

Claims

1. A method comprising: Protecting secrets in read-only memory in a computing device; generating, by the computing device, a first key pair having a first public key and a first private key using the secret, wherein the first public key is obtainable from the first private key via a first operation; communicating with the system via a computer network through the computing device to obtain a component containing instructions executable in the computing device; calculating, by the computing device, an intermediate key using information about the component installed in the computing device; combining, by the computing device, the intermediate key and the first private key via a second operation to generate a second private key in a second key pair, the second key pair having a second public key obtainable from the second private key via the first operation; as well as The second public key is transmitted to the system by the computing device to determine the correctness of the second public key provided by the computing device, wherein the system is configured to verify the correctness of the second public key provided by the computing device without access to the second private key.

2. The method of claim 1, wherein the first operation comprises multiplication by a predetermined number.

3. A method according to claim 2, wherein the second operation includes summing the intermediate key and the first private key; and the system is configured to verify the correctness of the second public key by calculating a version of the second public key by summing the first public key and an intermediate public key calculated from the intermediate key using the first operation.

4. The method of claim 2, wherein the second operation comprises multiplying the intermediate key by the first private key; and the system is configured to verify the correctness of the second public key by calculating a version of the second public key by multiplying the first public key by the intermediate key.

5. The method of claim 2, wherein the information about the component installed in the computing device includes an encrypted measurement of the component.

6. The method of claim 5, wherein the information about the components installed in the computing device further comprises context information unique to the computing device; wherein said information about said components installed in said computing device further comprises a secret derived from a key exchange over said computer network; wherein the key exchange is based on a peer-to-peer Diffie-Hellman (DH) key exchange protocol; wherein the component is a second component configured to run on top of a first component installed in the computing device; and the first key pair is configured as a composite device identifier of the first component running in the computing device; and the second key pair is configured as an alias key pair provided as a secret to the second component running in the computing device; and Wherein the method further comprises: In response to determining that the second public key provided by the computing device is incorrect, reinstalling the second component from the system over the computer network.

7. A computing device, comprising: communication devices; as well as A processor configured to: Generate an intermediate key from the input; combining the intermediate key with the first private key to generate a second private key; Calculating a second public key of the second private key; as well as The second public key is transmitted to a remote device for authentication using the communication device without the remote device having access to the second private key.

8. The computing device of claim 7, further comprising: a memory device configured with a secret unique to the memory device among a group of memory devices, wherein the processor is further configured to calculate the first private key from the secret; wherein the processor is further configured to communicate with the remote device over a computer network to establish the input as known to both the computing device and the remote device; wherein the input comprises a secret established via a Diffie-Hellman (DH) key exchange protocol; wherein the second public key can be calculated from the second private key by multiplying with a predetermined number; and the first public key can be calculated from the first private key by multiplying with the predetermined number; and The second private key is generated by summing the intermediate key and the first private key or multiplying the first private key and the intermediate key; and the second public key can be calculated from the first public key and the intermediate key without the first private key and the second private key.

9. A server system, comprising: a memory configured to store components of the computing device and a first public key; communication devices; as well as A processor configured to: transmitting the component to the computing device using the communication device so that the component is installed in the computing device, wherein the computing device is configured to calculate a second key pair including a second private key and a second public key from a first private key associated with the first public key in the first key pair; receiving the second public key from the computing device; as well as The correctness of the second public key is determined without data identifying the first private key and without data identifying the second private key.

10. The server system of claim 9, wherein the second key pair is calculated in the computing device using inputs known to both the server system and the computing device; wherein the input comprises a secret established according to a protocol of a Diffie-Hellman (DH) key exchange during transmission of the component to the computing device; and the input further comprises an encrypted measurement of the component installed in the computing device; and The second private key is generated by summing the intermediate key and the first private key or multiplying the first private key by the intermediate key; and the processor is further configured to calculate the intermediate key from the input and calculate a version of the second public key by summing the first public key and the public key of the intermediate key or multiplying the first public key by the intermediate key.

Citation Information

Cited By

  • Verifiable key exchange for cryptography

    US12739099B2

  • Verifiable Key Exchange for Cryptography

    US20260025260A1