Managing encryption keys per logical block on persistent memory device

By managing encryption keys in the memory subsystem using a key table of key labels and key identifiers, and leveraging a key cache, the complexity and performance impact of key management at the per-logical block level is addressed and implemented. Fast and accurate encryption and decryption processes.

CN118677696APending Publication Date: 2024-09-20MICRON TECHNOLOGY INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411003249.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-03-08
Filing Date
2022-03-04
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing memory subsystems face key management complexity and performance impact when managing encryption keys at the per-logical-block level, particularly the challenge of identifying the correct key during data encryption and decryption, and the potential for key corruption to Performance degrades.

Method used

Encryption key management by maintaining a key table of key labels and key identifiers, processing encryption keys on a per logical block basis, leveraging a key cache to enable fast access to large numbers of keys, and correcting data as it is read Verify the key identifier to ensure correct decryption.

Benefits of technology

It realizes that each logical block has its own encryption capability, quickly accesses a large number of keys without affecting the memory device performance, and ensures the accuracy of data decryption through key identifier verification, solving the key management complexity and performance impact. problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677696A
    Figure CN118677696A
Patent Text Reader

Abstract

The invention relates to managing encryption keys per logical block on a persistent memory device. A command to perform a data operation at a memory device is received. The command includes a cryptographic key tag. A first key table is accessed from a local memory. The first key table includes a first set of key entries corresponding to a first set of encryption keys. The first key table is searched to determine whether it contains an entry corresponding to the encryption key tag. A second key table is accessed from RAM based on a determination that the first key table does not include an entry corresponding to the tag. The second key table includes a second set of key entries corresponding to a second set of encryption keys. A key entry corresponding to the cryptographic key tag is identified from the second key table. The key entry includes an encryption key corresponding to the encryption key tag. The command is processed using the encryption key.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Information about divisional applications

[0002] This case is a divisional application. The parent case of the divisional application is an invention patent application with an application date of March 4, 2022, application number 202210208139.X, and invention name “Managing encryption keys for each logical block on a permanent memory device”. Technical Field

[0003] Embodiments of the present disclosure relate generally to memory subsystems, and more particularly to managing per-logical-block encryption keys on persistent memory devices in a memory subsystem. Background Art

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

[0005] In one aspect, the present application provides a system, comprising: a memory device; and a processing device, coupled to the memory device, the processing device being configured to perform operations including the following: receiving a command to perform a data operation at the memory device, the command including an encryption key tag; accessing a first key table from a local memory, the first key table including a first set of key entries corresponding to a first set of encryption keys; determining whether the first key table includes an entry corresponding to the encryption key tag; based on determining that the first key table does not include an entry corresponding to the tag, accessing a second key table including a second set of key entries corresponding to a second set of encryption keys from a random access memory (RAM); identifying a key entry corresponding to the encryption key tag from the second set of key entries, the key entry including an encryption key corresponding to the encryption key tag; and processing the command using the encryption key.

[0006] On the other hand, the present application provides a method, which includes: receiving a command at a processing device to perform a data operation at a memory device, the command including an encryption key tag; accessing a first key table from a local memory of the processing device, the first key table including a first set of key entries corresponding to a first set of encryption keys; searching the first key table by the processing device to determine whether the first key table includes an entry corresponding to the encryption key tag; accessing a second key table including a second set of key entries from a random access memory (RAM) in response to determining that the first key table does not include an entry corresponding to the tag; identifying a key entry corresponding to the encryption key tag from the second set of key entries, the key entry including an encryption key corresponding to the encryption key tag; and processing the command by the processing device using the encryption key.

[0007] In yet another aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed by a processing device, configure the processing device to perform operations comprising: receiving a command to perform a data operation at a memory device, the command comprising an encryption key tag, the data operation comprising a read operation or a write operation; accessing a first key table from a local memory, the first key table comprising a first set of key entries corresponding to a first set of encryption keys; determining that the first key table does not include an entry corresponding to the encryption key tag; based on determining that the first key table does not include an entry corresponding to the tag, accessing a second key table from a random access memory (RAM) comprising a second set of key entries corresponding to a second set of encryption keys; identifying a key entry corresponding to the encryption key tag from the second set of key entries, the key entry comprising an encryption key corresponding to the encryption key tag; and processing the command using the encryption key, the processing of the command comprising encrypting or decrypting data using the encryption key. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The present disclosure will be more fully understood from the detailed description given below and from the accompanying drawings of various embodiments of the present disclosure.

[0009] Figure 1 An example computing environment including a memory subsystem according to some embodiments of the present disclosure is shown.

[0010] Figure 2 is a block diagram illustrating operation of a memory subsystem performing key injection according to some embodiments.

[0011] Figure 3 is a block diagram illustrating the operation of a memory subsystem performing a write operation according to some embodiments of the present disclosure.

[0012] Figure 4A and4B is a block diagram illustrating the operation of a memory subsystem performing a read operation according to some embodiments of the present disclosure.

[0013] Figure 5 is a block diagram illustrating an example key cache used by a memory subsystem to manage encryption keys in accordance with some embodiments.

[0014] Figure 6 is a flow chart illustrating an example method for key injection in a memory subsystem according to some embodiments of the present disclosure.

[0015] Figure 7 , 8 , 9A and 9B are flowcharts illustrating example methods for managing encryption keys during data operations according to some embodiments of the present disclosure.

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

[0017] Various aspects of the present disclosure relate to managing encryption keys per logical block on a permanent memory device in a memory subsystem. The memory subsystem may be a storage device, a memory module, or a mixture of a storage device and a memory module. Figure 1 Examples of storage devices and memory modules are described. In general, a host system may utilize a memory subsystem that includes one or more components, such as memory devices, that store data. The host system may provide data to be stored at the memory subsystem and may request data to be retrieved from the memory subsystem.

