STORAGE CONTROLLER, STORAGE SYSTEM, AND METHOD OF OPERATING STORAGE DEVICE
20230222219 · 2023-07-13
Assignee
Inventors
Cpc classification
G06F21/64
PHYSICS
G06F21/572
PHYSICS
G06F21/51
PHYSICS
International classification
G06F21/57
PHYSICS
Abstract
A storage system includes: a host configured to receive a software image and a first signature for the software image, the first signature being generated based on a first secret key, and generate, based on a second secret key, a second signature for the software image; and a storage device configured to receive, from the host, the software image, the first signature, the second signature, and a second public key related to the second secret key and execute the software image, based on a first verification and a second verification the first verification being performed on the first signature on the basis of a first public key related to the first secret key, and the second verification being performed on the second signature on the basis of the second public key.
Claims
1. A storage system comprising: a host configured to receive a software image and a first signature for the software image, the first signature being generated based on a first secret key, and generate, based on a second secret key, a second signature for the software image; and a storage device configured to receive, from the host, the software image, the first signature, the second signature, and a second public key related to the second secret key and execute the software image based on a first verification and a second verification, the first verification being performed on the first signature on the basis of a first public key related to the first secret key, and the second verification being performed on the second signature on the basis of the second public key.
2. The storage system of claim 1, further comprises: a processor; a non-volatile memory storing the software image, the first signature, and the second signature; a system memory configured to store the software image executed by the processor; and a secure memory storing the first public key and the second public key, and wherein the storage device is configured to load the software image on the system memory, after the first signature and the second signature are verified.
3. The storage system of claim 2, wherein the non-volatile memory stores a state table regarding authentication states, the authentication states indicating on which of the first public key and the second public key authentication of the software image is based, and the processor is configured to, based on the state table, change an authentication state to a state of authenticating the software image based on the first public key and the second public key.
4. The storage system of claim 2, wherein the storage device is further configured to receive a signature for the second public key from the host, the signature being generated based on the first secret key, and the secure memory stores the second public key, after authentication performed on the second public key is completed.
5. The storage system of claim 2, wherein the storage device is further configured to receive, from the host, a third public key related to a third secret key, a signature for the third public key, and a signature for the second public key, the signature for the third public key generated based on the first secret key, and the signature for the second public key generated based on the third secret key, and the secure memory stores the second public key and the third public key, after first authentication performed on the third public key and second authentication performed on the second public key are completed.
6. The storage system of claim 2, wherein the storage device is further configured to receive, from the host, an updated software image, and a third signature and a fourth signature for the updated software image, and the secure memory stores the updated software image, the third signature, and the fourth signature, after authentication performed on the third signature based on the first public key and authentication performed on the fourth signature based on the second public key are completed.
7. The storage system of claim 6, wherein the storage device is further configured to execute the updated software image during booting, after the third signature and the fourth signature are verified.
8. The storage system of claim 1, wherein the storage device is further configured to transfer a verification failure signal to the host, in response to failure of verification of the first signature or the second signature.
9. A storage controller comprising: a processor; a non-volatile memory storing a software image, which is executed by the processor, and a first signature for the software image; a secure memory storing a first public key used to verify the first signature; and a host interface configured to receive, from a host, a second public key, and a second signature for the software image, wherein the processor is configured to authenticate the second public key, authenticate the second signature based on the second public key, store the second signature in the non-volatile memory, and store the second public key in the secure memory.
10. The storage controller of claim 9, wherein the processor is further configured to: during booting, authenticate the software image based on the first public key and the second public key; and execute the software image based on an authentication result.
11. The storage controller of claim 9, wherein the non-volatile memory stores a state table regarding authentication states, the authentication states indicating signatures verified to authenticate the software image before the software image is executed, and the processor is further configured to change, based on the state table, an authentication state to a state of the first signature and the second signature being verified after the first signature and the second signature are verified.
12. The storage controller of claim 9, wherein the host interface is further configured to receive, from the host, an updated software image, and a third signature and a fourth signature for the updated software image, and the processor is further configured to verify the third signature based on the first public key, verify the fourth signature based on the second public key, and store the updated software image, the third signature, and the fourth signature in the non-volatile memory.
13. The storage controller of claim 12, wherein the processor is further configured to, during booting, execute the updated software image, after the third signature and the fourth signature are verified.
14. The storage controller of claim 9, wherein the host interface is further configured to transfer a verification failure signal to the host, in response to failure of verification of the first signature and the second signature.
15. A method of operating a storage device, which communicates with a host and stores a first public key, the method comprising: receiving, by the storage device from the host, a software image, a first signature for the software image, a second signature for the software image, and a second public key; performing, by the storage device, first verification on the first signature based on the first public key; performing, by the storage device, second verification on the second signature based on the second public key; and storing, by the storage device, the software image, the first signature, and the second signature based on the first verification and the second verification.
16. The method of claim 15, further comprising: performing, by the storage device, the first verification and the second verification, during booting of the storage device; and executing, by the storage device, the software image based on the first verification and the second verification.
17. The method of claim 15, further comprising: receiving, by the storage device from the host, a third public key, a third signature for the third public key, and a fourth signature for the second public key; performing, by the storage device, third verification on the third signature based on the first public key; performing, by the storage device, fourth verification on the fourth signature based on the third public key; and storing, by the storage device, the third public key and the second public key based on the third verification and the fourth verification.
18. The method of claim 15, further comprising: outputting, by the storage device to the host, a signal indicating an abort of booting in response to failure of the first verification or the second verification.
19. (canceled)
20. The method of claim 15, wherein the performing of the first verification comprises: generating, by the storage device, a first digest regarding the software image; generating, by the storage device, a second digest by decrypting the first signature based on the first public key; and generating, by the storage device, information indicating validity of the first signature based on a comparison result between the first digest and the second digest.
21. The method of claim 20, wherein the performing of the second verification comprises: generating, by the storage device, a third digest regarding the software image and the first verification; generating, by the storage device, a fourth digest by decrypting the second signature, based on the second public key; and generating, by the storage device, information indicating validity of the second signature based on a comparison result between the third digest and the fourth digest.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Example embodiments of the inventive concepts will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings in which:
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
DETAILED DESCRIPTION OF THE EXAMPLE EMBODIMENTS
[0020] Hereinafter, various example embodiments of the inventive concepts will be described with reference to the accompanying drawings.
[0021]
[0022] Referring to
[0023] In some example embodiments, the host 10 may include at least one core for processing instructions. In some example embodiments, the host 10 may include, as non-limiting examples, an application processor, a microprocessor, a central processing unit (CPU), a processor core, a multi-core processor, a multi-processor, an application-specific integrated circuit (ASIC), and a field programmable gate array (FPGA).
[0024] The host 10 may receive from the outside thereof, firmware FW.sub.signed A signed based on a first secret key sKEY.sub.A (which is hereinafter referred to as single-signed firmware). The single-signed firmware FW.sub.signed A may be understood as including firmware FW and an A signature SIG A generated based on the first secret key sKEY.sub.A. Herein, firmware may be referred to as software or a program. Firmware may refer to software for controlling the storage device 20. For example, firmware of the storage device 20 may include a host interface layer (HIL), a flash translation layer (FTL), and a flash interface layer (FIL). The HIL may manage data transmission between the host 10 and a storage controller 21, the FTL may convert a logical address, which is received from the host 10, into a physical address of a non-volatile memory 22, and the FIL may manage data transmission between the storage controller 21 and the non-volatile memory 22.
[0025] The host 10 may receive the single-signed firmware FW.sub.signed A from a manufacturer of the storage device 20, a manufacturer of the storage system 1, or a supplier of the firmware FW (which is hereinafter referred to as a firmware distributor). The firmware distributor may generate the A signature SIG A for the firmware FW based on the first secret key sKEY.sub.A, and may provide the firmware FW and the A signature SIG A to the host 10. The firmware distributor may manage the first secret key sKEY.sub.A not to be open to the outside. For example, the firmware distributor may manage the first secret key sKEY.sub.A by using a hardware security module (HSM) and may generate the single-signed firmware FW.sub.signed A based on the first secret key sKEY.sub.A.
[0026] The host 10 may generate dual-signed firmware FW.sub.signed A, B by signing the single-signed firmware FW.sub.signed A based on a second secret key sKEY.sub.B, and may provide the dual-signed firmware FW.sub.signed A, B to the storage device 20. The dual-signed firmware FW.sub.signed A, B may be understood as including the firmware FW, the A signature SIG A generated based on the first secret key sKEY.sub.A, and a B signature SIG B generated based on the second secret key sKEY.sub.B. Specifically, the host 10 may generate the B signature SIG B for the single-signed firmware FW.sub.signed A based on the second secret key sKEY.sub.B, and may provide the single-signed firmware FW.sub.signed A and the B signature SIG B to the storage device 20. An example of a method of generating a signature may be described below with reference to
[0027] The storage device 20 may include the storage controller 21 and the non-volatile memory 22.
[0028] The storage controller 21 may authenticate the firmware FW based on a first public key pKEY.sub.A and a second public key pKEY.sub.B. The authentication of firmware is to determine the authenticity of the firmware and may refer to determining that the firmware is generated by an authenticated entity and firmware data is authentic. The authenticated firmware may refer to trustable firmware. In some example embodiments, when the B signature SIG B is verified based on the second public key pKEY.sub.B, it may be authenticated that the single-signed firmware FW.sub.signed A is generated by the host 10. When the A signature SIG A is verified based on the first public key pKEY.sub.A, it may be authenticated that the firmware FW is generated by the firmware distributor.
[0029] The storage controller 21 may store the authenticated dual-signed firmware FW.sub.signed A, B. The storage controller 21 may authenticate the firmware FW by verifying the A signature SIG A and the B signature SIG B based on the first public key pKEY.sub.A and the second public key pKEY.sub.B, during booting, and may execute the firmware FW based on verification results. The first public key pKEY.sub.A is a key related to the first secret key sKEY.sub.A and may be used to verify a signature (for example, the A signature SIG A) generated based on the first secret key sKEY.sub.A. The first public key pKEY.sub.A may be provisioned into the storage controller 21 during the process of fabricating the storage controller 21. The second public key pKEY.sub.B is a key related to the second secret key sKEY.sub.B and may be used to verify a signature (for example, the B signature SIG B) generated based on the second secret key sKEY.sub.B. The storage controller 21 may obtain the second public key pKEY.sub.B from the host 10.
[0030] The storage controller 21 according to some example embodiments of the inventive concepts may determine that the received firmware FW is the firmware FW transferred from an authentic firmware distributor and the authentic host 10, by performing authentication on the firmware FW based on the first public key pKEY.sub.A and the second public key pKEY.sub.B.
[0031] The non-volatile memory 22 may not lose stored data even when the supply of power is terminated. The non-volatile memory 22 may include flash memory, magnetic random access memory (MRAM), phase-change random access memory (PRAM), resistive random access memory (RRAM), or the like. The non-volatile memory 22 may also include a storage medium, such as tape, a magnetic disk, or an optical disk. The storage controller 21 may provide data stored in the non-volatile memory 22 to the host 10 and may store data received from the host 10 in the non-volatile memory 22.
[0032]
[0033] The image signing system 30 may be implemented by any computing system. For example, components of the image signing system 30 may each be implemented by a hardware module designed by logic synthesis, a software module executed by at least one core, a processing unit including at least one core and a software module, and a combination thereof. The image signing system 30 may receive firmware transferred to the host 10. In some example embodiments, the image signing system 30 may receive the updated firmware FW. As shown in
[0034] The key generator 31 may generate a key pair including the first secret key sKEY.sub.A and the first public key pKEY.sub.A. For example, the key generator 31 may include a random number generator and may generate a key pair based on a random number. In some example embodiments, the key generator 31 may be omitted, and the image signing system 30 may receive at least one of key pairs from outside thereof.
[0035] The hash circuit 32 may receive the firmware FW and generate a digest DIG regarding the firmware FW. The digest DIG may refer to a hash value generated based on a hash algorithm, such as a secure hash algorithm (SHA).
[0036] The signature generator 33 may receive the first secret key sKEY.sub.A from the key generator 31 and may generate a digital signature, that is, the A signature SIG A, for the digest DIG based on the first secret key sKEY.sub.A. The A signature SIG A may be generated based on any signature algorithm, for example, may be generated from the first secret key sKEY.sub.A based on an elliptic curve digital signature algorithm (ECDSA). In some example embodiments, the signature generator 33 may also receive the first public key pKEY.sub.A, as shown in
[0037] The signed image generator 34 may receive the firmware FW and the A signature SIG A and may generate the single-signed firmware FW.sub.signed A. That is, the single-signed firmware FW.sub.signed A may include the firmware FW and the A signature SIG A. In some example embodiments, the signed image generator 34 may generate the single-signed firmware FW.sub.signed A and the first public key pKEY.sub.A in the form of one digital envelope and may transfer the generated digital envelope to the host 10.
[0038] Although the process, in which the image signing system 30 generates the A signature SIG A for the firmware FW, has been described above, the image signing system 30 may generate a signature for any firmware, program, software, or data. Herein, data targeted by a signature may be referred to as a message MSG.
[0039]
[0040] Referring to
[0041] The storage controller 21 may include a hash circuit 41, a decryption circuit 42, and a compare circuit 43. The hash circuit 41 may generate a digest DIG regarding the message MSG, based on a hash algorithm. The decryption circuit 42 may generate a comparison target digest DIG′ by decrypting the signature SIG, based on the public key pKEY. In some example embodiments, the public key pKEY may be the first public key pKEY.sub.A or the second public key pKEY.sub.B. The compare circuit 43 may generate validity information VLD by comparing the digest DIG with the comparison target digest DIG′. The validity information VLD may be information indicating that the message MSG is generated by an authentic entity.
[0042] For example, the hash circuit 41 may generate the digest DIG of the single-signed firmware FW.sub.signed A The decryption circuit 42 may generate the comparison target digest DIG′ by decrypting the B signature SIG B, based on the authenticated second public key pKEY.sub.B. The compare circuit 43 may compare the digest DIG with the comparison target digest DIG′ and may output the validity information VLD, based on a comparison result. The validity information VLD may be information indicating that the single-signed firmware FW.sub.signed A is generated by an authentic entity, that is, the host 10. When it is determined by the validity information VLD that the single-signed firmware FW.sub.signed A is generated by the authentic entity, the storage controller 21 may authenticate the firmware FW, based on the firmware FW, the A signature SIG A, and the first public key pKEY.sub.A. The hash circuit 41 may generate the digest DIG of the firmware FW. The decryption circuit 42 may generate the comparison target digest DIG by decrypting the A signature SIG A, based on the first public key pKEY.sub.A. The compare circuit 43 may compare the digest DIG with the comparison target digest DIG′ and may output the validity information VLD, based on a comparison result. The validity information VLD may be information indicating that the firmware FW is generated by an authentic entity, that is, a firmware distributor.
[0043]
[0044] Referring to
[0045] The storage device 200 may include storage media for storing data according to a request from the host 110. For example, the storage device 200 may include at least one of a solid state drive (SSD), an embedded memory, and a removable external memory. When the storage device 200 includes an SSD, the storage device 200 may be a device conforming to the non-volatile memory express (NVMe) specification. When the storage device 200 includes an embedded memory or an external memory, the storage device 200 may be a device conforming to the universal flash storage (UFS) or embedded multi-media card (eMMC) specification. Each of the host 110 and the storage device 200 may generate a packet according to an employed standard protocol and transmit the packet.
[0046] When the non-volatile memory 220 of the storage device 200 includes flash memory, the flash memory may include a 2-dimensional (2D) NAND memory array or a 3-dimensional (3D) (or vertical) NAND (VNAND) memory array. As another example, the storage device 200 may include other various types of non-volatile memory. For example, magnetic RAM (MRAM), spin-transfer torque MRAM, conductive bridging RAM (CBRAM), ferroelectric RAM (FeRAM), phase-change RAM (PRAM), resistive RAM (RRAM), and other various types of memory may be applied to the storage device 200.
[0047] According to some example embodiments, the host controller 111 and the host memory 112 may be respectively implemented by separate semiconductor chips. Alternatively, in some example embodiments, the host controller 111 and the host memory 112 may be integrated into the same semiconductor chip. For example, the host controller 111 may be one of a large number of modules included in an application processor, and the application processor may be implemented by a system-on-chip (SoC). In addition, the host memory 112 may be an embedded memory included in the application processor, or a non-volatile memory or a memory module, which is arranged outside the application processor.
[0048] The host controller 111 may manage an operation of storing data, which is stored in the host memory 112, in the storage device 200, or an operation of storing data of the storage device 200 in the host memory 112. In some example embodiments, the host controller 111 may include an image signing system 113. In some example embodiments, the image signing system 113 may have the same structure as the image signing system 30 of
[0049] The storage controller 210 may include a host interface 211, a memory interface 212, a processor 213, an encryption circuit 214, RAM 215, read-only memory (ROM) 216, and a secure memory 217. Herein, the RAM 215 may be referred to as a system memory. In some example embodiments, the ROM 216 may include programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory.
[0050] The host interface 211 may transmit a packet to and receive a packet from the host 110. The packet transmitted from the host 110 to the host interface 211 may include a command, data to be written to the non-volatile memory 220, data to be written to a storage space (for example, the ROM 216 or the secure memory 217) in the storage controller 210, or the like, and the packet transmitted from the host interface 211 to the host 110 may include a response to a command, data read from the non-volatile memory 220, or the like. Data in operation S540 of
[0051] The memory interface 212 may transmit data, which is to be written to the non-volatile memory 220, to the non-volatile memory 220 or receive data read from the non-volatile memory 220. The memory interface 212 may be implemented to conform to a standard specification, such as Toggle or ONFI.
[0052] The processor 213 may further include a hardware accelerator designed to perform a predefined operation (or alternatively, a desired operation) at a high speed, an input/output (I/O) interface providing a communication channel with an external component of the processor 213 or the like. In some example embodiments, components of the processor 213 may be integrated into a single chip or a single die, and the processor 213 may be referred to as an SoC. In some example embodiments, the components of the processor 213 may be integrated into two or more chips included in one package, and the processor 213 may be referred to as a system-in-package (SiP). The processor 213 may be referred to as a micro-control unit (MCU).
[0053] In some example embodiments, the processor 213 may execute instructions included in a software (for example, the FTL 218) image stored in the ROM 226. For example, at least some of the instructions included in the software image stored in the ROM 226 may be copied to a cache included in the processor 213 or to the RAM 225, and the processor 213 may execute the copied instructions.
[0054] The encryption circuit 214 may perform at least one of an encryption operation and a decryption operation on data, which is input to the storage controller 210, by using a symmetric-key algorithm.
[0055] The RAM 215 may temporarily store data used by the processor 213. For example, the RAM 215 may temporarily store data, which is read from the ROM 216, the secure memory 217, or the non-volatile memory 220, or data to be written to the ROM 216, the secure memory 217, or the non-volatile memory 220. In addition, the RAM 215 may temporarily store instructions executed by the processor 213. In some example embodiments, the RAM 215 may include a volatile memory providing a relatively high operating speed, such as dynamic random access memory (DRAM) or static random access memory (SRAM).
[0056] The ROM 216 may store the software image, which is executed by the processor 213, in a non-volatile manner In some example embodiments, the ROM 216 may store a firmware (for example, the FTL 218) image. In addition, as shown in
[0057] The FTL 218 may perform several functions, such as address mapping, wear-leveling, and garbage collection. The address mapping is an operation of converting a logical address, which is received from the host 110, into a physical address, which is actually used to store data in the non-volatile memory 220. The wear-leveling is a technique for preventing excessive deterioration of a specific block by causing blocks in the non-volatile memory 220 to be uniformly used, and, for example, the wear-leveling may be implemented by a firmware technique for balancing erasure counts of physical blocks. The garbage collection is a technique for securing an available capacity in the non-volatile memory 220 by a method of copying valid data of a block to a new block and then erasing the existing block.
[0058] In some example embodiments, as shown in
[0059] The secure memory 217 may store unique data of the storage controller 210 in a non-volatile manner In some example embodiments, the secure memory 217 may store information used to authenticate a software image loaded on the RAM 215 by the storage device after the first signature and the second signature are verified. For example, the secure memory 217 may store at least one public key (for example, the first public key pKEY.sub.A or the second public key pKEY.sub.B) used to verify a digital signature. In some example embodiments, the secure memory 217 may include a one-time-programmable (OTP) memory, such as an anti-fuse array.
[0060] In some example embodiments, the processor 213 may verify a signature for the FTL 218, based on a public key (for example, the first public key pKEY.sub.A or the second public key pKEY.sub.B), before storing the FTL 218, which is received from the host 110, in the ROM 216. In some example embodiments, the processor 213 may verify the signature for the FTL 218, based on the public key, before executing the FTL 218 stored in the ROM 216.
[0061] Specifically, the processor 213 may verify the A signature SIG A for the FTL 218, based on the first public key pKEY.sub.A, and may authenticate the FTL 218 by verifying the B signature SIG B for the FTL 218, based on the second public key pKEY.sub.B. The processor 213 may store the FTL 218, the A signature SIG A, and the B signature SIG B, which are received from the host 110, in the ROM 216 or execute the FTL 218 stored in the ROM 216, based on an authentication result. A process of authenticating firmware may be described below with reference to
[0062]
[0063] Referring to
[0064] Specifically, in operation S510, the host 110 may transfer the second public key pKEY.sub.B and the request Req to the external device 2. The request Req may include information for requesting a signature for the second public key pKEY.sub.B, based on the first secret key sKEY.sub.A.
[0065] In operation S520, the external device 2 may transfer, to the host 110, the single-signed firmware FW.sub.signed A generated based on the first secret key sKEY.sub.A. In addition, the external device 2 may generate a signature SIG A[pKEY.sub.B, Req] for the second public key pKEY.sub.B and the request Req, based on the first secret key sKEY.sub.A, and may transfer the generated signature SIG A[pKEY.sub.B, Req] to the host 110.
[0066] In operation S530, the host 110 may generate the dual-signed firmware FW.sub.signed A, B. Specifically, the host 110 may generate a key pair including the second secret key sKEY.sub.B and the second public key pKEY.sub.B. The host 110 may generate a digest regarding the single-signed firmware FW.sub.signed A and may generate a digital signature for the digest, that is, the B signature SIG B, based on the second secret key sKEY.sub.B. The host 110 may generate the dual-signed firmware FW.sub.signed A, B including the single-signed firmware FW.sub.signed A and the B signature SIG B. In some example embodiments, the host 110 may include the image signing system 30 of
[0067] In operation S540, the host 110 may provide, to the storage device 200, the dual-signed firmware FW.sub.signed A, B, the second public key pKEY.sub.B, the request Req, and the signature SIG A[pKEY.sub.B, Req] for the second public key pKEY.sub.B and the request Req.
[0068] In operation S550, the storage device 200 may authenticate the second public key pKEY.sub.B and the request Req, which are signed. Specifically, the storage device 200 may verify the signature SIG A[pKEY.sub.B, Req] for the second public key pKEY.sub.B and the request Req, based on the first public key pKEY.sub.A provisioned during the fabrication thereof. In some example embodiments, the storage controller 210 included in the storage device 200 may correspond to the storage controller 21 of
[0069] That is, in operation S550, the storage device 200 may obtain the digest DIG regarding the second public key pKEY.sub.B and the request Req, may obtain the comparison target digest DIG′ by decrypting the signature SIG A[pKEY.sub.B, Req], based on the first public key pKEY.sub.A, and may authenticate the second public key pKEY.sub.B and the request Req by comparing the digest DIG with the comparison target digest DIG′. That is, the storage device 200 may determine that the second public key pKEY.sub.B and the request Req are authenticated by the external device 2.
[0070] In operation S560, the storage device 200 may authenticate the firmware FW. Specifically, by verifying the A signature SIG A and the B signature SIG B, based on the first public key pKEY.sub.A and the second public key pKEY.sub.B, the storage device 200 may determine that the firmware FW is authenticated by the external device 2 and a firmware distributor. In some example embodiments, the storage device 200 may authenticate the single-signed firmware FW.sub.signed A by verifying the B signature SIG B, based on the second public key pKEY.sub.B, and may authenticate the firmware FW by verifying the A signature SIG A, based on the first public key pKEY.sub.A.
[0071] In operation S570, the storage device 200 may store the second public key pKEY.sub.B. That is, because the second public key pKEY.sub.B is trustable through operation S550, the storage device 200 may store the second public key pKEY.sub.B. The second public key pKEY.sub.B may be used to verify a signature generated based on the second secret key sKEY.sub.B. In some example embodiments, the second public key pKEY.sub.B may be stored in the secure memory 217.
[0072] In operation S580, the storage device 200 may store the dual-signed firmware FW.sub.signed A, B. That is, because the firmware is trustable through operation S560, the storage device 200 may store the firmware FW, the A signature SIG A, and the B signature SIG B. The storage device 200 may verify the A signature SIG A and the B signature SIG B, based on the first public key pKEY.sub.A and the second public key pKEY.sub.B, before executing the firmware FW, and may execute the firmware FW, based on verification results. In some example embodiments, the dual-signed firmware FW.sub.signed A, B may be stored in the ROM 216.
[0073] In some example embodiments, after storing the dual-signed firmware FW.sub.signed A, B, the storage device 200 may change an authentication state, as described below with reference to
[0074]
[0075] In operation S610, the storage device 200 may receive the dual-signed firmware FW.sub.signed A, B, the second public key pKEY.sub.B, the request Req, and the signature SIG A[pKEY.sub.B, Req] for the second public key pKEY.sub.B and the request Req. In some example embodiments, the storage device 200 may not receive the request Req and may receive the second public key pKEY.sub.B and a signature SIG A[pKEY.sub.B] for the second public key pKEY.sub.B.
[0076] In operation S620, the storage device 200 may determine whether the second public key pKEY.sub.B and the request Req are valid. Specifically, the storage device 200 may determine the validity of the second public key pKEY.sub.B and the request Req by verifying the signature SIG A[pKEY.sub.B, Req] for the second public key pKEY.sub.B and the request Req, based on the first public key pKEY.sub.A. Performing determination of the validity may be understood as performing authentication. When the second public key pKEY.sub.B and the request Req are valid, operation S630 may be performed, and when the second public key pKEY.sub.B and the request Req are not valid, operation S660 may be performed.
[0077] In operation S630, the storage device 200 may determine whether the firmware FW is valid. Specifically, the storage device 200 may determine the validity of the single-signed firmware FW.sub.signed A by verifying the B signature SIG B, based on the second public key pKEY.sub.B determined to be valid in operation S620. Next, the storage device 200 may determine the validity of the firmware FW by verifying the A signature SIG A, based on the first public key pKEY.sub.A. When the single-signed firmware FW.sub.signed A and the firmware FW are valid, operation S640 may be performed, and when the single-signed firmware FW.sub.signed A or the firmware FW are not valid, operation S660 may be performed.
[0078] In operation S650, the storage device 200 may execute the firmware FW. Specifically, by determining the validity of the firmware FW, the storage device 200 may execute the firmware FW that is trustable. In some example embodiments, during every booting, the storage device 200 may verify the A signature SIG A and the B signature SIG B, based on the first public key pKEY.sub.A and the second public key pKEY.sub.B, and may execute the firmware FW, based on a verification result.
[0079] In operation S660, the storage device 200 may provide, to the host 110, an error message indicating that the authentication of the second public key pKEY.sub.B, the request Req, or the firmware FW has failed. The error message may also include information indicating booting failure.
[0080]
[0081] Referring to
[0082] Specifically, in operation S710, the external device 2 may transfer, to the host 110, the single-signed firmware FW.sub.signed A, the third secret key sKEY.sub.C, the third public key pKEY.sub.C, and a signature SIG A[pKEY.sub.C] for the third public key pKEY.sub.C, which is generated based on the first secret key sKEY.sub.A. The third public key pKEY.sub.C may be a public key used to verify a signature generated based on the third secret key sKEY.sub.C. In some example embodiments, the external device 2 may generate a signature for the third secret key sKEY.sub.C based on the first secret key sKEY.sub.A, and may provide the generated signature to the host 110.
[0083] In operation S720, the host 110 may generate the dual-signed firmware FW.sub.signed A, B. Specifically, the host 110 may generate the B signature SIG B for the single-signed firmware FW.sub.signed A based on the second secret key sKEY.sub.B unique to the host 110, and may generate the dual-signed firmware FW.sub.signed A, B by coupling the single-signed firmware FW.sub.signed A with the B signature SIG B. In some example embodiments, the host 110 may include the image signing system 30 of
[0084] In operation S730, the host 110 may authenticate the third public key pKEY.sub.C. Specifically, the host 110 may authenticate the third public key pKEY.sub.C by verifying the signature SIG A[pKEY.sub.C] for the third public key pKEY.sub.C based on the first public key pKEY.sub.A stored in the storage device 200. In some example embodiments, the host 110 may authenticate the third secret key sKEY.sub.C by verifying the signature for the third secret key sKEY.sub.C based on the first secret key sKEY.sub.A. In some example embodiments, the host 110 may include the components of the storage controller 21 described above with reference to
[0085] In operation S740, the host 110 may transfer, to the storage device 200, the authenticated third public key pKEY.sub.C the signature SIG A[pKEY.sub.C] for the third public key pKEY.sub.C, which is generated based on the first secret key sKEY.sub.A, the second public key pKEY.sub.B, the signature SIG C[pKEY.sub.B] for the second public key pKEY.sub.B, which is generated based on the third secret key sKEY.sub.C, and the dual-signed firmware FW.sub.signed A, B. In operation S740, the host 110 may generate the signature SIG C[pKEY.sub.B] for the second public key pKEY.sub.B based on the third secret key sKEY.sub.C.
[0086] In operation S750, the storage device 200 may authenticate the third public key pKEY.sub.C. Specifically, the storage device 200 may authenticate the signature SIG A[pKEY.sub.C] for the third public key pKEY.sub.C based on the first public key pKEY.sub.A provisioned during the fabrication thereof. In some example embodiments, the storage device 200 may include the storage controller 21 described above with reference to
[0087] In operation S760, the storage device 200 may authenticate the second public key pKEY.sub.B. Specifically, the storage device 200 may authenticate the signature SIG C[pKEY.sub.B] for the second public key pKEY.sub.B, based on the authenticated third public key pKEY.sub.C.
[0088] In operation S770, the storage device 200 may authenticate the firmware FW. Specifically, the storage device 200 may verify the A signature SIG A and the B signature SIG B of the dual signed firmware FW.sub.signed A, B based on the first public key pKEY.sub.A and the second public key pKEY.sub.B. In some example embodiments, operation S770 may be the same as operation S560 of
[0089] In operation S780, the storage device 200 may store the second public key pKEY.sub.B and the third public key pKEY.sub.C, which are authenticated. In some example embodiments, the second public key pKEY.sub.B and the third public key pKEY.sub.C may be stored in the secure memory 217.
[0090] In operation S790, the storage device 200 may store the dual-signed firmware FW.sub.signed A, B. Specifically, the storage device 200 may store the firmware FW, the A signature SIG A, and the B signature SIG B. The storage device 200 may verify the A signature SIG A and the B signature SIG B based on the first public key pKEY.sub.A and the second public key pKEY.sub.B, before executing the firmware FW, and may execute the firmware FW based on verification results. In some example embodiments, the dual-signed firmware FW.sub.signed A, B may be stored in the ROM 216.
[0091] Although not shown, after storing the dual-signed firmware FW.sub.signed A, B, the storage device 200 may change an authentication state, as described below with reference to
[0092]
[0093] Referring to
[0094] Referring to
[0095] A second state State 2 may be a state in which, to execute the firmware, the A signature SIG A generated based on the first secret key sKEY.sub.A is verified and the B signature SIG B generated based on the second secret key sKEY.sub.B is not verified. In addition, the second state State 2 may be a state in which, to execute the firmware, a host has authority to select whether to verify the B signature SIG B. For example, as shown in
[0096] A third state State 3 may be a state in which, to execute the firmware, the A signature SIG A generated based on the first secret key sKEY.sub.A and the B signature SIG B generated based on the second secret key sKEY.sub.B are verified. In addition, the third state State 3 may be a state in which, to execute the firmware, the external device ExDv has authority to select whether to verify the B signature SIG B. For example, in operation S520 of
[0097] A fourth state State 4 may be a state in which, to execute the firmware, the A signature SIG A generated based on the first secret key sKEY.sub.A and the B signature SIG B generated based on the second secret key sKEY.sub.B are verified. In addition, the fourth state State 4 may be a state in which, to execute the firmware, a host has authority to select whether to verify the B signature SIG B. For example, as shown in
[0098] The storage controller 210 may change the authentication state of the storage system 100 by changing a state value indicating an authentication state. The state value may be stored in the ROM 216, which is included in the storage controller 210, or an OTP memory.
[0099]
[0100] Referring to
[0101] Referring to
[0102]
[0103] In operation S1010, the storage controller 210 of
[0104] In operation S1020, the storage controller 210 may generate a first comparison target digest DIG1′ by decrypting the B signature SIG B based on the second public key pKEY.sub.B. In some example embodiments, the encryption circuit 214 may generate the first comparison target digest DIG1′ by decrypting the B signature SIG B received from the host 110 based on the second public key pKEY.sub.B stored in the secure memory 217. In some example embodiments, the decryption circuit 42 included in the storage controller 21 of
[0105] In operation 51030, the storage controller 210 may compare the first digest DIG1 with the first comparison target digest DIG1′. In some example embodiments, the processor 213 may load the first digest DIG1 and the first comparison target digest DIG1′ on the RAM 215 and may compare the first digest DIG1 with the first comparison target digest DIG1′ based on a comparison instruction. In some example embodiments, the compare circuit 43 included in the storage controller 21 of
[0106] In operation S1040, the storage controller 210 may output an abort signal to the host 110. Specifically, in some example embodiments, the storage controller 210 may abort the execution of the firmware and output, to the host 110, the abort signal indicative of aborting the execution of the firmware. Alternatively, in some example embodiments, a booting abort signal from the storage controller 210 may be a signal indicative of aborting the progress of a booting procedure.
[0107] In operation S1050, the storage controller 210 of
[0108] In operation S1060, the storage controller 210 may generate a second comparison target digest DIG2′ by decrypting the A signature SIG A based on the first public key pKEY.sub.A. In some example embodiments, the encryption circuit 214 may generate the second comparison target digest DIG2′ by decrypting the A signature SIG A received from the host 110 based on the first public key pKEY.sub.A stored in the secure memory 217. In some example embodiments, the decryption circuit 42 included in the storage controller 21 of
[0109] In operation S1070, the storage controller 210 may compare the second digest DIG2 with the second comparison target digest DIG2′. In some example embodiments, the processor 213 may load the second digest DIG2 and the second comparison target digest DIG2′ on the RAM 215 and may compare the second digest DIG2 with the second comparison target digest DIG2′ based on a comparison instruction. In some example embodiments, the compare circuit 43 included in the storage controller 21 of
[0110] In operation S1080, the storage controller 210 may execute the authenticated firmware FW. That is, the storage controller 210 may execute the authenticated firmware FW obtained by performing, during booting, the method of authenticating a software image, shown in
[0111]
[0112] Specifically, the ROM 216 may store a bootloader including instructions, which are executed first of all by the processor 213, when power starts to be provided to the storage controller 210 or the storage controller 210 is reset. The bootloader may load firmware, which is stored in the ROM 216, on the RAM 215 by being executed by the processor 213.
[0113] The ROM 216 may store firmware and signatures for the firmware. For example, the ROM 216 may store firmware before being updated (that is, Old FW) and signatures (that is, Old SIG A and Old SIG B) for the corresponding firmware, that is, may store existing software images.
[0114] During the firmware update, the ROM 216 may store updated firmware (that is, New FW) and signatures (that is, New SIG A and New SIG B) for the corresponding firmware, that is, may store updated software images. Although the updated software images are shown as being stored in different storage regions from the existing software images, example embodiments of the inventive concepts are not limited thereto. That is, the existing software images may be erased, and the updated software images may be newly stored in erased storage regions.
[0115] Referring to
[0116] While the inventive concepts have been particularly shown and described with reference to example embodiments thereof, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the following claims.