IP Library › Granted Patent US 11,714,561
Granted Patent B2
US 11,714,561 · App. 17/358,367 · Granted Aug 1, 2023

System, device and method for writing data to protected region

Inventors: Hyunsook Hong (Hwaseong-si, KR); Jisoo Kim (Seongnam-si, KR); Yongsuk Lee (Gunpo-si, KR); Younsung Chu (Yongin-si, KR); Hyungsup Kim (Hwaseong-si, KR)
Assignee: Samsung Electronics Co., Ltd.
G06F3/0622G06F3/0637G06F3/0659G06F3/0673G06F21/78G06F7/588
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,714,561
App. No.
17/358,367
Granted
Aug 1, 2023
Kind
B2
Abstract

A method of writing data to a protected region in response to a request from a host includes receiving a first write request including a first host message authentication code and a first random number from the host, verifying the first write request based on a write count, the first random number, and the first host message authentication code, updating the write count based on a result of verifying the first write request, generating a first device message authentication code based on the updated write count and the first random number, and providing the host with a first response including the first device message authentication code and a result of the verifying of the first write request.

Claims (58)

1. A method of writing data to a protected region in response to a request from a host, the method comprising:

providing, to the host, a device write count;

receiving, from the host, a first write request including a first host message authentication code and a first random number, the first host message authentication code being based on a host write count, which is set to be the same as the device write count, and the first random number;

verifying the first write request based on the device write count and the host write count, the first random number, and the first host message authentication code;

updating the device write count based on a result of verifying the first write request, the updating of the device write count including incrementing the device write count when the verifying of the first write request succeeds;

generating a first device message authentication code based on the updated device write count and the first random number; and

providing the host with a first response including the first device message authentication code and the result of verifying the first write request, wherein the first response further includes the first random number.

2. The method as claimed in claim 1 , wherein the updating of the device write count includes:

maintaining the device write count, when the verifying of the first write request fails.

3. The method as claimed in claim 1 , further comprising:

receiving a second write request including a second host message authentication code, a second host write count, and a second random number from the host; and

verifying the second write request based on the updated device write count, the second random number, and the second host message authentication code.

4. The method as claimed in claim 3 , further comprising:

generating a second device message authentication code based on the updated device write count and the second random number; and

providing the host with a second response including the second device message authentication code and a result of the verifying of the second write request.

5. The method as claimed in claim 1 , wherein the verifying of the first write request includes:

generating a first host message verification code based on the device write count and the first random number; and

comparing the first host message verification code with the first host message authentication code.

6. The method as claimed in claim 5 , wherein:

the first write request includes a first host write count, and

the verifying of the first write request further includes comparing the device write count with the first host write count.

7. The method as claimed in claim 5 , wherein:

the generating of the first host message verification code is based on a key shared with the host in advance, the device write count, and the first random number, and

the generating of the first device message authentication code is based on the key, the updated write count, and the first random number.

8. A storage device configured to communicate with a host, the storage device comprising:

a memory including a protected region; and

a controller, wherein the controller is configured to:

provide, to the host, a device write count,

receive, from the host, a first write request including a first host message authentication code and a first random number, the first host message authentication code being based on a host write count, which is set to be the same as the device write count, and the first random number,

verify the first write request based on the device write count and the host write count, the first random number, and the first host message authentication code,

write data included in the first write request to the protected region when the verifying of the first write request succeeds,

update the device write count based on a result of verifying the first write request, the updating of the device write count including incrementing the device write count when the verifying of the first write request succeeds,

generate a first device message authentication code based on the updated write count and the first random number, and

provide the host with a first response including the first device message authentication code and the result of verifying the first write request, wherein the first response further includes the first random number.

9. The storage device as claimed in claim 8 , wherein the controller is further configured to verify the first write request by generating a first host message verification code based on the device write count and the first random number, and comparing the first host message verification code with the first host message authentication code.

10. A method of writing data to a storage device including a protected region, the method comprising:

receiving, at a host, a device write count from the storage device, and setting a host write count to be the same as the device write count;

generating, by the host, a first host message authentication code based on the host write count and a first random number;

providing the storage device with a first write request, the first write request including the first host message authentication code and the first random number;

receiving, at the host, a first response including a first device message authentication code from the storage device;

verifying, at the host, the first response based on an increment value from the host write count, the first random number, and the first device message authentication code, wherein the verifying of the first response includes determining whether the first random number is identical to a random number included in the first response; and

updating the host write count based on a result of the verifying of the first response, the updating of the host write count including incrementing the host write count to be the same as the increment value used in the verifying when the verifying of the first response succeeds.

11. The method as claimed in claim 10 , wherein the updating of the write count includes:

maintaining the host write count, when the verifying of the first response fails.

12. The method as claimed in claim 10 , further comprising:

generating a second random number;

generating a second host message authentication code based on the updated host write count and the second random number; and

providing the storage device with a second write request including the second host message authentication code and the second random number.

13. The method as claimed in claim 12 , further comprising:

receiving a second response including a second device message authentication code from the storage device; and

verifying the second response based on an increment value from the updated host write count, the second random number, and the second device message authentication code.

14. The method as claimed in claim 10 , wherein the verifying of the first response includes:

generating a first device message verification code based on the increment value from the host write count and the first random number; and

comparing the first device message verification code with the first device message authentication code.

15. The method as claimed in claim 14 , wherein the verifying of the first response further includes comparing the first random number with a third random number included in the first response.

16. The method as claimed in claim 14 , wherein:

the generating of the first host message authentication code is based on a key shared with the storage device in advance, the host write count, and the first random number, and

the generating of the first device message verification code is based on the key, the increment value from the host write count, and the first random number.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 25, 2021
From: HONG, HYUNSOOK; KIM, JISOO; LEE, YONGSUK; CHU, YOUNSUNG; KIM, HYUNGSUP
To: SAMSUNG ELECTRONICS CO., LTD.
Reel/Frame 056667/0828 →
Priority Claims (2)
KR 10-2020-0089165 · Jul 17, 2020 · national
KR 10-2020-0176602 · Dec 16, 2020 · national
Continuity (1)
Related Publication 20220019356A1 · Jan 20, 2022
Cited By (1)
US 12,219,057