[0018] The memory device may be a non-volatile memory device. An example of a non-volatile memory device is a NAND memory device. Figure 1 Other examples of non-volatile memory devices are described. Some memory devices, such as NAND memory devices, include an array of memory cells (e.g., flash cells) to store data. Each cell includes a transistor, and within each cell, data is stored as a threshold voltage of the transistor. The memory cells in these devices may be grouped into pages, which may refer to logical units of the memory device to store data. For example, the memory cells in a NAND memory device are horizontally connected to word lines at their control gates to form pages. In the case of some types of memory devices (e.g., NAND), the pages are grouped to form blocks (also referred to herein as "memory blocks").

[0019] Data operations may be performed by the memory subsystem. Data operations may be host-initiated operations. For example, the host system may initiate data operations (e.g., write, read, erase, etc.) on the memory subsystem. The host system may send access requests (e.g., write commands, read commands) to the memory subsystem in order to store data on a memory device at the memory subsystem and read data from a memory device on the memory subsystem.

[0020] Current storage methods add additional information called metadata to the user data. This metadata is stored in the permanent memory of the memory device along with the user data. When the host system requests the user data, the metadata is retrieved. Currently, metadata is often used to add protection information to the user data that allows the memory subsystem to determine whether the user data has been corrupted or whether the correct data is being returned.

[0021] The data encryption boundaries on memory devices are becoming more and more granular. Initially, a single encryption key was used to encrypt the entire memory device. This was followed by technologies such as the Trusted Computing Group Opal specification, which allowed a large number of encryption bands to be established on devices, each with a separate encryption key. Current technologies and initiatives now allow each logical block on a memory device to have its own key. This increasingly smaller encryption granularity is being driven by initiatives such as the EU General Data Protection Regulation (GDPR) "right to be forgotten", containerization of applications in cloud storage services where data must be securely partitioned, and many other applications.

[0022] This new approach to encrypting data on memory devices creates challenges in key management. For example, with these modern approaches to encrypting data, it is a challenge to identify the key used to encrypt the data to ensure that the correct key is used to decrypt the data. Furthermore, since data encryption (write operations) and decryption (read operations) are part of the primary data path of the memory device and will have a significant impact on the performance of the device, the keys need to be quickly accessible.

[0023] Aspects of the present disclosure handle encryption key management on a per-logical-block basis by maintaining a key table that tracks encryption keys within a memory subsystem using key tags and key identifiers. More specifically, a key table maintained by the memory subsystem includes a set of key entries, and each key entry includes an encryption key and a key identifier associated with the encryption key. The key table is indexed by the key tags, and the key tags are used by the memory subsystem to perform fast lookups of encryption keys. Each key identifier is a globally unique identifier for a corresponding encryption key. The globally unique key identifier of the key used to encrypt user data may be added to metadata that may be used to ensure that the correct key is available to decrypt the user data. In addition, to provide fast access to a large number of keys, the memory subsystem further utilizes a key cache for storing a large number of keys that may be quickly accessed.

[0024] Key corruption can occur through a variety of mechanisms, including transient errors and firmware coding errors. While the memory subsystem may not be able to determine if the wrong key is being used for a write operation, it is possible for the memory subsystem to determine if the wrong key is being used to read the data. To do this, a key identifier is stored with the encrypted data and the key identifier is verified when the data is read back to determine if it matches the key identifier being used to decrypt the data.

[0025] By utilizing a key table in the manner described herein, the memory subsystem enables each logical block on the memory device to have its own encryption. Utilization of a key cache further enables the memory subsystem to maintain a large number of keys and quickly access the keys without significantly affecting device performance.

[0026] Figure 1 An example computing system 100 is shown that includes a memory subsystem 110 according to some embodiments of the present disclosure. Memory subsystem 110 may include media such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination of these.

[0027] The memory subsystem 110 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 controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).

[0028] Computing system 100 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, a drone, a train, a car, or other transportation), an Internet of Things (IoT) enabled device, an embedded computer (e.g., included in a vehicle, industrial equipment, or one of a networked business device), or such a computing device that includes a memory and a processing device.

[0029] The computing system 100 may include multiple host systems coupled to one or more memory subsystems 110. In some embodiments, the host systems 120 are coupled to memory subsystems 110 of different types. Figure 1 An example host system 120 is shown coupled to one memory subsystem 110. 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 intervening components), whether wired or wireless, including connections such as electrical, optical, magnetic, etc.

[0030] Each host system 120 may include a processor chipset 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., an NVDIMM controller), and a storage protocol controller (e.g., a peripheral component interconnect express (PCIe) controller, a serial advanced technology attachment (SATA) controller). The host system 120 may use the memory subsystem 110, such as writing data to the memory subsystem 110 and reading data from the memory subsystem 110.

[0031] The host system 120 may be coupled to the memory subsystem 110 via a host interface. Examples of the host interface include, but are not limited to, a SATA interface, a PCIe interface, a USB interface, a Fibre Channel, a Serial Attached SCSI (SAS), a Small Computer System Interface (SCSI), a Double Data Rate (DDR) memory bus, a DIMM interface (e.g., a DIMM socket interface supporting Double Data Rate (DDR)), an Open NAND Flash Interface (ONFI), Double Data Rate (DDR), Low Power Double Data Rate (LPDDR), or any other interface. The host interface may be used to transfer data between the host system 120 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 120 through a PCIe interface, any of the host systems 120 may further utilize an NVM Express (NVMe) interface to access components (e.g., the memory device 130). The host interface may provide an interface for passing control, address, data, and other signals between the memory subsystem 110 and the host system 120. Figure 1Memory subsystem 110 is shown as an example. In general, host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.

