# US 2022/0091757 A1 · Apparatus including data storage device 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 2022/0091757 A1
- Document ID: US20220091757A1
- Status: Published application
- Kind: A1
- Application number: 17/366,438
- Filed: 2021-07-02
- Published: 2022-03-24
- Earliest claimed: 2020-09-22
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Hui Won LEE
- Web page: https://patentgrep.com/patent/US20220091757A1

## CPC

- G06F 3/0622: {in relation to access}
- G06F 21/44: Program or device authentication
- G06F 3/064: {Management of blocks}
- G06F 3/0653: {Monitoring storage devices or systems}
- 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 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Data storage devices and apparatuses that include a data storage device are disclosed. In some implementations, the apparatus may include a data storage device including a replay protected memory block accessed by a security protocol and a processor configured to generate a command information unit instructing the data storage device to access the replay protected memory block and to provide the data storage device with the command information unit, wherein the command information unit includes a basic header segment included in every information unit transferred between the host and the memory controller and an extra header segment including a host side RPMB message.

## Claims

### Claim 1

A data storage device comprising:
a replay protected memory block configured to be accessed by a security protocol; and
a memory controller configured to receive a command information unit associated with the security protocol including a host side replay protected memory block (RPM B) message from a host, to write data in the replay protected memory block according to an authentication operation using the host side RPMB message,
wherein the command information unit includes:
a basic header segment included in every information unit transferred between the host and the memory controller; and
an extra header segment including the host side RPMB message.

### Claim 2 (depends on 1)

The data storage device of claim 1, wherein the command information unit further includes a transaction specific field for identifying a type of information unit.

### Claim 3 (depends on 1)

The data storage device of claim 1, wherein the basic header segment includes a total extra header segment length field with non-zero value.

### Claim 4 (depends on 1)

The data storage device of claim 1, wherein the replay protected memory block comprises:
an authentication key storage area configured to store an authentication key used for the authentication operation;
a write counter configured to store a write count value obtained by counting the number of times a write operation of the replay protected memory block is performed;
a result register configured to store a result of an operation performed on the replay protected memory block; and
a replay protection memory block data area configured to store a write data received from the host.

### Claim 5 (depends on 4)

The data storage device of claim 4, wherein the memory controller comprises:
an authentication manager configured to perform the authentication operation and output a result of the authentication operation; and
an access controller configured to control the replay protected memory block based on the result of the authentication operation,
wherein the host side RPMB message includes a host message authentication code and host metadata.

### Claim 6 (depends on 5)

The data storage device of claim 5, wherein the authentication manager comprises:
a device message authentication code calculator configured to generate a device message authentication code using the host metadata and the authentication key; and
a message authentication code comparator configured to generate the result of the authentication operation indicating whether the host message authentication code matches the device message authentication code.

### Claim 7 (depends on 6)

The data storage device of claim 6, wherein the device message authentication code calculator generates the device message authentication code using a secure hash algorithm-256 (SHA-256) for the host metadata and the authentication key.

### Claim 8 (depends on 6)

The data storage device of claim 6, wherein the access controller controls the nonvolatile memory device to store the write data in the replay protected memory block in a case that the result of the authentication operation indicates that the host message authentication code matches the device message authentication code.

### Claim 9 (depends on 8)

The data storage device of claim 8, wherein the access controller controls the nonvolatile memory device to increase a current write count value stored in the write counter, store the increased write count value in the write counter, and store, in the result register, a result code indicating that a write operation for the replay protected memory block is successful.

### Claim 10 (depends on 9)

The storage device of claim 9, wherein the access controller generates a response information unit including a device side RPMB message.

### Claim 11 (depends on 10)

The data storage device of claim 10, wherein the response information unit includes an extra header segment including the device side RPMB message.

### Claim 12 (depends on 11)

The data storage device of claim 11, wherein the device side RPMB message includes the increased write count value, the result code and the device message authentication code.

### Claim 13

A data storage device comprising:
a replay protected memory block configured to be accessed by a security protocol; and
a memory controller configured to receive a command information unit associated with the security protocol including a host side RPMB message from a host, to read data from the replay protected memory block,
wherein the command information unit includes
a basic header segment included in every information unit transferred between the host and the memory controller; and
an extra header segment including the host side RPMB message.

