# US 2026/0088995 A1 · Dynamic key reassignment for memory encryption keys

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

- Number: US 2026/0088995 A1
- Document ID: US20260088995A1
- Status: Published application
- Kind: A1
- Application number: 18/893,152
- Filed: 2024-09-23
- Published: 2026-03-26
- Earliest claimed: 2024-09-23
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: PATRICK JAMES MEANEY; GLENN DAVID GILDA
- Web page: https://patentgrep.com/patent/US20260088995A1

## CPC

- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- G06F 11/106: {Correcting systematically all correctable errors, i.e. scrubbing}
- G06F 21/602: {Providing cryptographic facilities or services}
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Dynamic key reassignment for memory encryption keys, including: performing a key reassignment for a memory area by, for each memory address of a plurality of memory addresses in the memory area: reading data from a selected memory address by decrypting the data using a first encryption key stored in a first encryption key register, wherein the selected memory address is stored in a scrub address register incremented after each iteration of the key reassignment; and writing the data to the selected memory address by encrypting the data using a second encryption key stored in a second encryption key register.

## Claims

### Claim 1

A computer-implemented method comprising:
performing a key reassignment for a memory area by, for each memory address of a plurality of memory addresses in the memory area:
reading data from a selected memory address by decrypting the data using a first encryption key stored in a first encryption key register, wherein the selected memory address is stored in a scrub address register incremented after each iteration of the key reassignment; and
writing the data to the selected memory address by encrypting the data using a second encryption key stored in a second encryption key register.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the data is decrypted using a first nonce and wherein the data is encrypted using a second nonce.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving, during the key reassignment, a memory operation directed to a target memory address in the memory area; and
comparing the target memory address to the selected memory address.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, further comprising block the memory operation in response to the target memory address equaling the selected memory address and in response to a scrub operation being in progress.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, further comprising performing the memory operation using the first encryption key in response to the target memory address exceeding or equaling the selected memory address.

### Claim 6 (depends on 3)

The computer-implemented method of claim 3, further comprising performing the memory operation using the second encryption key in response to the target memory address falling below the selected memory address.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein writing the data to the selected memory address further comprises performing error correction on the data.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the memory area corresponds to a particular memory channel of a plurality of memory channels each corresponding to a different encryption key.

### Claim 9

An apparatus comprising:
a memory; and
a processing device operatively coupled to the memory, the processing device configured to:
perform a key reassignment for a memory area, wherein, to scrub the memory area, the processing device is configured to, for each memory address of a plurality of memory addresses in the memory area:
read data from a selected memory address by decrypting the data using a first encryption key stored in a first encryption key register, wherein the selected memory address is stored in a scrub address register incremented after each iteration of the key reassignment; and
write the data to the selected memory address by encrypting the data using a second encryption key stored in a second encryption key register.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the data is decrypted using a first nonce and wherein the data is encrypted using a second nonce.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the processing device is further configured to:
receive, during the key reassignment, a memory operation directed to a target memory address in the memory area; and
compare the target memory address to the selected memory address.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the processing device is further configured to delay the memory operation in response to the target memory address equaling the selected memory address and in response to a scrub operation being in progress.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the processing device is further configured to perform the memory operation using the first encryption key in response to the target memory address exceeding or equaling the selected memory address.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the processing device is further configured to perform the memory operation using the second encryption key in response to the target memory address falling below the selected memory address.

### Claim 15 (depends on 9)

The apparatus of claim 9, wherein, to write the data to the selected memory address, the processing device is further configured to performing error correction on the data.

### Claim 16 (depends on 9)

The apparatus of claim 9, wherein the memory area corresponds to a particular memory channel of a plurality of memory channels each corresponding to a different encryption key.

### Claim 17

A computer program product comprising:
one or more computer-readable storage media; and
program instructions stored on the one or more storage media to perform operations comprising:
performing a key reassignment for a memory area by, for each memory address of a plurality of memory addresses in the memory area:
reading data from a selected memory address by decrypting the data using a first encryption key stored in a first encryption key register, wherein the selected memory address is stored in a scrub address register incremented after each iteration of the key reassignment; and
writing the data to the selected memory address by encrypting the data using a second encryption key stored in a second encryption key register.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the data is decrypted using a first nonce and wherein the data is encrypted using a second nonce.

### Claim 19 (depends on 17)

The computer program product of claim 17, wherein the operations further comprise:
receiving, during the key reassignment, a memory operation directed to a target memory address in the memory area; and
comparing the target memory address to the selected memory address.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the operations further comprise block the memory operation in response to the target memory address equaling the selected memory address and in response to a scrub operation being in progress.