[0032] The memory devices 130, 140 may include any combination of different types of non-volatile memory devices and / or volatile memory devices. Volatile memory devices (e.g., memory device 140) 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).

[0033] Some examples of non-volatile memory devices (e.g., memory device 130) include NAND-type flash memory and write-in-place memory, such as a three-dimensional (3D) cross-point memory device, which is a cross-point array of non-volatile memory cells. The 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 memory can perform write-in-place operations in which non-volatile memory cells can be programmed without first erasing the non-volatile memory cells. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and 3D NAND.

[0034] Each of the memory devices 130 may include one or more memory cell arrays. One type of memory cell, such as 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 of the memory devices 130 may include one or more memory cell arrays, such as SLC, MLC, TLC, QLC, or any combination of these. In some embodiments, a particular memory device may include an SLC portion, an MLC portion, a TLC portion, a QLC portion, or a PLC portion of a memory cell. The memory cells of the memory device 130 may be grouped into pages that may refer to logical units of a memory device used to store data. For example, the memory cells in a NAND memory device are horizontally connected to word lines at their control gates to form pages. In the case of some types of memory (e.g., NAND), pages may be grouped to form blocks. Additionally, word lines within a memory device may be organized into multiple word line groups, each of which includes one or more word lines, but each word line group includes fewer word lines than included in a block.

[0035] Although nonvolatile memory components such as NAND-type flash memory (e.g., 2D NAND, 3D NAND) and 3D cross-point nonvolatile memory cell arrays are described, the memory device 130 may be based on any other type of nonvolatile memory, such as read-only memory (ROM), phase-change memory (PCM), self-selected 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).

[0036] The memory subsystem controller 115 (or, for simplicity, controller 115) may communicate with the memory device 130 to perform operations such as reading data, writing data, or erasing data at the memory device 130, as well as other such operations. The memory subsystem controller 115 may include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The hardware may include digital circuitry with dedicated (i.e., hard-coded) logic to perform the operations described herein. The memory subsystem controller 115 may be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor.

[0037] The memory subsystem controller 115 may include a processor 117 (processing device) configured to execute instructions stored in a local memory 119. In the example shown, the local memory 119 of the memory subsystem controller 115 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 110, including handling communications between the memory subsystem 110 and the host system 120.

[0038] In some embodiments, local memory 119 may include memory registers that store memory pointers, fetched data, etc. Local memory 119 may also include ROM for storing microcode. Figure 1 The example memory subsystem 110 in FIG. 1 has been shown as including a memory subsystem controller 115, but in another embodiment of the present disclosure, the memory subsystem 110 does not include a memory subsystem controller 115, but may rely on external control (e.g., provided by an external host, or provided by a processor or controller separate from the memory subsystem).

[0039] In general, the memory subsystem controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130 and / or the memory device 140. The memory subsystem controller 115 may be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and ECC operations, encryption operations, cache operations, and address conversion between logical addresses (e.g., logical block addresses (LBA), name spaces) and physical addresses (e.g., physical block addresses) associated with the memory device 130. The memory subsystem controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system 120 into command instructions to access the memory device 130 and / or the memory device 140, and convert responses associated with the memory device 130 and / or the memory device 140 into information for the host system 120.

[0040] In some embodiments, memory device 130 includes a local media controller 135 that operates in conjunction with memory subsystem controller 115 to perform operations on one or more memory cells of memory device 130 .

[0041] The memory subsystem 110 also includes a key management component 113, which is responsible for managing encryption keys on a per-block basis. As an example, when a command for a data operation is received by the memory subsystem 110, the key management component 113 identifies an encryption key to be used to perform an encryption operation that facilitates the data operation based on a key tag included with the command. For a write operation, the identified encryption key is used to encrypt data written to one of the memory devices 130 or 140, and for a read operation, the identified encryption key is used to decrypt the encrypted data read from one of the memory devices 130 or 140. The encryption key may be specifically associated with a block or other logical unit to which the data is written or from which the data is read. The key management component 113 utilizes a key cache for storing a large number of keys that can be quickly accessed. Other details about the operation of the multi-level key cache and the key management component 113 are described below.

[0042] In some embodiments, the memory subsystem controller 115 includes at least a portion of the key management component 113. For example, the memory subsystem controller 115 may include a processor 117 (processing device) configured to execute instructions stored in a local memory 119 for performing the operations described herein. In some embodiments, at least a portion of the key management component 113 is part of a host system 120, an application, or an operating system.

[0043] Figure 2 1 is a block diagram illustrating the operation of the memory subsystem controller 115 performing key injection according to some embodiments. As shown, the host system 120 encrypts the encryption key 200 and generates a key injection command 202, which includes the encrypted encryption key 200, the key tag 204, the key identifier 205, and information about how the encryption key 200 is encrypted. The host system 120 provides the key injection command 202 to the memory subsystem controller 115.

[0044] Based on receiving the key injection command 202, the key management component 113 decrypts the encryption key 200 and injects a new key entry of the encryption key 200 into the key table 206. The key table 206 may include a set of key entries indexed by a key tag, and each key entry includes an encryption key and a key identifier. Therefore, the new key entry includes the encryption key 200 and the key identifier 205 included in the key injection command 202. The key entry of the encryption key 200 is inserted into the key table 206 at the index defined by the key tag 204.

