# US 2022/0284135 A1 · Managing encryption keys per logical block on a persistent memory device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284135 A1
- Document ID: US20220284135A1
- Status: Published application
- Kind: A1
- Application number: 17/195,061
- Filed: 2021-03-08
- Published: 2022-09-08
- Earliest claimed: 2021-03-08
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Walter Andrew Hubis
- Web page: https://patentgrep.com/patent/US20220284135A1

## CPC

- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/805: {using a security table for the storage sub-system}
- G06F 21/107: {License processing; Key processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A command to perform a data operation at a memory device is received. The command includes an encryption key tag. A first key table is accessed from local memory. The first key table includes a first set of key entries corresponding to a first set of encryption keys. The first key table is searched to determine whether it includes an entry corresponding to the encryption key tag. Based on determining the first key table does not include an entry corresponding to the tag, a second key table is accessed from RAM. The second key table includes a second set of key entries corresponding to a second set of encryption keys. A key entry corresponding to the encryption key tag is identified from the second key table. The key entry includes an encryption key corresponding to the encryption key tag. The command is processed using the encryption key.

## Claims

### Claim 1

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

### Claim 2 (depends on 1)

The system of claim 1, wherein:
the command comprises a command to write data to the memory device; and
the processing of the command comprises encrypting the data using the encryption key.

### Claim 3 (depends on 1)

The system of claim 1, wherein:
the command comprises a command to read data from the memory device; and
the processing of the command comprises decrypting, using the encryption key, encrypted data read from the memory device.

### Claim 4 (depends on 3)

The system of claim 3, wherein the operations further comprise:
reading the encrypted data and a key identifier from the memory device; and
determining that the key identifier read from the memory device matches a key identifier included in the key entry.

### Claim 5 (depends on 1)

The system of claim 1, wherein:
the command is a first command to perform a first data operation;
the encryption key tag is a first encryption key tag;
the encryption key is a first encryption key; and
the operations further comprise:
receiving a second command to perform a second data operation at the memory device, the second command comprising a second encryption key tag.

### Claim 6 (depends on 5)

The system of claim 5, wherein the operations further comprise:
determining the first key table includes a key entry corresponding to the second encryption key tag, the key entry corresponding to the second encryption key tag comprising a second encryption key; and
processing the second command using the second encryption key.

### Claim 7 (depends on 6)

The system of claim 6, wherein:
the second command comprises a command to read data from the memory device; and
the operations further comprise:
reading encrypted data and a key identifier from the memory device; and
determining that the key identifier read from the memory device matches a key identifier included in the key entry.

### Claim 8 (depends on 5)

The system of claim 5, wherein the operations further comprise:
returning an error responsive to the second command based on determining that the first key table and second key table do not include a key entry corresponding to the second encryption key tag.

### Claim 9 (depends on 5)

The system of claim 5, wherein:
the second command comprises a command to read data from the memory device; and
the operations further comprise:
reading encrypted data and a key identifier from the memory device;
determining the first key table includes a key entry corresponding to the second encryption key tag, the key entry corresponding to the second encryption key tag comprising a second encryption key; and
returning an error responsive to the second command based on determining that the key identifier read from the memory device does not match a key identifier included in the key entry corresponding to the second encryption key tag.

### Claim 10 (depends on 5)

The system of claim 5, wherein the operations further comprise:
determining the first key table does not include a key entry corresponding to the second encryption key tag;
identifying a key entry from the second key table that corresponds to the second encryption key tag; and
replacing an existing key entry in the first key table with the key entry from the second key table that corresponds to the second encryption key tag.

### Claim 11

A method comprising:
receiving, at a processing device, a command to perform a data operation at a memory device, the command comprising an encryption key tag;
accessing a rust key table from local memory of the processing device, the first key table comprising a first set of key entries corresponding to a first set of encryption keys;
searching, by the processing device, the first key table to determine whether the first key table includes an entry corresponding to the encryption key tag;
accessing, from random access memory (RAM), a second key table comprising a second set of key entries in response to determining the first key table does not include an entry corresponding to the tag;
identifying, from the second set of key entries, a key entry corresponding to the encryption key tag, the key entry comprising an encryption key corresponding to the encryption key tag; and
processing, by the processing device, the command using the encryption key.

### Claim 12 (depends on 11)

The method of claim 11, wherein:
the command comprises a command to write data to the memory device; and
the processing of the command comprises encrypting the data using the encryption key.

### Claim 13 (depends on 11)

The method of claim 11, wherein:
the command comprises a command to read data from the memory device; and
the processing of the command comprises decrypting, using the encryption key, encrypted data read from the memory device.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
reading the encrypted data and a key identifier from the memory device; and
determining that the key identifier read from the memory device matches a key identifier included in the key entry.

### Claim 15 (depends on 14)

The method of claim 14, wherein:
the command is a first command to perform a first data operation;
the encryption key tag is a first encryption key tag;
the encryption key is a first encryption key; and
the method further comprises:
receiving a second command to perform a second data operation at the memory device, the second command comprising a second encryption key tag.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
determining the first key table includes a key entry corresponding to the second encryption key tag, the key entry corresponding to the second encryption key tag comprising a second encryption key; and
processing the second command using the second encryption key corresponding to the key entry in the first key table.

### Claim 17 (depends on 16)

The method of claim 16, wherein:
the second command comprises a command to read data from the memory device; and
the method further comprises:
reading encrypted data and a key identifier from the memory device; and
determining that the key identifier read from the memory device matches a key identifier included in the key entry.

### Claim 18 (depends on 15)

The method of claim 15, further comprising:
returning an error responsive to the second command based on determining that the first key table and second key table do not include a key entry corresponding to the second encryption key tag.

### Claim 19 (depends on 15)

The method of claim 15, wherein:
the second command comprises a command to read data from the memory device; and
the method further comprises:
reading encrypted data and a key identifier from the memory device;
determining the first key table includes a key entry corresponding to the second encryption key tag, the key entry corresponding to the second encryption key tag comprising a second encryption key; and
returning an error in response to the second command in response to determining that the key identifier read from the memory device does not match a key identifier included in the key entry corresponding to the second encryption key tag.

### Claim 20

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