Cryptographic key management

By encrypting the cryptographic key before storing it and storing it in non-volatile memory, the security of the memory subsystem is enhanced, the problem of key loss and reduced data security after power outage is solved, and efficient encryption and data encryption are achieved. Decryption management.

CN118606971APending Publication Date: 2024-09-06MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410759153.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2020-06-26
Filing Date
2020-07-14
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing memory subsystems cannot retain cryptographic keys after a power outage, resulting in encrypted data being inaccessible, and non-volatile memory components can be accessed by third parties or firmware, reducing data security.

Method used

Use hardware components to generate and manage cryptographic keys by encrypting cryptographic keys before storing them and storing the encrypted keys in non-volatile memory, using secondary cryptographic keys and initialization vectors when necessary Decrypted and stored in volatile memory.

Benefits of technology

It improves the security of the password key, prevents third parties or firmware from accessing the decryption key, ensures that data can still be recovered after a power outage, and strengthens the security of the memory subsystem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606971A_ABST
    Figure CN118606971A_ABST
Patent Text Reader

Abstract

The invention relates to cryptographic key management. A memory device may issue a command through a firmware component to generate a first cryptographic key for encrypting or decrypting user data stored on the memory device. The memory device may generate, by a hardware component, the first cryptographic key based on the command. The memory device may encrypt, by the hardware component, the first cryptographic key using a second cryptographic key and an initialization vector. The memory device may store the encrypted first cryptographic key in a non-volatile memory device separate from the hardware component.
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 July 14, 2020, application number 202010677024.6, and invention name “Cryptographic Key Management”.

[0003] Cross Application

[0004] This patent application claims priority to U.S. patent application No. 16 / 913,748, entitled “CRYPTOGRAPHIC KEY MANAGEMENT,” filed by Li et al. on June 26, 2020, which claims the benefit of U.S. Provisional Patent Application No. 62 / 874,437, entitled “CRYPTOGRAPHIC KEY MANAGEMENT,” filed by Li et al. on July 15, 2019, each of which is assigned to the present assignee and is expressly incorporated herein by reference in its entirety. Technical Field

[0005] The technical field relates to cryptographic key management for memory subsystems. Background Art

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

[0007] A method is described. The method may include: issuing, by a firmware component, a command to generate a first cryptographic key for encrypting or decrypting user data stored on a memory device; generating, by a hardware component, the first cryptographic key based at least in part on the command; encrypting, by the hardware component, the first cryptographic key using a second cryptographic key and an initialization vector; and storing the encrypted first cryptographic key in a non-volatile memory device separate from the hardware component.

[0008] A system is described. The system may include: a random information generator configured to generate a first cryptographic key for encrypting or decrypting user data stored on a memory device; a volatile memory device configured to store the first cryptographic key; an encryption engine configured to encrypt the first cryptographic key using a second cryptographic key and an initialization vector; and a buffer configured to store the encrypted first cryptographic key during transmission of the encrypted first cryptographic key associated with the system and firmware components.

[0009] A method is described. The method may include: receiving, by a firmware component, an encrypted first cryptographic key and a second cryptographic key from a non-volatile memory device, wherein the encrypted first cryptographic key is used to encrypt or decrypt user data stored on the memory device; decrypting, by a hardware component, the encrypted first cryptographic key using the second cryptographic key and an initialization vector; and storing the first cryptographic key in a volatile memory device on the hardware component based at least in part on decrypting the encrypted first cryptographic key.

[0010] A system is described. The system may include a memory subsystem configured to: issue, by a firmware component, a command to generate a first cryptographic key for encrypting or decrypting user data stored on a memory device; generate, by a hardware component, the first cryptographic key based at least in part on the command; encrypt, by the hardware component, the first cryptographic key using a second cryptographic key and an initialization vector; and store the encrypted first cryptographic key in a non-volatile memory device separate from the hardware component.

[0011] A system is described. The system may include a memory subsystem configured to: receive, by a firmware component, an encrypted first cryptographic key and a second cryptographic key from a non-volatile memory device, wherein the encrypted first cryptographic key is used to encrypt or decrypt user data stored on the memory device; decrypt, by a hardware component, the encrypted first cryptographic key using the second cryptographic key and an initialization vector; and store the first cryptographic key in a volatile memory device on the hardware component based at least in part on decrypting the encrypted first cryptographic key. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 An example of a computing environment according to the examples disclosed herein is shown.

[0013] Figures 2 to 4 An example of a system supporting cryptographic key management according to examples disclosed herein is shown.

[0014] Figure 5 and 6 An example method of supporting cryptographic key management according to examples disclosed herein is shown.

[0015] Figure 7 A block diagram of a memory subsystem supporting cryptographic key management in accordance with aspects of the present disclosure is shown.

[0016] Figures 8 to 11 The flowchart shown illustrates one or more methods of supporting cryptographic key management according to examples disclosed herein.

[0017] Fig.12 An example machine of a computer system supporting cryptographic key management according to examples disclosed herein is shown. DETAILED DESCRIPTION

[0018] Aspects of the present disclosure relate to cryptographic key management. A 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 can utilize a memory subsystem that includes one or more memory components. The host system can provide data to be stored at the memory subsystem and can request to retrieve data from the memory subsystem.

[0019] The host system may send an access request to the memory subsystem, for example, to store data at the memory subsystem and read data from the memory subsystem. The data to be read and written is referred to as "user data" hereinafter. The host request may include a logical address (e.g., a logical block address (LBA)) of the user data, which is a location associated with the user data by the host system. The logical address (e.g., LBA) may be part of the metadata of the user data. The data stored at the memory subsystem (e.g., user data and corresponding metadata) may be encrypted by an encryption key (e.g., a cryptographic key for encrypting the data). This may improve the security of the data stored at the memory subsystem. Protecting the data may, for example, reduce the possibility that a third-party device or in some cases the firmware of the memory subsystem may access the data. When the host device accesses the data, the memory subsystem may decrypt the data before transmitting the data to the host device. The memory subsystem may store cryptographic keys (e.g., encryption keys and decryption keys) at a volatile memory device (e.g., requiring power to store data). If the memory subsystem is powered off, the memory subsystem cannot retain the cryptographic keys stored at the volatile memory device. In the absence of the cryptographic keys, the encrypted data may not be accessible. In addition, the non-volatile memory component can be accessed by a third party or the firmware of the memory subsystem. Therefore, storing the cryptographic key at the non-volatile memory component reduces the security of the encrypted data.

[0020] Various aspects of the present disclosure address the above and other deficiencies by encrypting the cryptographic key before storing it in a non-volatile memory device. Encrypting the cryptographic key before storing it in the non-volatile memory device can improve the security of the cryptographic key. That is, a third party or even firmware associated with the memory subsystem cannot access the decrypted cryptographic key.

[0021] The memory subsystem may include a hardware component (e.g., a key manager) for managing the generation and storage of cryptographic keys. The memory subsystem may instruct the hardware component to generate a pair of cryptographic keys (e.g., an encryption key and a corresponding decryption key). The hardware component may generate a pair of cryptographic keys using a randomization technique and store the pair of cryptographic keys at a volatile memory device. The hardware component may then encrypt the cryptographic key using a second cryptographic key (e.g., a public key) and an initialization vector. In some cases, the hardware component may generate error correction information for the encrypted cryptographic key. The hardware component may transmit a pair of cryptographic keys (e.g., via a firmware component) and a second cryptographic key to be stored at a volatile memory device. In some cases, the hardware component may also transmit error correction information to be stored in a volatile memory device.

[0022] When the hardware component is started or powered up (e.g., after being connected to a power source), the hardware component may receive the encrypted cryptographic key and the second cryptographic key from the non-volatile memory device. In some cases, the hardware component may also receive error correction information associated with the encrypted cryptographic key. The hardware component may perform an error correction operation on the encrypted cryptographic key using the error correction information to detect and / or correct errors within the encrypted cryptographic key. The hardware component may then decrypt the encrypted cryptographic key using the second cryptographic key and the initialization vector. The hardware component may store the cryptographic key on the volatile memory device and provide the cryptographic key for various access operations between the memory subsystem and the host device as needed.

[0023] First, in reference Figure 1 Features of the present disclosure are described in the context of the computing environment described. Figures 2 to 6 Features of the present disclosure are described in the context of the systems and methods described herein. Figures 7 to 12 The described computer diagrams related to cryptographic key management further illustrate and describe these and other features of the present disclosure.

[0024] Figure 1An example of a computing environment 100 according to examples disclosed herein is shown. The computing environment can include a host system 105 and a memory subsystem 110. The memory subsystem 110 can include media such as one or more non-volatile memory devices (e.g., memory device 130), one or more volatile memory devices (e.g., memory device 140), or a combination thereof.

[0025] 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 devices (UFS) drives, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and non-volatile dual in-line memory modules (NVDIMMs).