[0045] Figure 3 1 is a block diagram illustrating the operation of the memory subsystem 110 performing a write operation according to some embodiments of the present disclosure. As shown, the host system 120 provides a command including data 300 and a key tag 302 associated with an encryption key to the memory subsystem controller 115. In response to receiving the command, the key management component 113 of the memory subsystem controller 115 searches the key table 304 to identify a key entry corresponding to the key tag 302. The key entry in the key table 304 that matches the key tag 302 includes a key identifier 306 and an encryption key 308. The encryption component 310 of the key management component 113 encrypts the data 300 using the encryption key 308 corresponding to the matching entry in the key table 304, and the memory subsystem controller 115 stores the encrypted data 312 in the memory device 130 together with the key identifier 306.

[0046] Figure 4A and 4B 1 is a block diagram illustrating the operation of the memory subsystem 110 performing a read operation according to some embodiments of the present disclosure. Figure 4A , the host system 120 provides a command to read data from the memory device 130 to the memory subsystem controller 115. The command includes a key tag 400 associated with an encryption key. In response to the command, the memory subsystem controller 115 reads the encrypted data 402 and the corresponding key identifier 404 from the memory device 130.

[0047] The key management component 113 searches the key table 406 to identify a key entry corresponding to the key tag 400 included in the read command. The key entry in the key table 406 that matches the key tag 400 includes a key identifier 408 and an encryption key 410. Because key corruption can occur through a variety of mechanisms, including transient errors and firmware coding errors, the key identifier 408 is stored with the encrypted data 402 so that when the encrypted data 402 is read back, the key management component 113 can determine whether it matches the key identifier of the encryption key to be used to decrypt the encrypted data 402. Therefore, the key management component 113 performs a key identifier check 412 to determine whether the key identifier 408 in the key table 406 matches the key identifier 404 stored with the encrypted data 402. If the key identifier 404 does not match the key identifier 408, the key management component 113 returns an error message to the host system 120. If the key identifiers 404 , 408 match, then the decryption component 414 of the key management component 113 decrypts the encrypted data 402 using the encryption key 410 .

[0048] like Figure 4B , in some embodiments, the encrypted data 402 and the key identifier 404 may also be protected by an error correction code (ECC) 416. According to these embodiments, an ECC check 418 is performed prior to decryption of the encrypted data 402. If the ECC check 418 fails, the memory subsystem controller 115 returns an error message to the host system 120. If the ECC check 418 passes, the encrypted data 402 is decrypted by the decryption component 414 using the encryption key 410, as described above.

[0049] refer to Figure 5 , an example key table and key cache used by the key management component 113 of the memory subsystem controller 115 to manage encryption keys are shown, according to some embodiments. As shown, the key management component 113 can utilize two key tables. The first key table, the hardware key table 500, includes a first set of key entries having n entries. Each key entry in the hardware key table 500 includes an encryption key, a key tag associated with the encryption key, and a unique identifier of the encryption key. The hardware key table 500 can be stored in the local memory 119 of the memory subsystem controller 115 to provide extremely fast access to the key management component 113.

[0050] The second key table, RAM key table 550, includes a second set of key entries including k entries. As with the hardware key table 500, each entry in the RAM key table 550 includes an encryption key, a key tag associated with the encryption key, and a unique identifier for the encryption key. The RAM key table 550 is a fast key cache that is substantially larger than the hardware key table 500 (e.g., k>n) but takes longer to access. In addition, when a key requested by the host system 120 is not in the hardware key table 500, the key management component 113 transfers a new key from the RAM key table 550 to the hardware key table 500 to process the data operation. This RAM key table 550 can be implemented in a fast RAM close to the memory subsystem controller 115 (e.g., low access time).

[0051] Figure 6 6 is a flowchart illustrating an example method 600 for key injection in a memory subsystem according to some embodiments of the present disclosure. The method 600 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 600 is performed by Figure 1 The key management component 113 of executor is executed. Although the processes are shown in a specific order or sequence, the order of the processes can be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes can be performed in different orders, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in each embodiment. Other process flows are possible.

[0052] At operation 605, the processing device receives a key injection command. The key injection command includes an encryption key, a key identifier, and a key tag. The key injection command may be received from a host system (eg, host system 120).

[0053] At operation 610, based on receiving the key injection command, the processing device accesses a RAM key table from the RAM. The RAM key table includes a set of key entries, and each key entry includes an encryption key, a key identifier, and a key tag. At operation 615, the processing device inserts a new key entry into the RAM key table based on the RAM key table having space available for at least one new entry. The new key entry includes the encryption key, the key identifier, and the key tag included in the key injection command.

[0054] If the RAM key table is full, the processing device selects an existing key entry in the RAM key table to replace (at operation 620), and the processing device replaces the existing key entry with the new key entry at operation 625. As an example, the processing device may select the existing key entry to replace based on recent use of the corresponding encryption key (e.g., the least recently used entry).

[0055] Figure 7 700 is a flowchart illustrating an example method for managing encryption keys during data operations according to some embodiments of the present disclosure. The method 700 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 700 is performed by Figure 1 The key management component 113 of executor is executed. Although the processes are shown in a specific order or sequence, the order of the processes can be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes can be performed in different orders, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in each embodiment. Other process flows are possible.

[0056] At operation 705, the processing device receives a command to perform a data operation at a memory device (e.g., memory device 130). The command may be a command to read data from the memory device (read command) or a command to write data to the memory device (write command). The command includes a key tag associated with an encryption key used to process the command. The command is received from a host system (e.g., host system 120).

