CPC G06F 12/145 (2013.01) [G06F 12/1441 (2013.01); G06F 12/1466 (2013.01); G06F 11/1072 (2013.01); G06F 11/1441 (2013.01); G06F 12/0246 (2013.01); G06F 2212/1052 (2013.01); G06F 2212/7206 (2013.01)] | 19 Claims |
1. A storage device, comprising:
a memory unit corresponding to non-volatile memory; and
a controller unit configured to communicate with a host device wherein, while in communication with the host device, the storage device is further configured to:
receive, from the host device, a request, the request including a request message authentication code and write protection information including at least one of start address information, length information, writable information indicating whether to apply write protection to a memory area, and a selection value selected from among at least first to third write-protection values of a field indicating a type of write-protection to apply to the memory area in response to a power-off, a hardware reset, a power-on, or the request, wherein:
the first write-protection value indicates that the writable information is changed to a first value after a powering on of the storage device, the first value indicating that the memory area is writable,
the second write-protection value indicates that the writable information is changed to a second value after a powering off or a hardware reset of the storage device, the second value indicating that the memory area is protected against writing, and
the third write-protection value indicates that the writable information is changed by the request,
the start address information indicates a logical block address at which the memory area in a non-volatile memory of the storage device starts, and
the length information indicates a length of the memory area;
generate a message authentication code based on at least one of the start address information and the length information, and a key stored at the storage device;
authenticate the request based on the generated message authentication code and the request message authentication code; and
process the request based on a result of the authentication.
|