[0026] The computing environment 100 can include a host system 105 coupled to a memory system. The memory system can be one or more memory subsystems 110. In some examples, the host system 105 is coupled to memory subsystems 110 of different types. Figure 1 An example of a host system 105 coupled to a memory subsystem 110 is shown. The host system 105 uses the memory subsystem 110, for example, to write data to the memory subsystem 110 and read data from the 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 connections, optical connections, magnetic connections, etc.

[0027] The host system 105 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 means of transportation), an embedded system, an Internet of Things (IoT) device, or such computing devices that include a memory and a processing device. The host system 105 may be coupled to the memory subsystem 110 using a physical host interface. Examples of physical host interfaces 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, Fibre Channel, Serial Attached SCSI (SAS), and the like. The physical host interface may be used to transfer data between the host system 105 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 105 via a PCIe interface, the host system 105 may further utilize an NVM Express (NVMe) interface to access memory components (e.g., the memory device 130). The physical host interface may provide an interface for transferring control, address, data, and other signals between the memory subsystem 110 and the host system 105.

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

[0029] Examples of non-volatile memory devices (e.g., memory device 130) include 3D cross-point flash memory, which is a cross-point array of non-volatile memory cells. The cross-point array of non-volatile memory can be combined with a stackable cross-grid data access array to perform bit storage based on changes in body resistance. In addition, compared to many flash-based memories, cross-point non-volatile memory can perform write-in-place operations, where non-volatile memory cells can be programmed without having to erase the non-volatile memory cells in advance.

[0030] Although non-volatile memory components such as 3D cross-point type memory are described, the memory device 130 can be based on any other type of non-volatile memory, such as negative AND (NAND), read-only memory (ROM), phase change memory (PCM), self-selected memory, other chalcogenide-based memories, ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), negative OR (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0031] In some embodiments, each of the memory devices 130 may include one or more memory cell arrays, such as single-level cells (SLC) or multi-level cells (MLC), such as triple-level cells (TLC) or quad-level cells (QLC). In some instances, a particular memory component may include an SLC portion of memory cells, as well as an MLC portion, a TLC portion, or a QLC portion. Each of the memory cells may store one or more bits of data used by the host system 105. In addition, the memory cells of the memory devices 130 may be grouped into memory pages or memory blocks, which may refer to a unit of a memory component for storing data.

[0032] The memory subsystem controller 115 may communicate with the memory device 130 to perform operations such as reading data, writing data, or erasing data and other such operations at the memory device 130. 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 memory subsystem controller 115 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 other suitable processor.

[0033] The memory subsystem controller 115 may include a processor 120 (e.g., a processing device) configured to execute instructions stored in a local memory 125. In the example shown, the local memory 125 of the memory subsystem controller 115 includes an embedded memory configured to store instructions for performing various processes, operations, logic flows, and routines to control the operation of the memory subsystem 110, including controlling communications between the memory subsystem 110 and the host system 105.

[0034] In some examples, local memory 125 may include memory registers that store memory pointers, retrieved data, etc. Local memory 125 may also include read-only memory (ROM) for storing microcode. Figure 1 The example memory subsystem 110 in FIG. 1 has been shown to include a memory subsystem controller 115, but in another example of the present disclosure, the memory subsystem 110 may not include a memory subsystem controller 115, but may rely on external control (e.g., provided by an external host, or by a processor or controller separate from the memory subsystem).

[0035] In general, the memory subsystem controller 115 may receive commands or operations from the host system 105, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130. The memory subsystem controller 115 may be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and correction code (ECC) operations, encryption operations, cache operations, and address conversion between logical addresses (e.g., logical block addresses (LBAs)) and physical addresses associated with the memory device 130. The memory subsystem controller 115 may also include a host interface circuit system to communicate with the host system 105 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 130, and convert responses associated with the memory device 130 into information for the host system 105.

[0036] The memory subsystem 110 may also include additional circuitry or components not shown. In some examples, the memory subsystem 110 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 memory subsystem controller 115 and decode the addresses to access the memory device 130.

[0037] In some embodiments, the memory device 130 includes a local media controller 135 that operates in conjunction with the memory subsystem controller 115 to perform operations on one or more memory units of the memory device 130. An external controller (e.g., the memory subsystem controller 115) may externally manage the memory device 130 (e.g., perform media management operations on the memory device 130). In some embodiments, the memory device 130 may be a locally managed memory device, which is a raw memory device combined with a local media controller 135 that performs memory management operations on the memory device 130 within the same memory device package.

[0038] The memory subsystem 110 includes a key manager 150 that can manage cryptographic keys used to encrypt or decrypt user data stored on the memory device 130 or 140. In some examples, the memory subsystem controller 115 includes at least a portion of the key manager 150. For example, the memory subsystem controller 115 can include a processor 120 (e.g., a processing device) configured to execute instructions stored in the local memory 125 for performing the operations described herein. In some examples, the key manager 150 is part of the host system 105, an application, or an operating system.

[0039] The key manager 150 may generate and store cryptographic keys. The cryptographic keys may be used to improve the security of data stored at the memory devices 130 and 140. For example, a first cryptographic key may encrypt data to be stored at the memory device 130 or 140, and a second cryptographic key may decrypt data read from the memory device 130 or 140. If the key manager 150 is powered off, the key manager 150 may not retain the stored cryptographic keys. Without the cryptographic keys, the encrypted data (e.g., data stored at the memory devices 130 and / or 140) may not be accessible. In addition, the non-volatile memory component may be accessed by a third party or firmware of the memory subsystem. Therefore, storing the cryptographic keys at the non-volatile memory component may reduce the security of the encrypted data. Therefore, the key manager 150 may encrypt the cryptographic keys and store the encrypted cryptographic keys at the non-volatile memory device. Encrypting the cryptographic keys before storing them at the non-volatile memory device may improve the security of the cryptographic keys. That is, the decrypted cryptographic keys may not be accessible to a third party or even firmware associated with the memory subsystem 110. Additional details regarding the operation of key manager 150 are described below.

[0040] Figure 2 An example of a system 200 supporting cryptographic key management according to an example disclosed herein is shown. The system 200 may include the system 200 of the embodiment disclosed herein. Figure 1 For example, the system 200 may include: a host device 205, which may be as described in reference Figure 1 The host system 105 is described as an example; the memory subsystem 210, which may be as described in reference Figure 1 10, memory device 130, or memory device 140; and a key manager 225, which may be as described in reference Figure 1 An example of a key manager 150 is described. The system 200 may further include non-volatile memory 215 .

[0041] The host device 205 may transmit an access command to the memory subsystem 210. For example, the host device 205 may transmit a write command to the memory subsystem 210. The write command may include data to be written to a memory array at the memory subsystem 210. In another example, the host device 205 may transmit a read command to the memory subsystem 210. When executing the read command, the memory subsystem 210 may access the memory array of the memory subsystem 210, read data from the memory array, and transmit the data to the host device 205.

[0042] The memory subsystem 210 (e.g., a memory device) may include a data manager 220, a key manager 225, a firmware component 230, and an interface 235. The data manager 220 may manage access operations (e.g., initiated based on commands received from the host device 205). For example, the data manager 220 may receive access commands from the host device 205, access a memory array based on the access commands, and in some cases (e.g., in the case of a write operation) transmit data to the host device 205. The memory subsystem 210 may encrypt data stored at the memory subsystem 210 to increase security associated with the data. A hardware component at the memory subsystem 210 (e.g., a key manager 225) may manage cryptographic key storage and security. For example, the key manager 225, the interface 235, and the firmware component 230 may enable the memory subsystem 210 to encrypt (and decrypt) data stored at the memory subsystem 210.

[0043] The firmware component 230 may facilitate communication between the data manager 220 and the key manager 225. During the execution of an access operation, the data manager 220 may transmit a key request to the key manager 225. The key request may include a request for a cryptographic key for encrypting data or a cryptographic key for decrypting data. The data manager 220 may transmit the key request to the firmware component 230. The firmware component 230 may generate a command to provide the requested key to the data manager 220. The firmware component 230 may transmit the command to the key manager 225 via the interface 235. Based on receiving the command, the key manager 225 may transmit the requested cryptographic key to the data manager 220 (e.g., via the interface 235 and the firmware component 230).

[0044] In another example, data manager 220 may request the generation of one or more new cryptographic keys. Here, data manager 220 may communicate the request to firmware component 230. Firmware component 230 may generate a command indicating the generation of one or more new cryptographic keys. Firmware component 230 may communicate the command to key manager 225 via interface 235. Key manager 225 may randomly generate cryptographic keys and store the cryptographic keys at a volatile memory device (e.g., at key manager 225). In some cases, key manager 225 does retain the cryptographic keys at the volatile memory device when key manager 225 is disconnected from power. Without access to the cryptographic keys, user data encrypted by the cryptographic keys cannot be decrypted, thereby making the user data inaccessible.