### Claim 14 (depends on 13)

The data storage device of claim 13, wherein the command information unit further includes a transaction specific field for identifying a type of information unit.

### Claim 15 (depends on 13)

The data storage device of claim 13, wherein the basic header segment includes a total extra header segment length field with non-zero value.

### Claim 16 (depends on 13)

The data storage device of claim 13, wherein the host side RPMB message includes an address for identifying data to be read in the replay protected memory block.

### Claim 17 (depends on 13)

The data storage device of claim 13, wherein the replay protected memory block comprises:
an authentication key storage area configured to store an authentication key used for generating a device message authentication code; and
a replay protection memory block data area for storing data.

### Claim 18 (depends on 15)

The data storage device of claim 15, wherein the memory controller comprises:
an authentication manager configured to generate the device message authentication code to be used to authenticate for a read data from the replay protection memory block by the host; and
an access controller configured to generate a response information unit as a response to the command information and to provide the response information unit to the host after the read data is transmitted to the host.

### Claim 19 (depends on 16)

The data storage device of claim 16, wherein the access controller comprises:
a device metadata generator configured to generate device metadata including at least a portion of data included in the host side RPMB message; and
a device protocol component generator configured to generate a device side RPMB message including the device metadata and the device message authentication code.

### Claim 20 (depends on 19)

The data storage device of claim 19, wherein the authentication manager generates the device message authentication code using a secure hash algorithm-256 (SHA-256) for the device metadata and the authentication key.

### Claim 21 (depends on 18)

The data storage device of claim 18, wherein the device side RPMB message is included in an extra header segment of the response information unit.

### Claim 22 (depends on 17)

The data storage device of claim 17, wherein the at least a portion of data included in the host side RPMB message is a nonce included in the host side RPMB message.

### Claim 23 (depends on 17)

The data storage device of claim 17, wherein the at least a portion of data included in the host side RPMB message is the address for identifying data to be read in the replay protected memory block included in the host side RPMB message.

### Claim 24

A host device, comprising:
a host message authentication code calculator configured to calculate a host message authentication code using host metadata;
a host command generator configured to generate a command information unit instructing a data storage device that is controlled by the host device and includes a replay protected memory block to access the replay protected memory block and to provide the data storage device with the command information unit,
wherein the command information unit includes:
a basic header segment included in every information unit transferred between the host and the memory controller; and
an extra header segment including the host message authentication code and host metadata.

### Claim 25 (depends on 24)

The host device of claim 24, wherein the command information unit further includes a transaction specific field for identifying a type of information unit.

### Claim 26 (depends on 24)

The host device of claim 24, wherein the basic header segment includes a total extra header segment length field with non-zero value.

### Claim 27 (depends on 24)

The host device of claim 24, wherein the host command generator receives a response information unit from the data storage device, and
wherein the response information unit includes:
a basic header segment including a total extra header segment length field with non-zero value; and
an extra header segment including a device side RPMB message.

### Claim 28

An apparatus comprising:
a data storage device including a replay protected memory block accessed by a security protocol; and
a processor configured to generate a command information unit instructing the data storage device to access the replay protected memory block and to provide the data storage device with the command information unit,
wherein the command information unit includes:
a basic header segment included in every information unit transferred between the host and the memory controller; and
an extra header segment including a host side RPMB message.

### Claim 29 (depends on 28)

The apparatus of claim 28, wherein the basic header segment includes a total extra header segment length field with non-zero value

### Claim 30 (depends on 28)

The apparatus of claim 28, wherein the replay protected memory block comprises:
an authentication key storage area configured to store an authentication key used for an authentication operation before accessing the replay protected memory block;
a write counter configured to store a write count value obtained by counting a number of times of a write operation performed for the replay protected memory block;
a result register configured to store a result of an operation performed on the replay protected memory block; and
a replay protection memory block data area configured to store a write data received from the processor.

### Claim 31 (depends on 30)

The apparatus of claim 30, wherein the data storage device comprises:
an authentication manager configured to perform the authentication operation and output a result of the authentication operation; and
an access controller configured to control the replay protected memory block based on the result of the authentication operation,
wherein the host side RPMB message includes a host message authentication code and host metadata.