[0057] At operation 710, the processing device uses the key tag included in the command to identify an encryption key from a key table maintained by the processing device, and at operation 715, the processing device uses the encryption key to process the command. For example, the processing device may use the encryption key to encrypt data before writing it to the memory device or to decrypt data read from the memory device. If the processing device is unable to identify the encryption key using the key tag, the processing device returns an error in response to the command.

[0058] like Figure 8, according to some embodiments, method 700 may include operations 805, 810, 815, 820, 825, 830, 835, and 840. According to these embodiments, operation 805 may be performed as part of operation 705 in which a processing device receives a command to perform a data operation. At operation 805, the processing device receives a command to write data to a memory device (e.g., memory device 130). As noted above, the command includes a key tag associated with an encryption key.

[0059] According to these embodiments, operations 810, 815, 820, and 825 may be performed as part of operation 710 in which the processing device identifies the encryption key using the key tag.

[0060] At operation 810, the processing device accesses a first key table (e.g., hardware key table 500) from a local memory (e.g., local memory 119). The first key table includes a first set of key entries corresponding to a first set of encryption keys. Each key entry in the first set of key entries includes an encryption key, an identifier of the encryption key, and a tag associated with the encryption key.

[0061] At operation 815, the processing device searches the first key table to determine whether the first key table includes a key entry corresponding to the key tag included in the write command. At operation 820, based on determining that the first key table does not include an entry corresponding to the key tag, the processing device accesses a second key table (e.g., RAM key table 550) from RAM. The second key table includes a second set of key entries corresponding to a second set of encryption keys. As with the first set of key entries, each key entry in the second set of key entries includes an encryption key, an identifier of the encryption key, and a tag associated with the encryption key.

[0062] At operation 825 , the processing device searches the second key table to determine whether the second key table contains a key entry corresponding to the key tag contained in the write command.

[0063] According to these embodiments, any of operations 830, 835, and 840 may be performed as part of operation 715 in which the processing device processes the command. Based on determining at operation 825 that the second key table does not include an entry corresponding to the key tag, the processing device returns an error in response to the write command at operation 830.

[0064] Based on identifying (at operation 825 ) a key entry in the second key table that matches the key tag, the processing device encrypts the data using the encryption key corresponding to the matching entry in the second key table at operation 835 .

[0065] Based on identifying (at operation 815 ) a key entry in the first key table that matches the key tag, the processing device encrypts the data at operation 840 using the encryption key corresponding to the matching entry in the first key table.

[0066] like Fig. 9A and 9B , method 700 may include operations 905, 910, 915, 920, 925, 930, 935, 940, 945, 950, 955, 960, and 965. According to these embodiments: operation 905 may be performed as part of operation 705 in which a processing device receives a command to perform a data operation; operations 915, 920, 925, 940, 945, and 955 may be performed as part of operation 710 in which the processing device identifies an encryption key corresponding to a key tag in the command; and any of operations 930, 935, 960, or 965 may be performed as part of operation 715 in which the processing device processes the command.

[0067] At operation 905, the processing device receives a command to read data from a memory device (e.g., memory device 130). The command includes a key tag associated with an encryption key. At operation 910, in response to the command, the processing device reads the encrypted data and the corresponding encryption key identifier.

[0068] At operation 915, the processing device accesses a first key table (e.g., hardware key table 500) from a local memory (e.g., local memory 119). The first key table includes a first set of key entries corresponding to a first set of encryption keys. Each key entry in the first set of key entries includes an encryption key, an identifier of the encryption key, and a tag associated with the encryption key.

[0069] At operation 920, the processing device searches the first key table to determine whether the first key table contains a key entry corresponding to the key tag contained in the write command. At operation 925, based on identifying the key entry in the first key table that matches the key tag, the processing device determines whether the key identifier stored with the encrypted data matches the key identifier contained in the key entry. If the key identifiers do not match, the processing device returns an error in response to the command at operation 930.

[0070] If the key identifiers match, then the processing device decrypts the data at operation 935 using the encryption key corresponding to the matching entry in the first key table.

[0071] refer to Fig. 9BAt operation 940, based on determining that the first key table does not include an entry corresponding to the key tag, the processing device accesses a second key table (e.g., RAM key table 550) from the RAM. The second key table includes a second set of key entries corresponding to the second set of encryption keys. As with the first set of key entries, each key entry in the second set of key entries includes an encryption key, an identifier of the encryption key, and a tag associated with the encryption key.

[0072] At operation 945, the processing device searches the second key table to determine whether the second key table includes a key entry corresponding to the key tag included in the read command. At operation 950, based on identifying a key entry in the second key table that matches the key tag, the processing device replaces an existing entry in the first key table with the identified key entry from the second key table. As an example, the processing device may select an existing key entry to replace based on the most recent use of the corresponding encryption key (e.g., the least recently used entry).

[0073] At operation 955, the processing device determines whether the key identifier stored with the encrypted data matches the key identifier contained in the key entry. If the keys match, the processing device decrypts the encrypted data at operation 960 using the encryption key corresponding to the key entry identified from the second key table.

[0074] If the key identifiers do not match or if the second key table does not contain a key entry that matches the key tag contained in the command, then the processing device returns an error in response to the command at operation 965 .

[0075] In view of the above disclosure, various examples are described below. It should be noted that one or more features of the examples taken independently or in combination should be considered to be within the disclosure of the present application.

[0076] Example 1 is a system, comprising: a memory device; and a processing device, coupled to the memory device, the processing device configured to perform operations including the following: receiving a command to perform a data operation at the memory device, the command including an encryption key tag; accessing a first key table from a local memory, the first key table including a first set of key entries corresponding to a first set of encryption keys; determining whether the first key table includes an entry corresponding to the encryption key tag; based on determining that the first key table does not include an entry corresponding to the tag, accessing a second key table from a random access memory RAM including a second set of key entries corresponding to a second set of encryption keys; identifying a key entry corresponding to the encryption key tag from the second set of key entries, the key entry including an encryption key corresponding to the encryption key tag; and processing the command using the encryption key.