[0045] The key manager 225 may store the cryptographic key at the non-volatile memory 215. Storing the cryptographic key at the non-volatile memory 215 may enable the memory subsystem 210 to recover the encrypted data stored at the memory subsystem 210 when the key manager 225 is disconnected from power. However, the data stored at the non-volatile memory 215 may be accessed by third parties and the firmware component 230. As a result, the security provided by the encrypted user data may be reduced because the encryption and decryption keys may be accessed at the non-volatile memory 215. Before storing the cryptographic key at the non-volatile memory 215, the key manager 225 may encrypt the cryptographic key using a second cryptographic key (e.g., a public key) and an initialization vector. The key manager 225 may transmit the encrypted cryptographic key (e.g., via the interface 235 and the firmware component 230) and the second cryptographic key for storage at the non-volatile memory 215. Encrypting the cryptographic key may improve the security of the user data. In some cases, the key manager 225 may generate error correction information for the encrypted cryptographic key. Key manager 225 may also transmit error correction information for storage in non-volatile memory 215 .

[0046] When the key manager 225 is powered back on (e.g., when the key manager 225 is powered on or started), the key manager 225 may receive the encrypted cryptographic key and the second cryptographic key from the non-volatile memory 215 (e.g., via the firmware component 230 and the interface 235). In some cases, the key manager 225 may also receive error correction information associated with the encrypted cryptographic key. The key manager 225 may perform error correction operations on the encrypted cryptographic key using the error correction information to detect and / or correct errors within the encrypted cryptographic key. The key manager 225 may then decrypt the encrypted cryptographic key using the second cryptographic key and the initialization vector. The key manager 225 may store the cryptographic key at a volatile memory device (e.g., at the key manager 225) and provide cryptographic keys for various access operations between the memory subsystem 210 and the host device 205.

[0047] Figure 3 An example of a system 300 supporting cryptographic key management according to an example disclosed herein is shown. The system 300 may include the system 300 described herein. Figure 1 and 2 For example, the system 300 may include: a key manager 325, which may be as described in reference Figure 1 and 2 An instance of the key manager 150 or key manager 225 described above; an interface 335, which may be as described in reference Figure 2 An example of the interface 235 described; and a firmware component 330, which may be as described in reference Figure 2 The system 300 may be an example of a system 300 at a memory device, which may be as described in reference to Figure 1 and 2 Examples of memory subsystem 110 or memory subsystem 210 are depicted.

