# US 2022/0283731 A1 · Storage device and operating method of storage device

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

- Number: US 2022/0283731 A1
- Document ID: US20220283731A1
- Status: Published application
- Kind: A1
- Application number: 17/451,214
- Filed: 2021-10-18
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: KWANGHO YOO; HOYOU JUN; JAEJOON CHOI; HONG-MOOK CHOI; JUHYUNG HONG
- Web page: https://patentgrep.com/patent/US20220283731A1

## CPC

- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 3/0613: {in relation to throughput}
- G06F 3/0622: {in relation to access}
- G06F 3/0623: {in relation to content}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 12/1441: {for a range}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- G06F 2212/1052: Security improvement
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- 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
- 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)

## Abstract

The present disclosure describes a storage device. The storage device includes a nonvolatile memory device and a memory controller controlling the nonvolatile memory device. The memory controller includes a plurality of encryption and decryption cores, the plurality of encryption and decryption cores perform initialization at the same time and generate a plurality of initial tweak values, respectively, sequentially select the plurality of initial tweak values to perform encryption or decryption, and perform the encryption or the decryption together by using an initial tweak value selected from the plurality of initial tweak values.

## Claims

### Claim 1

A storage device comprising:
a memory device; and
a memory controller configured to control the memory device,
wherein the memory controller includes a plurality of encryption and decryption cores,
wherein the plurality of encryption and decryption cores is configured to perform initialization in parallel, and to generate a plurality of initial tweak values, respectively,
wherein the plurality of encryption and decryption cores is configured to sequentially select the plurality of initial tweak values to perform encryption or decryption, and
wherein the plurality of encryption and decryption cores is configured to perform the encryption or the decryption using an initial tweak value selected from the plurality of initial tweak values.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein each of the encryption and decryption cores is configured to receive a key and an initial vector and to generate a corresponding initial tweak value of the plurality of initial tweak values by performing the initialization based on the key and the initial vector.

### Claim 3 (depends on 2)

The storage device of claim 2, wherein the initial vector includes information associated with data targeted for the encryption or the decryption.

### Claim 4 (depends on 1)

The storage device of claim 1, wherein, after the encryption or the decryption is performed based on cypher text stealing (CTS), the plurality of encryption and decryption cores are configured to select a next initial tweak value of the plurality of initial tweak values.

### Claim 5 (depends on 1)

The storage device of claim 1, wherein data targeted for the encryption or the decryption is divided into segments, and
wherein the plurality of encryption and decryption cores are configured to perform the encryption or the decryption on the segments, based on an initial tweak value selected from the plurality of initial tweak values.

### Claim 6 (depends on 5)

The storage device of claim 5, wherein the plurality of encryption and decryption cores are configured to sequentially start the encryption or the decryption on the segments, and
wherein each of the plurality of encryption and decryption cores is configured to start the encryption or the decryption based on a result of revising an initial tweak value used by an encryption and decryption core immediately previously starting the encryption or the decryption.

### Claim 7 (depends on 5)

The storage device of claim 5, wherein, when a size of a remaining portion of the data, on which the encryption or the decryption is not performed, is smaller than a size of each of the segments after one encryption and decryption core of the plurality of encryption and decryption cores performs the encryption or the decryption, the one encryption and decryption core performs cypher text stealing (CTS).

### Claim 8 (depends on 7)

The storage device of claim 7, wherein the cypher text stealing includes:
combining the remaining portion of the data with partial data of result data of the encryption or the decryption to generate combination data having the size of each of the segments; and
performing, at the one encryption and decryption core, the encryption or the decryption on the combination data.

### Claim 9 (depends on 1)

The storage device of claim 1, wherein the memory controller further includes a plurality of registers, and
wherein the plurality of encryption and decryption cores is configured store the plurality of initial tweak values in the plurality of registers, respectively.

### Claim 10 (depends on 9)

The storage device of claim 9, wherein, when one initial tweak value is selected from the plurality of initial tweak values, the plurality of encryption and decryption cores read the selected initial tweak value from a register, in which the selected initial tweak value is stored, from among the plurality of registers.

### Claim 11 (depends on 10)

The storage device of claim 10, wherein the register is initialized after the plurality of encryption and decryption cores read the selected initial tweak value from the register.

### Claim 12 (depends on 1)

The storage device of claim 1, wherein, after sequentially selecting the plurality of initial tweak values to perform the encryption or the decryption, the plurality of encryption and decryption cores is configured to perform second initialization to respectively generate a plurality of second initial tweak values, and
wherein the plurality of encryption and decryption cores is configured to sequentially select the plurality of second initial tweak values to perform the encryption or the decryption.

### Claim 13

An operating method of a storage device which includes a memory device and a plurality of encryption cores, the method comprising:
receiving a write request and an address and write data associated with the write request;
initializing the plurality of encryption cores to generate a plurality of initial tweak values;
sequentially selecting the plurality of initial tweak values and encrypting the write data using the plurality of encryption cores; and
transmitting the encrypted write data to the memory device.

### Claim 14 (depends on 13)

The method of claim 13, wherein the encrypting of the write data includes:
dividing the write data into sectors based on logical block addresses; and
sequentially selecting the plurality of initial tweak values and sequentially encrypting the sectors by using the plurality of encryption cores.

### Claim 15 (depends on 14)

The method of claim 14, wherein the encrypting of the sectors sequentially includes:
dividing each of the sectors into segments; and
encrypting the segments in parallel by using the plurality of encryption cores, based on an initial tweak value selected from the plurality of initial tweak values.

### Claim 16 (depends on 15)

The method of claim 15, wherein, in response to that a size of a segment, which is to be finally encrypted, from among the segments is smaller than a size of a previously encrypted segment, the plurality of encryption cores select a next initial tweak value of the plurality of initial tweak values after encryption of the segment to be finally encrypted is performed.

### Claim 17 (depends on 16)

The method of claim 16, wherein a time interval where the encryption of the segment to be finally encrypted is performed and a time interval where encryption using the next initial tweak value is performed at least partially overlap each other.

### Claim 18

An operating method of a storage device which includes a memory device and a plurality of decryption cores, the method comprising:
receiving a read request and an address;
initializing the plurality of decryption cores to generate a plurality of initial tweak values;
dividing read data read from the memory device into sectors based on logical block addresses; and
sequentially selecting the plurality of initial tweak values and decrypting each of the sectors by using the plurality of decryption cores.

### Claim 19 (depends on 18)

The method of claim 18, wherein the decryption is based on cypher text stealing (CTS).

### Claim 20 (depends on 19)

The method of claim 19, wherein, after the decryption is performed based on the cypher text stealing (CTS), the plurality of decryption cores select a next initial tweak value of the plurality of initial tweak values.