[0077] Example 2 includes the system of example 1, wherein: the command comprises a command to write data to the memory device; and the processing of the command comprises encrypting the data using the encryption key.

[0078] Example 3 includes a system according to any one or more of Examples 1 or 2, wherein: the command includes a command to read data from the memory device; and the processing of the command includes using the encryption key to decrypt the encrypted data read from the memory device.

[0079] Example 4 includes a system according to any one or more of Examples 1 to 3, wherein the operation further comprises: reading the encrypted data and a key identifier from the memory device; and determining that the key identifier read from the memory device matches a key identifier included in the key entry.

[0080] Example 5 includes a system according to any one or more of Examples 1 to 4, wherein: the command is a first command to perform a first data operation; the encryption key tag is a first encryption key tag; the encryption key is a first encryption key; and the operation further includes: receiving a second command to perform a second data operation at the memory device, the second command including a second encryption key tag.

[0081] Example 6 includes a system according to any one or more of Examples 1 to 5, wherein the operation further includes: determining that the first key table includes a key entry corresponding to the second encryption key tag, the key entry corresponding to the second encryption key tag including the second encryption key; and processing the second command using the second encryption key.

[0082] Example 7 includes a system according to any one or more of Examples 1 to 6, wherein: the second command includes a command to read data from the memory device; and the operation further includes: reading encrypted data and a key identifier from the memory device; and determining that the key identifier read from the memory device matches the key identifier contained in the key entry.

[0083] Example 8 includes the system of any one or more of Examples 1-7, wherein the operations further include returning an error in response to the second command based on determining that the first key table and the second key table do not include a key entry corresponding to the second encryption key tag.

[0084] Example 9 includes a system according to any one or more of Examples 1 to 8, wherein: the second command includes a command to read data from the memory device; and the operation further includes: reading encrypted data and a key identifier from the memory device; determining that the first key table includes a key entry corresponding to the second encryption key tag, the key entry corresponding to the second encryption key tag including the second encryption key; and returning an error in response to the second command based on determining that the key identifier read from the memory device does not match the key identifier contained in the key entry corresponding to the second encryption key tag.

[0085] Example 10 includes a system according to any one or more of Examples 1 to 9, wherein the operations further include: determining that the first key table does not include a key entry corresponding to the second encryption key tag; identifying a key entry from the second key table corresponding to the second encryption key tag; and replacing an existing key entry in the first key table with the key entry from the second key table corresponding to the second encryption key tag.

[0086] Example 11 is a method, which includes: receiving a command at a processing device to perform a data operation at a memory device, the command including an encryption key tag; accessing a first key table from a local memory of the processing device, the first key table including a first set of key entries corresponding to a first set of encryption keys; searching the first key table by the processing device to determine whether the first key table includes an entry corresponding to the encryption key tag; accessing a second key table including a second set of key entries from a random access memory RAM in response to determining that the first key table does not include an entry corresponding to the tag; identifying a key entry corresponding to the encryption key tag from the second set of key entries, the key entry including an encryption key corresponding to the encryption key tag; and processing the command by the processing device using the encryption key.

[0087] Example 12 includes the method of example 11, wherein: the command comprises a command to write data to the memory device; and the processing of the command comprises encrypting the data using the encryption key.

[0088] Example 13 includes a method according to any one or more of Examples 11 or 12, wherein: the command includes a command to read data from the memory device; and the processing of the command includes using the encryption key to decrypt the encrypted data read from the memory device.

[0089] Example 14 includes a method according to any one or more of Examples 11 to 13, and further includes: reading the encrypted data and a key identifier from the memory device; and determining that the key identifier read from the memory device matches a key identifier included in the key entry.

[0090] Example 15 includes a method according to any one or more of Examples 11 to 14, wherein: the command is a first command to perform a first data operation; the encryption key tag is a first encryption key tag; the encryption key is a first encryption key; and the method further includes: receiving a second command to perform a second data operation at the memory device, the second command including a second encryption key tag.

[0091] Example 16 includes a method according to any one or more of Examples 11 to 15, and further includes: determining that the first key table includes a key entry corresponding to the second encryption key tag, the key entry corresponding to the second encryption key tag including the second encryption key; and processing the second command using the second encryption key corresponding to the key entry in the first key table.

[0092] Example 17 includes a method according to any one or more of Examples 11 to 16, wherein: the second command includes a command to read data from the memory device; and the method further includes: reading encrypted data and a key identifier from the memory device; and determining that the key identifier read from the memory device matches the key identifier contained in the key entry.

[0093] Example 18 includes the method of any one or more of Examples 11-17, and further includes returning an error in response to the second command based on determining that the first key table and the second key table do not include a key entry corresponding to the second encryption key tag.

[0094] Example 19 includes a method according to any one or more of Examples 11 to 18, wherein: the second command includes a command to read data from the memory device; and the method further includes: reading encrypted data and a key identifier from the memory device; determining that the first key table includes a key entry corresponding to the second encryption key tag, the key entry corresponding to the second encryption key tag including the second encryption key; and returning an error in response to the second command in response to determining that the key identifier read from the memory device does not match the key identifier contained in the key entry corresponding to the second encryption key tag.

