# US 2025/0148093 A1 · Memory system and method of operating the same

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

- Number: US 2025/0148093 A1
- Document ID: US20250148093A1
- Status: Published application
- Kind: A1
- Application number: 18/678,216
- Filed: 2024-05-30
- Published: 2025-05-08
- Earliest claimed: 2023-11-03
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Subin SEO; Jisoo KIM; Kyung-Woo NOH; Younsung CHU
- Web page: https://patentgrep.com/patent/US20250148093A1

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is a memory system which includes a non-volatile memory device, and a memory controller configured to control the non-volatile memory device. The memory controller includes a key index table including an extended key index associated with a logical address from a host device and an encryption/decryption key table including a replicated key index associated with the extended key index, and an encryption/decryption key associated with encryption or decryption of target data associated with the logical address. The memory controller is configured to change the replicated key index based on a key change request for the encryption/decryption key. Based on the encryption or the decryption being performed with respect to the target data, the memory controller is configured to compare the extended key index and the replicated key index to detect whether the encryption/decryption key associated with the encryption or the decryption is changed.

## Claims

### Claim 1

A memory system comprising:
a non-volatile memory device; and
a memory controller configured to control the non-volatile memory device,
the memory controller including
a key index table including an extended key index associated with a logical address from a host device; and
an encryption/decryption key table including a replicated key index associated with the extended key index, and an encryption/decryption key associated with encryption or decryption of target data associated with the logical address, and
the memory controller being configured to
change the replicated key index based on a key change request for the encryption/decryption key; and
based on the encryption or the decryption being performed with respect to the target data, compare the extended key index and the replicated key index to detect whether the encryption/decryption key associated with the encryption or the decryption is changed.

### Claim 2 (depends on 1)

The memory system of claim 1, wherein the memory controller is configured to:
generate the replicated key index identical to the extended key index based on the memory controller generating the extended key index associated with the logical address; and
change the replicated key index while maintaining the extended key index, based on the key change request having been received.

### Claim 3 (depends on 2)

The memory system of claim 2, wherein the memory controller is configured to:
change the encryption/decryption key while changing the replicated key index.

### Claim 4 (depends on 1)

The memory system of claim 1, wherein the memory controller is configured to:
based on a result of comparing the extended key index and the replicated key index indicating that the extended key index and the replicated key index are different, determine that the encryption/decryption key associated with the encryption or the decryption is changed and output an error message.

### Claim 5 (depends on 4)

The memory system of claim 4, wherein the memory controller is configured to:
based on the result of comparing the extended key index and the replicated key index indicating that the extended key index is identical to the replicated key index, perform the encryption or the decryption with respect to the target data based on the encryption/decryption key associated with the encryption or the decryption.

### Claim 6 (depends on 1)

The memory system of claim 1, wherein
the extended key index includes a key value and one or more first extension bits,
the replicated key index includes the key value and one or more second extension bits, and
the memory controller is configured to change the second extension bits while maintaining the first extension bits, based on the key change request having been received.

### Claim 7 (depends on 6)

The memory system of claim 6, wherein the memory controller is configured to:
based on the encryption or the decryption of the target data being performed, compare the extended key index and the replicated key index by comparing the second extension bits and the first extension bits.

### Claim 8 (depends on 7)

The memory system of claim 7, wherein the memory controller is configured to:
based on the second extension bits being different from the first extension bits, determine that the encryption/decryption key associated with the encryption or the decryption is changed and output an error message.

### Claim 9 (depends on 8)

The memory system of claim 8, wherein the memory controller is configured to:
based on the second extension bits being identical to the first extension bits, perform the encryption or the decryption with respect to the target data based on the encryption/decryption key associated with the encryption or the decryption.

### Claim 10 (depends on 6)

The memory system of claim 6, wherein the memory controller is configured to:
based on the second extension bits being changed, set an indicator flag indicating a mismatch of the first extension bits and the second extension bits to a relevant entry of the key index table.

### Claim 11 (depends on 1)

The memory system of claim 1, wherein
the key index table further includes an indicator flag indicating a mismatch of the replicated key index and the extended key index, and
the memory controller is configured to detect whether the encryption/decryption key associated with the encryption or the decryption is changed, based on the indicator flag, instead of comparing the extended key index and the replicated key index.

### Claim 12 (depends on 11)

The memory system of claim 11, wherein the memory controller is configured to:
based on the indicator flag indicating a first value, perform the encryption or the decryption with respect to the target data based on the encryption/decryption key associated with the encryption or the decryption; and
based on the indicator flag indicating a second value, output an error message.

### Claim 13 (depends on 1)

The memory system of claim 1, wherein the memory controller further includes:
a key index manager configured to manage the key index table; and
an encryption/decryption key manager configured to manage the encryption/decryption key table.

### Claim 14 (depends on 1)

The memory system of claim 1, wherein the key change request is transmitted from another host device distinguished from the host device to the memory system.

### Claim 15

A memory system comprising:
a non-volatile memory device; and
a memory controller configured to control the non-volatile memory device,
the memory controller including
a key index manager configured to manage a key index table including an extended key index associated with a logical address from a host device;
an encryption/decryption key manager configured to manage an encryption/decryption key table including a replicated key index associated with the extended key index, and an encryption/decryption key associated with encryption or decryption of target data associated with the logical address;
an encryption/decryption engine configured to perform the encryption or the decryption of the target data based on the encryption/decryption key; and
a processor configured to, based on the encryption or the decryption of the target data being performed, detect whether the replicated key index is changed to detect whether the encryption/decryption key associated with the encryption or the decryption is changed.

### Claim 16 (depends on 15)

The memory system of claim 15, wherein
the key index manager is configured to:
search the encryption/decryption key associated with the logical address from the key index table; and
based on the extended key index being found, provide the extended key index to the encryption/decryption key manager, and
the encryption/decryption key manager is configured to:
search the replicated key index associated with the extended key index from the encryption/decryption key table; and
based on the replicated key index being identical to the extended key index, provide the encryption/decryption key associated with the encryption or the decryption to the encryption/decryption engine.

### Claim 17 (depends on 16)

The memory system of claim 16, wherein the encryption/decryption key manager is configured to:
based on the replicated key index being different from the extended key index, provide a result message indicating a mismatch of the replicated key index and the extended key index to the processor.

### Claim 18 (depends on 15)

The memory system of claim 15, wherein
the extended key index includes a key value and one or more first extension bits,
the replicated key index includes the key value and one or more second extension bits, and
the processor is configured to change the second extension bits while maintaining the first extension bits, based on a key change request being received.

### Claim 19 (depends on 18)

The memory system of claim 18, wherein, based on the encryption or the decryption of the target data being performed, the processor is configured to compare the extended key index and the replicated key index by comparing the second extension bits and the first extension bits.

### Claim 20

A method of operating a memory system, the method comprising:
generating a key index table and an encryption/decryption key table, the key index table including an extended key index associated with a logical address from a host device, and the encryption/decryption key table includes a replicated key index associated with the extended key index and an encryption/decryption key associated with encryption or decryption of target data associated with the logical address;
changing the replicated key index based on a key change request for the encryption/decryption key; and
based on the encryption or the decryption of the target data being performed, compare the extended key index and the replicated key index to detect whether the encryption/decryption key associated with the encryption or the decryption is changed.