[0048] Key manager 325 may receive commands from firmware component 330 via interface 335. Interface 335 may be an example of a memory access interface. Buffer 305 may receive commands from interface 335 and temporarily store the commands. For example, firmware component 330 may issue a command to generate a cryptographic key set. For example, a host device (e.g., reference Figure 2 The host device 205 described above may transmit a write command to a memory device including a key manager 325 (eg, reference Figure 2 The memory subsystem 210 described above. The firmware component 330 may issue a command to generate a set of cryptographic keys to encrypt data associated with a write command (and subsequently decrypt the encrypted data). The interface 335 may transmit the command to generate the cryptographic keys to the key manager 325 via the buffer 305. The control logic 315 may detect the command and indicate the command to the random data generator 320.

[0049] The random data generator 320 can be a random number generator that generates a random number to be used as a cryptographic key or as a part of generating a cryptographic key. For example, if the random data generator 320 (e.g., through the control logic 315) receives a command to generate a pair of cryptographic keys, the random data generator 320 can generate a first random number for an encryption key and a corresponding number for a decryption key. The random data generator 320 can transmit the encryption key to the volatile memory device 345-a and transmit the decryption key to the volatile memory device 345-b. That is, the volatile memory device 345-a can store the cryptographic key for encrypting data, and the volatile memory device 345-b can store the cryptographic key for decrypting data.

[0050] The random data generator 320 may communicate the cryptographic key through the logic component 340. The logic component 340 may be a multiplexer configured to select which input (e.g., from the random data generator 320 or the decryption engine 365) is output to the volatile memory device 345. The control logic 315 may control which output (e.g., from the random data generator 320 or the decryption engine 365) is propagated to the volatile memory device 345. In the event that the random data generator 320 is generating the cryptographic key, the logic component 340 may output the cryptographic key from the random data generator 320 (e.g., instead of from the decryption engine 365). For example, the logic component 340-a may propagate the encryption key generated by the random data generator 320 for storage at the volatile memory device 345-a, and the logic component 340-b may propagate the decryption key generated by the random data generator 320 for storage at the volatile memory device 345-b.

[0051] The key manager 325 may provide cryptographic keys to a data manager (e.g., Figure 2 The key manager 325 may provide the data manager with the requested encryption key from the volatile memory device 345-a or the requested decryption key from the volatile memory device 345-b based on the received request.

[0052] The volatile memory device 345 may be a static random access memory (SRAM) memory device. That is, the volatile memory device 345 may store data when connected to a power source. However, if the volatile memory device 345 is disconnected from the power source, the volatile memory device 345 loses the stored data value. In some cases, the data stored at the volatile memory device 345 may be protected by an error correction code (ECC). In this case, error correction information associated with the cryptographic key may be generated before the cryptographic key is stored at the volatile memory device 345. In addition, the error correction information may be stored at the volatile memory device 345 together with the cryptographic key. In some cases, the error correction information may be stored at the same portion of the volatile memory device 345 as the cryptographic key. Additionally or alternatively, the error correction information may be stored at a different portion within the volatile memory device 345 than the cryptographic key.

[0053] The volatile memory device 345 may output the cryptographic key to the encryption engine 350. In some cases, the volatile memory device 345 may output the cryptographic key for storage at a non-volatile memory (e.g., external to the key manager 325). In some cases, before transmitting the cryptographic key to the encryption engine 350, the error correction engine 370 may perform an error correction operation on the cryptographic key stored at the volatile memory device 345 to detect and / or correct errors within the cryptographic key. For example, the volatile memory device 345 may transmit the cryptographic key and associated error correction information to the error correction engine 370. The error correction engine 370 may correct the errors detected within the cryptographic key and write the corrected cryptographic key back to the volatile memory device 345. In some cases, the error correction engine 370 may indicate (e.g., to the control logic 315) whether the number of errors detected in the cryptographic key satisfies a threshold number of errors. The threshold number of errors may correspond to the number of errors that can be corrected by the error correction engine 370. If the error correction engine 370 detects an error that cannot be corrected, the error correction engine 370 may indicate to the control logic 315 that the number of errors has met the threshold.

[0054] The encryption engine 350 may encrypt the cryptographic key received from the volatile memory device 345. The encryption engine may encrypt the cryptographic key using a second cryptographic key (e.g., a public key). The second cryptographic key may be stored at the register 310. Here, the encryption engine 350 may receive the second cryptographic key from the register 310. The encryption engine 350 may further encrypt the cryptographic key using an initialization vector. The encryption engine 350 may generate an initialization vector based on the cryptographic key, and encrypt the cryptographic key using the initialization vector and the second cryptographic key. The encryption engine 350 may transmit the encrypted cryptographic key to the error correction encoder 355.

[0055] The error correction encoder 355 may perform error correction operations to generate error correction information associated with the encrypted cryptographic key. The error correction encoder 355 may transmit the encrypted cryptographic key and the associated error correction information to the buffer 305. The buffer 305 may temporarily store the encrypted cryptographic key and the associated error correction information before transmitting the cryptographic key and the error correction information to the interface 335. The interface 335 may transmit the encrypted cryptographic key and the associated error correction information to the firmware component 330. The firmware component 330 may transmit the encrypted cryptographic key and the error correction information to a non-volatile memory device (e.g., external to the key manager 325\external to the memory device).

[0056] When the key manager 325 is reconnected to a power source (e.g., after a power outage), the key manager 325 can load the encrypted cryptographic key from the non-volatile memory component. The firmware component 330 can transmit the second cryptographic key (e.g., a public key), the encrypted cryptographic key, and the error correction information associated with the encrypted cryptographic key to the interface 335. The interface 335 can transmit the second cryptographic key (e.g., a public key) to the register 310. The interface 335 can transmit the encrypted cryptographic key and the error correction information associated with the encrypted cryptographic key to the buffer 305. The buffer 305 can transmit the encrypted cryptographic key and the error correction information associated with the encrypted cryptographic key to the error correction decoder 360. The error correction decoder 360 can perform an error correction operation on the encrypted cryptographic key to detect and / or correct errors within the cryptographic key using the error correction information. The error correction decoder 360 can correct the errors detected within the encrypted cryptographic key and transmit the corrected cryptographic key to the decryption engine 365. In some cases, the error correction decoder 360 may indicate (e.g., to the control logic 315) whether the number of errors detected in the encrypted cryptographic key satisfies a threshold number of errors. The threshold number of errors may correspond to the number of errors that can be corrected by the error correction decoder 360. If the error correction decoder 360 detects errors that cannot be corrected, the error correction decoder 360 may indicate to the control logic 315 that the number of errors has satisfied the threshold.

[0057] The decryption engine 365 may receive the second cryptographic key (e.g., from the register 310) and generate an initialization vector associated with the encrypted cryptographic key. The decryption engine 365 may decrypt the encrypted cryptographic key using the second cryptographic key and the initialization vector. The decryption engine 365 may transmit the cryptographic key (e.g., the decrypted cryptographic key) to the volatile memory device 345 through the logic component 340. For example, the decryption engine 365 may transmit the encryption key (e.g., through the logic component 340-a) to the volatile memory device 345-a, and transmit the decryption key to the volatile memory device 345-b through the logic component 340-b. In some cases, the control logic 315 may instruct the logic component 340 to propagate the cryptographic key from the decryption engine 365 to the volatile memory device 345. In some cases, the cryptographic key may be protected by ECC. Here, error correction information associated with the cryptographic key may be generated before the cryptographic key is stored at the volatile memory device 345 (e.g., by the error correction engine 370).

[0058] In some cases, the firmware component 330 may instruct the key manager 325 to update one or more cryptographic keys. For example, in the case where the error correction engine 370 or the decryption engine 365 indicates (e.g., to the control logic 315) that the number of errors detected meets a threshold, the control logic 315 may propagate the indication to the firmware component 330. Here, the firmware component 330 may generate a command to erase the previous cryptographic key and generate a new cryptographic key. The firmware component 330 may transmit the command to the key manager 325. The control logic 315 may receive the command (e.g., through the buffer 305 and the interface 335) and instruct the random data generator 320 to generate a new cryptographic key. The random data generator 320 may generate a new cryptographic key based on receiving the indication from the control logic 315. In some cases, the random data generator 320 may compare the new cryptographic key with the previous cryptographic key to determine that the randomly generated new cryptographic key is different from the previous cryptographic key. If the new cryptographic key is the same as the previous cryptographic key, the random data generator 320 may generate a second new cryptographic key. The random data generator 320 may transmit the new cryptographic key to the volatile memory device 345. The key manager 325 may also encrypt the new cryptographic key and transmit the encrypted new cryptographic key to the firmware component 330 for storage at the non-volatile memory component.

[0059] Figure 4 An example of a system 400 supporting cryptographic key management according to an example disclosed herein is shown. The system 400 may include the system 400 described herein. Figures 1 to 3 For example, system 400 may include a host device 405, which may be a host device such as a Figure 1 and 2 The host system 105 or host device 205 described in the example; the memory subsystem 410, which can be as described in reference Figure 1 and 2 An example of the memory subsystem 110 or the memory subsystem 210 described above; a data manager 420, which may be as described in reference Figure 2 An example of the data manager 220 described; a memory controller 440, which may be as described in reference Figure 1 An example of the memory subsystem controller 115 or the local media controller 135 described above; a key manager 425, which may be as described in reference Figures 1 to 3 An instance of the key manager 150, 225, or 325 described; an interface 435, which may be as described in reference Figure 2 and 3 An example of the interface 235 or 335 described; and a firmware component 430, which may be as described in reference Figure 2 and 3An example of firmware component 230 or 330 is described. System 400 may further include a memory array 450 , an encoder 445 , and a decoder 455 .

[0060] The data path refers to the logical process or path that user data and metadata follow as they move throughout the memory subsystem. The data path in the memory subsystem processes read and write data commands received from the host system. The data path contains the complete end-to-end process that data takes when it is written to or read from the underlying memory device. The control path refers to the logical process or path that, for example, provides different control signals to components on the data path to control the way the data path operates normally. The control path and data path contain digital circuitry, registers, and interconnecting buses.

[0061] The memory subsystem 410 (e.g., a memory device) may receive access commands from the host device 405. The data manager 420 may manage the execution of the access commands. That is, the data manager may manage data paths (e.g., paths for writing data to and reading data from the memory device). For example, the memory subsystem 410 may receive a write command from the host device 405 to write data to the memory array 450. In another example, the memory subsystem 410 may receive a read command from the host device 405 to read data from the memory array 450 and transmit the data to the host device 405. The memory subsystem 410 may encrypt data stored at the memory array 450 to increase the security associated with the data.

[0062] During a write operation, the memory controller 440 may receive a write command and data to be written to the memory array 450. In order to encrypt the data to be written to the memory array 450, the memory subsystem 410 may request an encryption key from the key manager 425. The memory subsystem 410 may transmit a key request 460 to the firmware component 430. The key request may request a cryptographic key (e.g., an encryption key) for encrypting the data before writing the data to the memory array 450. The firmware component 430 may propagate the key request 460 to the key manager 425 through the interface 435. The key manager 425 may provide a cryptographic key (e.g., an encryption key) based on receiving the key request 460. In some cases, the key manager 425 may generate a new key based on the key request 460. For example, the firmware component 430 may determine that the key manager 425 does not store a cryptographic key for encrypting the data. Therefore, the firmware component 430 may generate a command for the key manager 425, the command being for generating a cryptographic key. In some other cases, key manager 425 may store the cryptographic key, and firmware component 430 may indicate key request 460 to key manager 425 .

[0063] The key manager 425 may communicate the requested key 415-a (or in some cases, a newly generated cryptographic key) to the encoder 445 through the interface 435 and the firmware component 430. In some cases, the key manager 425 may further communicate an initialization vector associated with the key 415-a. The encoder 445 may encrypt data to be stored at the memory array 450 using the key 415-a (e.g., an encryption key) and the initialization vector. The encoder 445 may communicate the encrypted data to the memory array 450. The memory controller 440 may facilitate writing the encrypted data to the memory array 450 according to the write command.

[0064] During a read operation, the memory controller 440 may receive a read command from the host device 405. In order to use the data, the memory subsystem 410 may decrypt the data stored at the memory array 450. The memory subsystem 410 may request a decryption key from the key manager 425 by transmitting a key request 460 to the firmware component 430. The firmware component 430 may propagate the key request 460 to the key manager 425 via the interface 435. The key manager 425 may provide the requested key 415-b to the decoder 455. The key manager 425 may further provide an initialization vector associated with the key 415-b to the decoder 455. The decoder 455 may receive the data (e.g., associated with the read command) and decrypt the data using the initialization vector and the key 415-b. The decoder 455 may transmit the decrypted data to the memory controller 440, which in turn may transmit the decrypted data to the host device 405 according to the read command.

[0065] Figure 5 An example of method 500 is shown. Method 500 may be performed by processing logic, which may include hardware (e.g., a processing device, digital circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, method 500 is performed by Figure 1 The key manager of the embodiment of the present invention is executed. Although shown in a specific sequence or order, the order of the processes can be modified unless otherwise stated. Therefore, the embodiments shown should be understood as examples only, and the processes shown can be performed in a different order, 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 every embodiment. Other process flows are also possible.

[0066] At 505, the key manager may program a key register. In some cases, the key manager may program the key register based on a command to generate one or more cryptographic keys. For example, the firmware component may issue a command to the key manager to generate one or more cryptographic keys (e.g., from the firmware component). In some cases, the firmware component may issue the command based on initializing the memory subsystem. Additionally or alternatively, the firmware component may issue the command based on the memory subsystem receiving a write command from the host device. The command may instruct the key manager to generate a certain number of cryptographic keys. The key register may be a register at the key manager (e.g., referenced to Figure 3 The key manager may program the key register to contain a second cryptographic key (eg, a public key). In some cases, the key manager may receive the second cryptographic key from a firmware component.

[0067] At 510, the key manager may determine whether each key has been generated. For example, if a command (e.g., issued by a firmware component) instructs the key manager to generate 100 cryptographic keys, the key manager may determine whether the 100 keys have been generated. If all cryptographic keys have not been generated, the key manager may generate a key (e.g., generated by a random number generator) and return to 510. If all cryptographic keys have been generated, the key manager may proceed to 515.

[0068] At 515, the key manager may determine whether each key has been encrypted. That is, each generated cryptographic key may be encrypted using a second cryptographic key (e.g., stored at a key register) and an initialization vector. Encrypting the cryptographic keys may improve the security of the memory subsystem. If not all cryptographic keys are encrypted, the key manager may encrypt one of the generated keys (e.g., referring to Figure 3 As described, at the encryption engine 350), and then returns to 515. Alternatively, if all cryptographic keys have been encrypted, the key manager can proceed to 520.

[0069] At 520, a memory subsystem, such as a memory subsystem controller, may determine whether all keys have been stored at a memory device (e.g., a non-volatile memory device external to a key manager of the memory subsystem controller). That is, the key manager may store cryptographic keys (e.g., unencrypted cryptographic keys) at a volatile memory device of the key manager. However, if the volatile memory device is disconnected from a power source, the volatile memory device cannot retain the cryptographic keys. Therefore, the key manager may transfer the encrypted cryptographic keys to the firmware component. The firmware component may store the encrypted cryptographic keys at the non-volatile memory component. If not all encrypted cryptographic keys are stored in the non-volatile memory, the key manager may store the encrypted cryptographic keys at the non-volatile memory and then return to 520. Alternatively, if all encrypted cryptographic keys are stored at the non-volatile memory, the memory subsystem may proceed to 525.

[0070] At 525, the cryptographic key may be used within the data path. That is, if the memory subsystem receives an access command from the host device, the key manager may provide the cryptographic key (eg, encryption key, decryption key) to the data manager (eg, reference Figure 2 and 3 Data Manager as described above).

[0071] Figure 6 An example of method 600 is shown. Method 600 may be performed by processing logic, which may include hardware (e.g., a processing device, digital circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, method 600 is performed by Figure 1 The key manager 150 of the embodiment of the present invention is executed. Although shown in a specific sequence or order, the order of the process can be modified unless otherwise stated. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes can be performed in a different order, 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 every embodiment. Other process flows are also possible.

[0072] At 605, the key manager may be turned on. In some cases, the key manager may have been previously disconnected from power. For example, the memory subsystem may have been powered off.

[0073] At 610, the key manager may program a key register. The key register may be a register at the key manager (e.g., reference Figure 3The key manager may program the key register to contain a second cryptographic key (eg, a public key). In some cases, the key manager may receive the second cryptographic key from a firmware component.

[0074] At 615, the key manager may load the key from an external memory (e.g., a non-volatile memory component external to the key manager). For example, the key manager may load the key from a non-volatile memory device external to the key manager. In some cases, the non-volatile memory device may be external to the memory subsystem controller. The key manager may receive the encrypted cryptographic key via a firmware component. In some cases, the firmware component may transfer the encrypted cryptographic key (from the non-volatile memory device) to a buffer at the key manager (e.g., referenced to Figure 3 Buffer 305 described).

[0075] At 620, the key manager may determine whether each encrypted cryptographic key is in a buffer (e.g., loaded from a non-volatile memory device). If not each encrypted cryptographic key is in the buffer, the firmware component may load other cryptographic keys into the buffer and then return to 620. Alternatively, if each encrypted cryptographic key is in the buffer, the firmware component may proceed to 625.

[0076] At 625, the key manager may determine whether each decrypted cryptographic key is loaded into volatile memory. That is, the key manager may receive the encrypted cryptographic keys and decrypt each key using the second cryptographic key and the initialization vector (e.g., associated with the cryptographic key) (e.g., in reference to Figure 3 The decrypted key may then be stored at a volatile memory device at the key manager (e.g., as described in reference to Figure 3 The key manager may then return to 625. Alternatively, if the key manager determines that each decrypted cryptographic key is stored at a volatile memory component, the key manager may proceed to 630.

[0077] At 630, the cryptographic key may be used within the data path. That is, if the memory subsystem receives an access command from the host device, the key manager may provide the cryptographic key (eg, encryption key, decryption key) to the data manager (eg, reference Figure 2 and 3 Data Manager as described above).

[0078] At 635, the key manager may determine whether a key erase request exists. That is, the firmware component may generate a key erase request to update a cryptographic key (e.g., generate a new cryptographic key to replace an old cryptographic key). In some cases, the firmware component may generate a key erase request when an error correction component at the key manager (e.g., error correction engine 370, decryption engine 365) detects a plurality of threshold error numbers. For example, the error correction component may be able to correct a certain number of errors within the cryptographic key. However, the number of errors within the cryptographic key may exceed the number. The error correction component may signal (e.g., reference) that the key erase request has been received. Figure 3 The described signaling to the control logic 315) that the number of errors meets the threshold. This may cause the firmware component to generate a key erase request and generate a new cryptographic key. If the key manager determines that there is no key erase request, the key manager may proceed to 630. Alternatively, the key manager may proceed to 640.

[0079] At 640, the key manager may generate a new cryptographic key. The key manager may store the new cryptographic key at a volatile memory device of the key manager. The key manager may then proceed to 645.

[0080] At 645, the key manager may determine whether a new cryptographic key has been generated in response to the key erase request. If a new cryptographic key has been generated, the key manager may proceed to 630. Alternatively, the key manager may proceed to 640. The key manager may encrypt the new cryptographic key (e.g., by using a cryptographic key such as reference 6). Figure 3 The encrypted new cryptographic key and the corresponding error correction information may be transmitted to a buffer (e.g., reference Figure 3 The key manager may transmit the encrypted new cryptographic key to the firmware component (e.g., reference Figure 3 The firmware component 330 described above may load the encrypted new cryptographic key and associated error correction information to an external non-volatile memory device.

[0081] Figure 7 A block diagram 700 is shown of a memory subsystem 705 that supports cryptographic key management according to examples disclosed herein. The memory subsystem 705 may be a reference Figure 1 , 24. The memory subsystem 705 may include a command manager 710, a cryptographic key generator 715, a key encryption component 720, a non-volatile storage manager 725, an error correction manager 730, a volatile storage manager 735, an access command manager 740, and a key decryption component 745. Each of these modules may communicate with each other directly or indirectly (e.g., via one or more buses).

[0082] The command manager 710 may issue, through the firmware component, a command to generate a first cryptographic key for encrypting or decrypting user data stored on the memory device. In some instances, the command manager 710 may issue, through the firmware component, a second command to generate an updated first cryptographic key for encrypting or decrypting user data stored on the memory device. Additionally or alternatively, the command manager 710 may issue, through the firmware component, a second command to generate a third cryptographic key for encrypting or decrypting second user data stored on the memory device.

[0083] In some examples, command manager 710 may issue a command to update the first cryptographic key through a firmware component.

[0084] The cryptographic key generator 715 may generate the first cryptographic key based on the command through a hardware component. In some instances, the cryptographic key generator 715 may generate an updated first cryptographic key based on issuing a second command through a hardware component. For example, if the second command instructs the hardware component to generate an updated first cryptographic key, the cryptographic key generator 715 may generate an updated first cryptographic key based on issuing the second command.

[0085] In some cases, generating an updated cryptographic key may include cryptographic key generator 715 generating a first set of random data. Here, cryptographic key generator 715 may determine that the first set of random data and the first cryptographic key contain the same set of data. In some instances, cryptographic key generator 715 may generate a second set of random data based on determining that the first set of random data and the first cryptographic key contain the same set of data. Cryptographic key generator 715 may determine that the second set of random data and the first cryptographic key contain different sets of data, wherein based on determining that the second set of random data and the first cryptographic key contain different sets of data, the updated first cryptographic key contains the second set of random data.

[0086] In some instances, the cryptographic key generator 715 may generate a third cryptographic key associated with the first cryptographic key through a hardware component, wherein one of the first cryptographic key or the third cryptographic key is used to encrypt user data, and the other of the first cryptographic key or the third cryptographic key is used to decrypt user data. In some cases, the cryptographic key generator 715 may generate the third cryptographic key through a hardware component based on issuing the second command.

[0087] The key encryption component 720 may encrypt the first cryptographic key using the second cryptographic key and the initialization vector via a hardware component. In some instances, the key encryption component 720 may encrypt the updated first cryptographic key using the second cryptographic key and the initialization vector via a hardware component. In some cases, the key encryption component 720 may encrypt the third cryptographic key using the second cryptographic key and the second initialization vector via a hardware component. In some cases, the initialization vector is based on user data stored on the memory device.

[0088] The non-volatile storage manager 725 may store the encrypted first cryptographic key in a non-volatile memory device separate from the hardware component. In some instances, the non-volatile storage manager 725 may receive the encrypted first cryptographic key and the second cryptographic key from the non-volatile memory device via a firmware component, wherein the encrypted first cryptographic key is used to encrypt or decrypt user data stored on the memory device. In some instances, the non-volatile storage manager 725 may receive error correction information associated with the encrypted first cryptographic key from the non-volatile memory device via a firmware component. In some cases, the non-volatile storage manager 725 may store the error correction information in the non-volatile memory device based on storing the encrypted first cryptographic key in the non-volatile memory device.

[0089] In some examples, the non-volatile storage manager 725 may retrieve the encrypted first cryptographic key from the non-volatile memory device (e.g., via a firmware component). In some cases, the non-volatile storage manager 725 may retrieve error correction information associated with the encrypted first cryptographic key from the non-volatile memory device via a firmware component.

[0090] The error correction manager 730 may generate error correction information for the encrypted first cryptographic key through a hardware component. In some instances, the error correction manager 730 may perform an error correction operation on the first cryptographic key stored in the first volatile memory device based on retrieving the encrypted first cryptographic key. In some cases, the error correction manager 730 may perform an error correction operation on the encrypted first cryptographic key through a hardware component based on retrieving the error correction information. For example, the error correction manager 730 may perform an error correction operation on the encrypted first cryptographic key using the error correction information. In some cases, decrypting the encrypted first cryptographic key is based on performing the error correction operation.

[0091] In some cases, the error correction manager 730 may detect or determine (e.g., via a hardware component) that a number of errors within the encrypted first cryptographic key satisfies an error threshold, wherein issuing the second command is based on detecting that the number of errors within the encrypted first cryptographic key satisfies the error threshold.

[0092] The volatile storage manager 735 may store the first cryptographic key in a volatile memory device on the hardware component based on decrypting the encrypted first cryptographic key. In some cases, the volatile storage manager 735 may store the first cryptographic key in a first volatile memory device of the hardware component, wherein the first cryptographic key comprises an encryption key for encrypting user data. In some instances, the volatile storage manager 735 may store a third cryptographic key in a second volatile memory device of the hardware component, wherein the third cryptographic key comprises a decryption key for decrypting user data.

[0093] The access command manager 740 may receive an access command associated with user data stored on the memory subsystem from a host device. In some examples, the access command manager 740 may encrypt or decrypt the user data using a first cryptographic key and an initialization vector based on receiving the access command.

[0094] The key decryption component 745 may decrypt the encrypted first cryptographic key using the second cryptographic key and the initialization vector through a hardware component.

[0095] Figure 8 The flowchart shown illustrates one or more methods 800. The method 800 may be performed by processing logic, which may include hardware (e.g., a processing device, digital circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 800 is performed by Figure 1The key manager of the embodiment of the present invention is executed. Although shown in a specific sequence or order, the order of the processes can be modified unless otherwise stated. Therefore, the embodiments shown should be understood as examples only, and the processes shown can be performed in a different order, 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 every embodiment. Other process flows are also possible.

[0096] At 805 , a firmware component of the processing logic may issue a command to generate a first cryptographic key for encrypting or decrypting user data stored on a memory device.

[0097] At 810, a hardware component of processing logic may generate a first cryptographic key based on the command. The hardware component may include digital circuitry with dedicated (ie, hard-coded) logic. The hardware may be part of a memory subsystem controller.

[0098] At 815 , the hardware component of the processing logic may encrypt the first cryptographic key using the second cryptographic key and the initialization vector.

[0099] At 820 , processing logic may store the encrypted first cryptographic key in a non-volatile memory device separate from the hardware component.

[0100] In some examples, an apparatus as described herein may perform one or more methods, such as method 800. The apparatus may include operations, features, means, or instructions (e.g., a non-transitory computer-readable medium storing instructions executable by a processor) for performing the following operations: issuing, by a firmware component, a command to generate a first cryptographic key for encrypting or decrypting user data stored on a memory device, generating, by a hardware component, the first cryptographic key based on the command, encrypting, by the hardware component, the first cryptographic key using a second cryptographic key and an initialization vector, and storing the encrypted first cryptographic key in a non-volatile memory device separate from the hardware component.

[0101] Some instances of the method 800 and apparatus described herein may further include operations, features, components, or instructions for generating, by a hardware component, error correction information for an encrypted first cryptographic key, and storing the error correction information in a non-volatile memory device based on storing the encrypted first cryptographic key in the non-volatile memory device.

[0102] Some examples of the method 800 and apparatus described herein may further include operations, features, means, or instructions for storing a first cryptographic key in a first volatile memory device of the hardware component, wherein the first cryptographic key includes an encryption key for encrypting user data.

[0103] Some examples of the method 800 and apparatus described herein may further include operations, features, means, or instructions for storing a third cryptographic key in a second volatile memory device of the hardware component, wherein the third cryptographic key includes a decryption key for decrypting the user data.

[0104] Some examples of the method 800 and apparatus described herein may further include operations, features, components, or instructions for retrieving the encrypted first cryptographic key from a non-volatile memory device, and performing an error correction operation on the first cryptographic key stored in a first volatile memory device based on retrieving the encrypted first cryptographic key.

[0105] Some instances of the method 800 and apparatus described herein may further include operations, features, components, or instructions for receiving an access command associated with user data stored on a memory device from a host device, and encrypting or decrypting the user data using a first cryptographic key and an initialization vector based on receiving the access command.

[0106] Some examples of the method 800 and apparatus described herein may further include operations, features, means, or instructions for retrieving, by a firmware component, an encrypted first cryptographic key from a non-volatile memory device, and decrypting, by a hardware component, the encrypted first cryptographic key using a second cryptographic key and an initialization vector.

[0107] Some instances of the method 800 and apparatus described herein may further include operations, features, components, or instructions for performing the following operations: retrieving, by a firmware component, error correction information associated with the encrypted first cryptographic key from a non-volatile memory device, and performing, by a hardware component, an error correction operation on the encrypted first cryptographic key based on retrieving the error correction information, wherein decrypting the encrypted first cryptographic key may be based on performing the error correction operation.

[0108] Some instances of the method 800 and apparatus described herein may further include operations, features, components, or instructions for performing the following operations: issuing, by a firmware component, a second command to generate an updated first cryptographic key for encrypting or decrypting user data stored on a memory device, generating, by a hardware component, an updated first cryptographic key based on issuing the second command, and encrypting, by the hardware component, the updated first cryptographic key using the second cryptographic key and an initialization vector.

[0109] Some instances of the method 800 and devices described herein may further include operations, features, components, or instructions for performing the following operations: detecting, by a hardware component, that a number of errors within an encrypted first cryptographic key satisfies an error threshold, wherein issuing a second command may be based on detecting that the number of errors within the encrypted first cryptographic key satisfies the error threshold.

[0110] In some instances of the method 800 and devices described herein, generating an updated first cryptographic key may further include operations, features, components, or instructions for performing the following operations: generating a first random data set, determining that the first random data set and the first cryptographic key contain the same data set, generating a second random data set based on determining that the first random data set and the first cryptographic key contain the same data set, and determining that the second random data set and the first cryptographic key contain different data sets, wherein based on determining that the second random data set and the first cryptographic key contain different data sets, the updated first cryptographic key contains the second random data set.

[0111] Some instances of the method 800 and devices described herein may further include operations, features, components, or instructions for performing the following operations: generating, by a hardware component, a third cryptographic key associated with the first cryptographic key, wherein one of the first cryptographic key or the third cryptographic key can be used to encrypt user data, and the other of the first cryptographic key or the third cryptographic key can be used to decrypt the user data.

[0112] Some instances of the method 800 and apparatus described herein may further include operations, features, components, or instructions for performing the following operations: issuing, by a firmware component, a second command to generate a third cryptographic key for encrypting or decrypting second user data stored on a memory device, generating, by a hardware component, the third cryptographic key based on issuing the second command, and encrypting, by the hardware component, the third cryptographic key using the second cryptographic key and the second initialization vector.

[0113] In some examples of the method 800 and apparatus described herein, the initialization vector may be based on user data stored on a memory device.

[0114] Fig. 9 The flowchart shown illustrates one or more methods 900 for supporting cryptographic key management according to aspects of the present disclosure. The method 900 may be performed by processing logic, which may include hardware (e.g., a processing device, digital circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 900 is performed by Figure 1The key manager of the embodiment of the present invention is executed. Although shown in a specific sequence or order, the order of the processes can be modified unless otherwise stated. Therefore, the embodiments shown should be understood as examples only, and the processes shown can be performed in a different order, 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 every embodiment. Other process flows are also possible.

[0115] At 905 , a firmware component of the processing logic may issue a command to generate a first cryptographic key for encrypting or decrypting user data stored on a memory device.

[0116] At 910, a hardware component of processing logic may generate a first cryptographic key based on the command. The hardware may include digital circuitry with dedicated (ie, hard-coded) logic. The hardware may be part of a memory subsystem controller.

[0117] At 915, the hardware component may encrypt the first cryptographic key using the second cryptographic key and the initialization vector.

[0118] At 920 , the hardware component may generate error correction information for the encrypted first cryptographic key.

[0119] At 925 , processing logic may store the encrypted first cryptographic key in a non-volatile memory device separate from the hardware component.

[0120] At 930 , processing logic may store error correction information in the non-volatile memory device based on storing the encrypted first cryptographic key in the non-volatile memory device.

[0121] Fig.10 The flowchart shown illustrates one or more methods 1000 for supporting cryptographic key management according to aspects of the present disclosure. The method 1000 may be performed by processing logic, which may include hardware (e.g., a processing device, digital circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 1000 is performed by Figure 1 The key manager of the embodiment of the present invention is executed. Although shown in a specific sequence or order, the order of the processes can be modified unless otherwise stated. Therefore, the embodiments shown should be understood as examples only, and the processes shown can be performed in a different order, 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 every embodiment. Other process flows are also possible.

[0122] At 1005 , a firmware component of the processing logic may receive an encrypted first cryptographic key and a second cryptographic key, wherein the encrypted first cryptographic key is used to encrypt or decrypt user data stored on a memory device.

[0123] At 1010, a hardware component of processing logic may decrypt the encrypted first cryptographic key using the second cryptographic key and the initialization vector. The hardware may include digital circuitry with dedicated (ie, hard-coded) logic. The hardware may be part of a memory subsystem controller.

[0124] At 1015 , processing logic may store the first cryptographic key in a volatile memory device on the hardware component based on decrypting the encrypted first cryptographic key.

[0125] In some examples, an apparatus as described herein may perform one or more methods, such as method 1000. The apparatus may include operations, features, means, or instructions (e.g., a non-transitory computer-readable medium storing instructions executable by a processor) for performing the following operations: receiving, by a firmware component, an encrypted first cryptographic key and a second cryptographic key from a non-volatile memory device, wherein the encrypted first cryptographic key is used to encrypt or decrypt user data stored on the memory device, decrypting, by a hardware component, the encrypted first cryptographic key using the second cryptographic key and an initialization vector, and storing the first cryptographic key in a volatile memory device on the hardware component based on decrypting the encrypted first cryptographic key.

[0126] Some instances of the method 1000 and apparatus described herein may further include operations, features, components, or instructions for performing the following operations: receiving, by a firmware component, error correction information associated with the encrypted first cryptographic key from a non-volatile memory device, and performing, by a hardware component, an error correction operation on the encrypted first cryptographic key using the error correction information.

[0127] Some examples of the method 1000 and apparatus described herein may further include operations, features, components, or instructions for determining that a number of errors detected during an error correction operation satisfies an error threshold, and issuing a command, by a firmware component, to update a first cryptographic key.

[0128] Some instances of the method 1000 and apparatus described herein may further include operations, features, components, or instructions for receiving an access command associated with user data stored on a memory device from a host device, and encrypting or decrypting the user data using a first cryptographic key and an initialization vector based on receiving the access command.

[0129] Fig.11The flowchart shown illustrates one or more methods 1100 for supporting cryptographic key management according to aspects of the present disclosure. The method 1100 may be performed by processing logic, which may include hardware (e.g., a processing device, digital circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 1100 is performed by Figure 1 The key manager of the embodiment of the present invention is executed. Although shown in a specific sequence or order, the order of the processes can be modified unless otherwise stated. Therefore, the embodiments shown should be understood as examples only, and the processes shown can be performed in a different order, 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 every embodiment. Other process flows are also possible.

[0130] At 1105 , a firmware component of the processing logic may receive an encrypted first cryptographic key and a second cryptographic key, wherein the encrypted first cryptographic key is used to encrypt or decrypt user data stored on a memory device.

[0131] At 1110, a hardware component of processing logic may decrypt the encrypted first cryptographic key using the second cryptographic key and the initialization vector. The hardware may include digital circuitry with dedicated (ie, hard-coded) logic. The hardware may be part of a memory subsystem controller.

[0132] At 1115 , processing logic may store the first cryptographic key in a volatile memory device on the hardware component based on decrypting the encrypted first cryptographic key.

[0133] At 1120, processing logic may receive, from a host device, an access command associated with user data stored on a memory device.

[0134] At 1125, processing logic may encrypt or decrypt the user data using the first cryptographic key and the initialization vector based on receiving the access command.

[0135] It should be noted that the methods described above describe possible embodiments, and that the operations and steps may be rearranged or otherwise modified, and other embodiments are possible. In addition, parts of two or more methods may be combined.

[0136] Fig.12 An example machine of a computer system 1200 that supports cryptographic key management according to aspects of the present disclosure is shown. The computer system 1200 may include a set of instructions for causing the machine to perform any one or more of the techniques described herein. In some examples, the computer system 1200 may correspond to a host system (e.g., a reference Figure 1 105) that includes, is coupled to, or utilizes a memory subsystem (e.g., reference Figure 1 The memory subsystem 110 described above may be used to perform operations of the controller (e.g., execute an operating system to perform operations corresponding to the reference Figure 1 In some examples, the machine may be connected (e.g., using a network) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The machine may operate in the form of a server or a client machine in a client-server network environment, or in the form of a server or a client machine in a peer-to-peer (or distributed) network environment.

[0137] 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" may also include any collection of machines that individually or collectively execute an instruction set (or multiple instruction sets) to perform any one or more of the methodologies discussed herein.

[0138] The example computer system 1200 may include a processing device 1205, a main memory 1210 (e.g., ROM, flash memory, DRAM such as SDRAM or RDRAM, etc.), a static memory 1215 (e.g., flash memory, SRAM, etc.), and a data storage system 1225 that communicate with each other via a bus 1245.

[0139] Processing device 1205 represents one or more general 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. Processing device 1205 can also be one or more special 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. Processing device 1205 is configured to execute instructions 1235 for performing the operations and steps discussed herein. Computer system 1200 may further include a network interface device 1220 to communicate via a network 1240.

[0140] The data storage system 1225 may include a machine-readable storage medium 1230 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 1235 or software embodying any one or more of the methodologies or functions described herein. The instructions 1235 may also reside, in whole or in part, within the main memory 1210 and / or within the processing device 1205 during execution of the instructions by the computer system 1200, the main memory 1210 and the processing device 1205 also constituting machine-readable storage media. The machine-readable storage medium 1230, the data storage system 1225, and / or the main memory 1210 may correspond to a memory subsystem.

[0141] In one example, instructions 1235 include instructions for implementing a method for communicating with a key manager 1250 (e.g., referring to Figure 1 The machine-readable storage medium 1230 may include instructions for functions corresponding to the key manager 150 described herein. Although the machine-readable storage medium 1230 is shown as a single medium, the term "machine-readable storage medium" may include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" may also include any medium capable of storing a set of instructions or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more methods of the present disclosure. The term "machine-readable storage medium" may include, but is not limited to, solid-state memory, optical media, and magnetic media.

[0142] A system is described. The system may include: a random information generator configured to generate a first cryptographic key for encrypting or decrypting user data stored on a memory device; a volatile memory device configured to store the first cryptographic key; an encryption engine configured to encrypt the first cryptographic key using a second cryptographic key and an initialization vector; and a buffer configured to store the encrypted first cryptographic key during transmission of the encrypted first cryptographic key associated with the system and a firmware component.

[0143] Some examples of the system may further include an ECC encoder configured to generate error correction information for performing an error correction operation on the encrypted first cryptographic key, and store the encrypted first cryptographic key and the error correction information at the buffer.

[0144] Some examples of the system may further include an ECC encoder configured to receive the error correction information and the encrypted first cryptographic key from the buffer and to perform an error correction operation on the encrypted first cryptographic key using the error correction information.

[0145] Some instances of the system may further include a decryption engine configured to receive the encrypted first cryptographic key from the buffer and decrypt the encrypted first cryptographic key using the second cryptographic key and the initialization vector.

[0146] Some instances of the system may further include a set of registers configured to store a second cryptographic key, wherein the set of registers receives the second cryptographic key from the firmware component.

[0147] In some examples, a volatile memory device may include a first memory device for storing a cryptographic key for encrypting user data stored on the memory device and a second memory device for storing a cryptographic key for decrypting user data stored on the memory device.

[0148] In some examples, the encryption engine may be further configured to receive the first cryptographic key from the volatile memory device, wherein encrypting the first cryptographic key may be based on receiving the first cryptographic key from the volatile memory device.

[0149] A system is described. The system may include a memory subsystem configured to: issue, by a firmware component, a command to generate a first cryptographic key for encrypting or decrypting user data stored on a memory device, generate, by a hardware component, the first cryptographic key based at least in part on the command, encrypt, by the hardware component, the first cryptographic key using a second cryptographic key and an initialization vector, and store the encrypted first cryptographic key in a non-volatile memory device separate from the hardware component.

[0150] A system is described. The system may include a memory subsystem configured to: receive, by a firmware component, an encrypted first cryptographic key and a second cryptographic key from a non-volatile memory device, wherein the encrypted first cryptographic key is used to encrypt or decrypt user data stored on the memory device, decrypt, by a hardware component, the encrypted first cryptographic key using the second cryptographic key and an initialization vector, and store the first cryptographic key in the volatile memory device on the hardware component based at least in part on decrypting the encrypted first cryptographic key.

[0151] The information and signals described herein may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof. Some diagrams may show a signal as a single signal; however, one of ordinary skill in the art will understand that the signal may represent a signal bus, where the bus may have various bit widths.

[0152] The terms "electronic communication," "conductive contact," "connection," and "coupling" may refer to a relationship between components that supports the flow of signals between the components. Components are considered to be in electronic communication with each other (or in conductive contact with each other, or connected to each other, or coupled to each other) if there is any conductive path between the components that can support the flow of signals between the components at any time. At any given time, based on the operation of the device containing the connected components, the conductive path between the components that are electronically connected to each other (or in conductive contact with each other, or connected to each other, or coupled to each other) may be an open circuit or a closed circuit. The conductive path between the connected components may be a direct conductive path between the components, or the conductive path between the connected components may be an indirect conductive path that may include intermediate components such as switches, transistors, or other components. In some cases, for example, one or more intermediate components such as switches or transistors may be used to interrupt the flow of signals between the connected components for a period of time.

[0153] The devices including memory arrays discussed herein can be formed on semiconductor substrates such as silicon, germanium, silicon-germanium alloys, gallium arsenide, gallium nitride, etc. In some cases, the substrate is a semiconductor wafer. In other cases, the substrate can be a silicon-on-insulator (SOI) substrate, such as silicon-on-glass (SOG) or silicon-on-sapphire (SOP), or an epitaxial layer of semiconductor material on another substrate. The conductivity of the substrate or a sub-region of the substrate can be controlled by doping with various chemical species including, but not limited to, phosphorus, boron, or arsenic. Doping can be performed during the initial formation or growth of the substrate by ion implantation or by any other doping method.

[0154] The switch assembly or transistor discussed herein may represent a field effect transistor (FET) and include a three-terminal device having a source, a drain and a gate. The terminals may be connected to other electronic components by conductive materials such as metals. The source and drain may be conductive and may include heavily doped, for example, degenerate semiconductor regions. The source and drain may be separated by lightly doped semiconductor regions or channels. If the channel is n-type (i.e., the majority carrier is a signal), the FET may be referred to as an n-type FET. If the channel is p-type (i.e., the majority carrier is a hole), the FET may be referred to as a p-type FET. The channel may be terminated by an insulating gate oxide. Channel conductivity may be controlled by applying a voltage to the gate. For example, applying a positive voltage or a negative voltage to an n-type FET or a p-type FET, respectively, may turn the channel on. When a voltage greater than or equal to the transistor threshold voltage is applied to the transistor gate, the transistor may be "turned on" or "activated". When a voltage less than the transistor threshold voltage is applied to the transistor gate, the transistor may be "disconnected" or "deactivated".

[0155] The descriptions set forth herein in conjunction with the accompanying drawings describe example configurations and do not represent all examples that may be implemented or within the scope of the claims. The term "exemplary" as used herein means "serving as an example, instance, or illustration" and is not "preferred to" or "superior to" other examples. The detailed description includes specific details to provide an understanding of the described techniques. However, these techniques may be practiced without these specific details. In some examples, well-known structures and devices are shown in block diagram form to avoid confusing the concepts of the described embodiments.

[0156] In the drawings, similar components or features may have the same reference number. In addition, various components of the same type may be distinguished by following the reference number with a dash and a second reference that can distinguish the similar components. If only the first reference number is used in the specification, the description applies to any similar components having the same first reference number, regardless of the second reference number.

[0157] The various illustrative blocks and modules described in conjunction with the disclosure herein may be implemented or performed using a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices (e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration).

[0158] The functions described herein can be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions can be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope of the present disclosure and the appended claims. For example, due to the nature of software, the functions described above can be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. The features of the implementation functions can also be physically located at various locations, including being distributed so that the various parts of the functions are implemented at different physical locations. In addition, as used herein, included in the claims, the "or" used in the list of items (e.g., a list of items starting with a phrase such as "at least one of" or "one or more of") indicates an inclusive list, so that (for example) a list of at least one of A, B, or C represents A or B or C or AB or AC or BC or ABC (i.e., A and B and C). In addition, as used herein, the phrase "based on" should not be understood as referring to a closed set of conditions. For example, without departing from the scope of the present disclosure, an exemplary step described as "based on condition A" may be based on both condition A and condition B. In other words, as used herein, the phrase "based on" should be equally interpreted as the phrase "based at least in part on."

[0159] Computer-readable media include both non-transitory computer storage media and communication media including any media that facilitates the transfer of computer programs from one place to another. Non-transitory storage media can be any available media that can be accessed by a general or special computer. By way of example and not limitation, non-transitory computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), compact disk (CD) ROM or other optical disk storage device, magnetic disk storage or other magnetic storage device device, or any other non-transitory media that can be used to carry or store the desired program code device in the form of instructions or data structures and can be accessed by a general or special computer or a general or special processor. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology such as infrared, radio and microwave is used to transmit software from a website, server or other remote source, the definition of the media includes the coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology such as infrared, radio and microwave. As used herein, disk and disc include CD, laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while discs use lasers to reproduce data optically. Combinations of the above are also included within the scope of computer-readable media.

[0160] The description herein is provided to enable one skilled in the art to make or use the present disclosure. One skilled in the art will appreciate various modifications to the present disclosure, and the general principles defined herein may be applied to other variations without departing from the scope of the present disclosure. Therefore, the present disclosure is not limited to the examples and designs described herein, but is given the broadest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method comprising: receiving, by the firmware component, an encrypted first cryptographic key and a second cryptographic key from a non-volatile memory device, wherein the encrypted first cryptographic key is used to encrypt or decrypt data stored on the memory device; decrypting the encrypted first cryptographic key using the second cryptographic key by a hardware component; as well as The first cryptographic key is stored in a volatile memory device on the hardware component based at least in part on decrypting the encrypted first cryptographic key.

2. The method according to claim 1, further comprising: An initialization vector is generated by the hardware component based at least in part on the data, the first cryptographic key, or both, wherein the initialization vector is used to encrypt or decrypt the first cryptographic key using the second cryptographic key.

3. The method according to claim 1, further comprising: receiving, by the firmware component, error correction information associated with the encrypted first cryptographic key from the non-volatile memory device; as well as An error correction operation is performed on the encrypted first cryptographic key using the error correction information by the hardware component.

4. The method according to claim 3, further comprising: determining that a number of errors detected during the error correction operation satisfies an error threshold; as well as A command is issued by the firmware component to update the first cryptographic key.

5. The method according to claim 1, further comprising: receiving, from a host device, an access command associated with the data stored on the memory device; as well as The data is encrypted or decrypted using the first cryptographic key based at least in part on receiving the access command.

6. The method according to claim 1, further comprising: receiving, by the firmware component, an encrypted third cryptographic key from the non-volatile memory device; decrypting, by the hardware component, the encrypted third cryptographic key using the second cryptographic key; as well as The third cryptographic key is stored in a second volatile memory device on the hardware component based at least in part on decrypting the encrypted third cryptographic key.

7. The method of claim 6, wherein the first cryptographic key comprises an encryption key for encrypting the data stored on the memory device, and the second cryptographic key comprises a decryption key for decrypting the data stored on the memory device.

8. The method according to claim 1, further comprising: The encrypted first cryptographic key and the second cryptographic key are transmitted, by the firmware component, to the hardware component based at least in part on receiving the encrypted first cryptographic key and the second cryptographic key from the non-volatile memory device.

9. The method of claim 1, wherein the encrypted first cryptographic key and the second cryptographic key are received by the firmware component based at least in part on booting of the hardware component.

10. The method of claim 1, wherein the second cryptographic key is stored at a register of the hardware component.

11. A system comprising: A memory subsystem configured to: receiving, by the firmware component, an encrypted first cryptographic key and a second cryptographic key from a non-volatile memory device, wherein the encrypted first cryptographic key is used to encrypt or decrypt data stored on the memory device; decrypting the encrypted first cryptographic key using the second cryptographic key by a hardware component; as well as The first cryptographic key is stored in a volatile memory device on the hardware component based at least in part on decrypting the encrypted first cryptographic key.

12. The system of claim 11, wherein the memory subsystem is further configured to: An initialization vector is generated by the hardware component based at least in part on the data, the first cryptographic key, or both, wherein the initialization vector is used to encrypt or decrypt the first cryptographic key using the second cryptographic key.

13. The system of claim 11, wherein the memory subsystem is further configured to: receiving, by the firmware component, error correction information associated with the encrypted first cryptographic key from the non-volatile memory device; and An error correction operation is performed on the encrypted first cryptographic key using the error correction information by the hardware component.

14. The system of claim 13, wherein the memory subsystem is further configured to: determining that a number of errors detected during the error correction operation satisfies an error threshold; and A command is issued by the firmware component to update the first cryptographic key.

15. The system of claim 11, wherein the memory subsystem is further configured to: receiving, from a host device, an access command associated with the data stored on the memory device; and The data is encrypted or decrypted using the first cryptographic key based at least in part on receiving the access command.

16. The system of claim 11, wherein the memory subsystem is further configured to: decrypting, by the hardware component, the encrypted third cryptographic key using the second cryptographic key; and The third cryptographic key is stored in a second volatile memory device on the hardware component based at least in part on decrypting the encrypted third cryptographic key.

17. The system of claim 11, wherein the memory subsystem is further configured to: The encrypted first cryptographic key and the second cryptographic key are transmitted, by the firmware component, to the hardware component based at least in part on receiving the encrypted first cryptographic key and the second cryptographic key from the non-volatile memory device.

18. The system of claim 11, wherein the encrypted first cryptographic key and the second cryptographic key are received by the firmware component based at least in part on booting of the hardware component.

19. The system of claim 11, wherein the second cryptographic key is stored at a register of the hardware component.

20. A non-transitory computer readable medium storing code, the code comprising instructions executable by a processor to: receiving, by a firmware component, an encrypted first cryptographic key and a second cryptographic key from a non-volatile memory device, wherein the encrypted first cryptographic key is used to encrypt or decrypt data stored on the memory device, and wherein the second cryptographic key is stored at a register of a hardware component; decrypting the encrypted first cryptographic key using the second cryptographic key by a hardware component; as well as The first cryptographic key is stored in a volatile memory device on the hardware component based at least in part on decrypting the encrypted first cryptographic key.