[0095] Example 20 is a computer-readable storage medium comprising instructions, which, when executed by a processing device, configure the processing device to perform operations including the following: receiving a command to perform a data operation at a memory device, the command including an encryption key tag, the data operation including a read operation or a write operation; accessing a first key table from a local memory, the first key table including a first set of key entries corresponding to a first set of encryption keys; determining that the first key table does not include an entry corresponding to the encryption key tag; based on determining that the first key table does not include an entry corresponding to the tag, accessing a second key table from a random access memory RAM including a second set of key entries corresponding to a second set of encryption keys; identifying a key entry corresponding to the encryption key tag from the second set of key entries, the key entry including an encryption key corresponding to the encryption key tag; and processing the command using the encryption key, the processing of the command including encrypting or decrypting data using the encryption key.

[0096] Fig.10 An example machine is shown in the form of a computer system 1000 within which a set of instructions may be executed, for causing the machine to perform any one or more of the methodologies discussed herein. Fig.10 An example machine is shown in the form of a computer system 1000 within which a set of instructions 1026 may be executed for causing the machine to perform any one or more of the methodologies discussed herein. In some embodiments, the computer system 1000 may correspond to a host system (e.g., Figure 1 ) that includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 The memory subsystem 110 of the controller may be used to execute the operation of the controller (for example, execute the operating system to execute the corresponding Figure 1 In some embodiments, the machine may be connected (e.g., using a network) to other machines in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a client-server network environment.

[0097] 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 such machine capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the machine. Further, while a single machine is illustrated, the term "machine" shall also be construed to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.

[0098] The example computer system 1000 includes a processing device 1002, a main memory 1004 (e.g., ROM, flash memory, DRAM such as SDRAM or RDRAM, etc.), a static memory 1006 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 1018 that communicate with each other via a bus 1030.

[0099] The processing device 1002 represents one or more general-purpose processing devices, such as a microprocessor, a central processing unit, and the like. More specifically, the processing device 1002 may 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 1002 may also be one or more special-purpose processing devices, such as an ASIC, an FPGA, a digital signal processor (DSP), a network processor, and the like. The processing device 1002 is configured to execute instructions 1026 for performing the operations and steps discussed herein. The computer system 1000 may further include a network interface device 1008 to communicate via a network 1020.

[0100] The data storage system 1018 may include a machine-readable storage medium 1024 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 1026 or software embodying any one or more of the methodologies or functions described herein. The instructions 1026 may also reside, completely or at least partially, within the main memory 1004 and / or within the processing device 1002 during execution thereof by the computer system 1000, the main memory 1004 and the processing device 1002 also constituting machine-readable storage media. The machine-readable storage medium 1024, the data storage system 1018, and / or the main memory 1004 may correspond to Figure 1 Memory subsystem 110.

[0101] In one embodiment, instructions 1026 include instructions for implementing a command corresponding to a security component (e.g., Figure 11026). Although the machine-readable storage medium 1024 is shown as a single medium in the example embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions 1026. The term "machine-readable storage medium" should also be considered to include any medium 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. Therefore, the term "machine-readable storage medium" should be considered to include, but not be limited to, solid-state memory, optical media, and magnetic media.

[0102] 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 means by which those skilled in the art of data processing use the substance of their work to most effectively communicate to others skilled in the art. An algorithm is here and generally considered to be a self-consistent series of operations that produce a desired result. The operations are operations that require physical manipulation of physical quantities. These quantities are usually, but not necessarily, in the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. Sometimes, primarily for general reasons, it has proven convenient to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, etc.

[0103] It should be borne in mind, however, that all of these and similar terms should be 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.

[0104] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the required purposes, 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, each coupled to a computer system bus, such as, but not limited to, any type of disk including a floppy disk, an optical disk, a CD-ROM, and a magnetic optical disk, a ROM, a RAM, an EPROM, an EEPROM, a magnetic card or an optical card, or any type of medium suitable for storing electronic instructions.

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

[0106] 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 ROM, RAM, magnetic disk storage media, optical storage media, flash memory components, etc.

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

Claims

1. A system comprising: Memory device; and a processing device coupled to the memory device, the processing device being configured to perform operations comprising: receiving a command to perform a data operation at the memory device, the command including an encryption key tag; accessing a first key table from a local memory, the first key table comprising a first set of key entries corresponding to a first set of encryption keys; accessing from a random access memory RAM a second key table including a second set of key entries corresponding to a second set of encryption keys based on determining that the first key table does not contain an entry corresponding to the encryption key tag; identifying a key entry corresponding to the encryption key tag from the second set of key entries; and An existing key entry in the first key table is replaced with the key entry from the second key table corresponding to the encryption key tag.

2. The system of claim 1, wherein: The key entry from the second key table includes an encryption key from the second set of encryption keys; and The operations further include processing the command using the encryption key.

3. The system of claim 2, wherein: The commands include commands to write data to the memory device; and The processing of the command includes encrypting the data using the encryption key.

4. The system of claim 2, wherein the operations further comprise: reading the encrypted data and key identifier from the memory device; and A determination is made that the key identifier read from the memory device matches a key identifier contained in the key entry, wherein processing the command is responsive to a determination that the key identifier read from the memory device matches the key identifier contained in the key entry.

5. The system of claim 2, wherein the operations further comprise: reading the encrypted data and key identifier from the memory device; and determining that the key identifier read from the memory device does not match a key identifier contained in the key entry; and In response to the command, an error is returned based on a determination that the key identifier read from the memory device does not match a key identifier included in the key entry.

6. The system of claim 1, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The operations further include: receiving a second command to read data from the memory device, the second command comprising a second encryption key tag; and reading encrypted data and a key identifier from the memory device based on the second command; determining that the first key table contains an entry corresponding to the second encryption key tag, the entry including a second encryption key; Based on determining that the key identifier read from the memory device matches a key identifier included in the entry in the first key table corresponding to the second encryption key tag, the encrypted data read from the memory device is decrypted using the second encryption key.

7. The system of claim 1, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The operations further include: receiving a second command to read data from the memory device, the second command comprising a second encryption key tag; and reading encrypted data and a key identifier from the memory device based on the second command; determining that the first key table contains an entry corresponding to the second encryption key tag; and In response to the second command, an error is returned based on a determination that the key identifier read from the memory device does not match a key identifier included in the entry in the first key table corresponding to the second encryption key tag.

8. The system of claim 1, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The operations further include: receiving a second command to write data to the memory device, the second command including a second encryption key tag; and determining that the first key table contains an entry corresponding to the second encryption key tag, the entry comprising an encryption key; and Based on determining that the first key table contains the entry corresponding to the second encryption key tag, the data is encrypted using the encryption key in the entry of the first key table corresponding to the second encryption key tag.

9. The system of claim 1, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The operations further include: receiving a second command to write data to the memory device, the second command including a second encryption key tag; and determining whether the second key table contains an entry corresponding to the second encryption key tag based on determining that the first key table does not contain an entry corresponding to the second encryption key tag; Based on determining whether the second key table contains the entry corresponding to the second encryption key tag, the data is encrypted using an encryption key in the entry of the second key table corresponding to the second encryption key tag.

10. The system of claim 1, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The operations further include: receiving a second command to write data to the memory device, the second command including a second encryption key tag; and determining whether the second key table contains an entry corresponding to the second encryption key tag based on determining that the first key table does not contain an entry corresponding to the second encryption key tag; In response to the second command, an error is returned based on a determination that the second key table does not contain an entry corresponding to the second encryption key tag.

11. A method comprising: receiving a command to perform a data operation at a memory device, the command including an encryption key tag; accessing a first key table from a local memory, the first key table comprising a first set of key entries corresponding to a first set of encryption keys; accessing from a random access memory RAM a second key table including a second set of key entries corresponding to a second set of encryption keys based on determining that the first key table does not contain an entry corresponding to the encryption key tag; identifying a key entry corresponding to the encryption key tag from the second set of key entries; and An existing key entry in the first key table is replaced with the key entry from the second key table corresponding to the encryption key tag.

12. The method according to claim 11, wherein: The key entry from the second key table includes an encryption key from the second set of encryption keys; and The operations further include processing the command using the encryption key.

13. The method according to claim 12, wherein: The commands include commands to write data to the memory device; and The processing of the command includes encrypting the data using the encryption key.

14. The method according to claim 12, further comprising: reading the encrypted data and key identifier from the memory device; and A determination is made that the key identifier read from the memory device matches a key identifier contained in the key entry, wherein processing the command is responsive to a determination that the key identifier read from the memory device matches the key identifier contained in the key entry.

15. The method according to claim 12, further comprising: reading the encrypted data and key identifier from the memory device; and determining that the key identifier read from the memory device does not match a key identifier contained in the key entry; and In response to the command, an error is returned based on a determination that the key identifier read from the memory device does not match a key identifier included in the key entry.

16. The method of claim 11, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The method further comprises: receiving a second command to read data from the memory device, the second command comprising a second encryption key tag; and reading encrypted data and a key identifier from the memory device based on the second command; determining that the first key table contains an entry corresponding to the second encryption key tag, the entry including a second encryption key; Based on determining that the key identifier read from the memory device matches a key identifier included in the entry in the first key table corresponding to the second encryption key tag, the encrypted data read from the memory device is decrypted using the second encryption key.

17. The method of claim 11, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The method further comprises: receiving a second command to read data from the memory device, the second command comprising a second encryption key tag; and reading encrypted data and a key identifier from the memory device based on the second command; determining that the first key table contains an entry corresponding to the second encryption key tag; and In response to the second command, an error is returned based on a determination that the key identifier read from the memory device does not match a key identifier included in the entry in the first key table corresponding to the second encryption key tag.

18. The method of claim 11, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The method further comprises: receiving a second command to write data to the memory device, the second command including a second encryption key tag; and determining that the first key table contains an entry corresponding to the second encryption key tag, the entry comprising an encryption key; and Based on determining that the first key table contains the entry corresponding to the second encryption key tag, the data is encrypted using the encryption key in the entry of the first key table corresponding to the second encryption key tag.

19. The method of claim 11, wherein: The command is a first command; The encryption key tag is a first encryption key tag; and The method further comprises: receiving a second command to write data to the memory device, the second command including a second encryption key tag; and determining whether the second key table contains an entry corresponding to the second encryption key tag based on determining that the first key table does not contain an entry corresponding to the second encryption key tag; Based on determining whether the second key table contains the entry corresponding to the second encryption key tag, the data is encrypted using an encryption key in the entry of the second key table corresponding to the second encryption key tag.

20. A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, configure the processing device to perform operations comprising: receiving a command to perform a data operation at a memory device, the command including an encryption key tag; accessing a first key table from a local memory, the first key table comprising a first set of key entries corresponding to a first set of encryption keys; accessing from a random access memory RAM a second key table including a second set of key entries corresponding to a second set of encryption keys based on determining that the first key table does not contain an entry corresponding to the encryption key tag; identifying a key entry corresponding to the encryption key tag from the second set of key entries; and An existing key entry in the first key table is replaced with the key entry from the second key table corresponding to the encryption key tag.

Citation Information

Cited By

  • Managing encryption keys per logical block on a persistent memory device

    US12505259B2