# US 2023/0143267 A1 · Method of allocating and protecting memory in computational storage device, computational storage device performing the same and method of operating storage system using the same

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

- Number: US 2023/0143267 A1
- Document ID: US20230143267A1
- Status: Published application
- Kind: A1
- Application number: 17/895,260
- Filed: 2022-08-25
- Published: 2023-05-11
- Earliest claimed: 2021-11-08
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: JAEHO SHIN; JEONGHO LEE; YOUNGGEON YOO; HYEOKJUN CHOE
- Web page: https://patentgrep.com/patent/US20230143267A1

## CPC

- G06F 12/02: Addressing or allocation; Relocation (program address sequencing G06F9/00; arrangements for selecting an address in a digital store G11C8/00)
- H04L 9/0866: {involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/14: Protection against unauthorised use of memory {or access to memory}
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 12/1441: {for a range}
- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- G06F 2212/1052: Security improvement
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

In a method of allocating and protecting a memory in a computational storage device including a first computing engine and a buffer memory, a memory allocation request is received from a host device that is disposed outside the computational storage device. Based on the memory allocation request, a memory allocation operation in which a first memory region is generated in the buffer memory and a first key associated with the first memory region is generated is performed. A program execution request is received from the host device. Based on the program execution request, a program execution operation is performed in which a first program is executed by the first computing engine by accessing the first memory region based on an encryption or a decryption using the first key.

## Claims

### Claim 1

A method of allocating and protecting a memory in a computational storage device including a first computing engine and a buffer memory, the method comprising:
receiving a memory allocation request from a host device that is disposed outside the computational storage device;
based on the memory allocation request, performing a memory allocation operation in which a first memory region is generated in the buffer memory and a first key associated with the first memory region is generated;
receiving a program execution request from the host device; and
based on the program execution request, performing a program execution operation in which a first program is executed by the first computing engine by accessing the first memory region based on an encryption or a decryption using the first key.

### Claim 2 (depends on 1)

The method of claim 1, wherein performing the memory allocation operation includes:
setting the first memory region on a part of the buffer memory and a first memory region identification (ID) corresponding to the first memory region;
generating the first key associated with the first memory region ID; and
storing the first memory region ID and the first key.

### Claim 3 (depends on 2)

The method of claim 2, wherein after the memory allocation operation is successfully completed, the computational storage device is configured to transmit an allocation success response to the host device.

### Claim 4 (depends on 3)

The method of claim 3, wherein after the memory allocation request is received, the computational storage device is configured to transmit an allocation success response to the host device without receiving an additional data write request and additional write data from the host device.

### Claim 5 (depends on 1)

The method of claim 1, wherein performing the program execution operation includes:
providing the first key based on an access request to the first memory region; and
performing at least one of an encryption operation on write data to be stored in the first memory region and a decryption operation on read data to be retrieved from the first memory region using the first key.

### Claim 6 (depends on 5)

The method of claim 5, wherein:
the access request to the first memory region includes a first request for storing first data, which is a target of executing the first program, in the first memory region, and
performing at least one of the encryption operation and the decryption operation includes:
encrypting the first data using the first key to generate encrypted first data; and
storing the encrypted first data in the first memory region.

### Claim 7 (depends on 6)

The method of claim 6, wherein:
the access request to the first memory region further includes a second request for executing the first program based on the first data and for storing second data, which is a result of executing the first program, in the first memory region, and
wherein performing at least one of the encryption operation and the decryption operation further includes:
reading the encrypted first data from the first memory region;
obtaining the first data by decrypting the encrypted first data using the first key;
obtaining the second data by executing the first program based on the first data;
encrypting the second data using the first key to generate encrypted second data; and
storing the encrypted second data in the first memory region.

### Claim 8 (depends on 7)

The method of claim 7, wherein:
the access request to the first memory region further includes a third request for transmitting the second data to the host device, and
performing at least one of the encryption operation and the decryption operation further includes:
reading the encrypted second data from the first memory region;
obtaining the second data by decrypting the encrypted second data using the first key; and
transmitting the second data to the host device.

### Claim 9 (depends on 5)

The method of claim 5, wherein:
performing the program execution operation further includes checking whether the access request to the first memory region is a legitimate access request, and
only in response to the access request to the first memory region being the legitimate access request, the computational storage device is configured to provide the first key.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
receiving a program load request from the host device; and
based on the program load request, loading the first program in a program slot.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
receiving a program activation request from the host device; and
based on the program activation request, transmitting the first program to the first computing engine.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
receiving a memory deallocation request from the host device; and
based on the memory deallocation request, performing a memory deallocation operation in which the first memory region is released in the buffer memory and the first key is deleted.

### Claim 13 (depends on 12)

The method of claim 12, wherein performing the memory deallocation operation includes:
deleting the first key associated with a first memory region ID corresponding to the first memory region, and
releasing a setting of the first memory region and the first memory region ID.

### Claim 14 (depends on 12)

The method of claim 12, further comprising:
receiving a memory reallocation request from the host device; and
based on the memory reallocation request, performing a memory reallocation operation in which the first memory region is generated in the buffer memory and a second key associated with the first memory region is generated.

### Claim 15 (depends on 14)

The method of claim 14, wherein:
the second key is different from the first key, and
second data is encrypted using the second key after performing the memory deallocation operation and the memory reallocation operation and is different from first data encrypted using the first key after performing the memory allocation operation.

### Claim 16 (depends on 1)

The method of claim 1, further comprising performing an initialization operation on the first memory region.

### Claim 17 (depends on 16)

The method of claim 16, wherein performing the initialization operation includes:
receiving an initialization request and initialization data from the host device, and
writing the initialization data to the first memory region.

### Claim 18

A computational storage device comprising:
a plurality of nonvolatile memories;
a buffer memory configured to temporarily store data that is stored in or to be stored in the plurality of nonvolatile memories, the buffer memory being used to perform a data processing function; and
a storage controller configured to control an operation of the plurality of nonvolatile memories and an operation of the buffer memory, wherein:
the storage controller includes:
a first computing engine used to perform the data processing function; and
a security module used to access the buffer memory, and
the storage controller is configured to:
receive a memory allocation request from a host device that is disposed outside the computational storage device;
based on the memory allocation request, perform a memory allocation operation in which a first memory region is generated in the buffer memory and a first key associated with the first memory region is generated;
receive a program execution request from the host device; and
based on the program execution request, perform a program execution operation in which a first program is executed by the first computing engine by accessing the first memory region based on an encryption or a decryption using the first key.

### Claim 19 (depends on 18)

The computational storage device of claim 18, wherein the security module includes:
a key generator configured to generate the first key associated with a first memory region identification (ID) corresponding to the first memory region;
a key memory configured to store the first memory region ID and the first key;
an encryption module configured to perform an encryption operation using the first key; and
a decryption module configured to perform a decryption operation using the first key.

### Claim 20

A method of operating a storage system including a host device and a computational storage device, the computational storage device including a storage controller and a buffer memory, the storage controller performing a data processing function, the method comprising:
transmitting, by the host device, a memory allocation request to the storage controller;
based on the memory allocation request, performing, by the storage controller, a memory allocation operation in which a first memory region is generated in the buffer memory and a first key associated with the first memory region is generated;
transmitting, by the host device, a program load request to the storage controller;
based on the program load request, loading by the storage controller a first program in a program slot;
transmitting by the host device a program activation request to the storage controller;
based on the program activation request, transmitting by the storage controller the first program from the program slot to a first computing engine;
transmitting by the host device a program execution request to the storage controller;
based on the program execution request, performing by the storage controller a program execution operation in which the first program is executed by the first computing engine by accessing the first memory region based on an encryption or a decryption using the first key;
transmitting by the host device a memory deallocation request to the storage controller; and
based on the memory deallocation request, performing by the storage controller a memory deallocation operation in which the first memory region is released in the buffer memory and the first key is deleted, wherein:
performing the program execution operation includes:
encrypting first data, which is a target of executing the first program, using the first key to generate encrypted first data;
storing the encrypted first data in the first memory region;
reading the encrypted first data from the first memory region;
obtaining the first data by decrypting the encrypted first data using the first key;
obtaining second data, which is a result of executing the first program, by executing the first program based on the first data;
encrypting the second data using the first key to generate encrypted second data;
storing the encrypted second data in the first memory region;
reading the encrypted second data from the first memory region;
obtaining the second data by decrypting the encrypted second data using the first key; and
transmitting, by the storage controller, the second data to the host device.

### Claim at position 21

21-28. (canceled)
