Storage device controllers may receive data and encrypt the received data before writing the encrypted data to a storage device. A host seeking to write data to or read data from the storage device may send a request to the storage device controller in order to access the storage device.
The following detailed description references the drawings, wherein:
Specific details are given in the following description to provide an understanding of examples of the present techniques. However, it will be understood that examples of the present techniques may be practiced without these specific details. For example, systems may be shown in block diagrams in order not to obscure examples of the present techniques in unnecessary detail. In other instances, well-known processes, structures and techniques may be shown without unnecessary detail in order to avoid obscuring the examples of the present techniques.
Some types of storage device controllers may only encrypt data being received, such as data crossing a Peripheral Component Interconnect Express (PCIE) boundary as it is transferred from a host's memory to the storage device controller. Upon encrypting the received data, the storage device controller may then write the encrypted data to a storage device. Thus, while any new data to be written to the storage device may be encrypted by the storage device controller, old or existing data on the storage device may not be encrypted by the storage device controller. Moreover, modifying or adding hardware of the storage device controller so that the storage device controller can directly encrypt data of the storage device may prove difficult and/or cost prohibitive.
Examples of the present techniques may dynamically borrow the host's buffer to store plaintext data of the storage device and then write back the plaintext data from the buffer to the storage device in encrypted form. For example, in an example, a device may include an interface unit, a transfer unit and an encryption unit. The interface unit may receive a request from a host requesting data from a storage device. The transfer unit may write plaintext data of the storage device into a buffer of the host, in response to the request. The encryption unit may encrypt the plaintext data and write the encrypted data back to the storage device. Then, the interface unit may write the requested data of the request to the buffer after the encrypted data is written back to the storage device. Thus, examples may allow for existing data of the storage device to be encrypted by a storage device controller that is limited to encrypting only data to be written to the storage device, at a low cost and/or latency.
Referring now to the drawings,
The host 140 may refer to any type of device that seeks to access the storage device 150, such as a main processor of a computer or a computer connected to a computer network. The storage device 150 may be any electronic, magnetic, optical, or other physical storage device that stores data, such as a hard disk drive (HDD), solid-state drive (SSD) and the like. For example the storage device 150 may include one or more physical drives (not shown) and one or more logical data volumes spanning one or more of the drives.
In
The interface unit 110 may receive a request from the host 140 requesting data from a storage device 150. The request may be a read type request, a sense type request or any other type of request related to a transfer of data from the storage device 150 to the host 140. The read request may relate to accessing data at a location of the storage device 150 indicated by the read request. The location may include one or more addresses of the storage device 150. The sense request may relate to accessing sense data at a location of the storage device 150 indicated by the sense request. The sense data may include status/error information related to the data and indicate a success/normal condition, simple problems such as no disk being loaded, serious hardware failures, and the like. For example, the device 100 may transfer the data and/or sense data thereof from the storage device 150 to the buffer 142 in response to the read or sense type request of the host 140.
The transfer unit 120 may write plaintext data of the storage device 150 into a buffer 142 of the host 140, in response to the request. The term plaintext may refer to an unaltered representation of data before any action has been taken to conceal, compress, or modify it in another manner. The term plaintext does not necessarily refer to text nor data that is plain.
An amount of the plaintext data written to the buffer 142 may be based on a size allocated for the buffer 142 by the host 140 for the requested data. For example, if the host 140 requested to read 512 bytes or a block of data of the storage device 150 via the read request, then the host 140 may have allocated the buffer 142 to be 512 bytes or a block long. Further, the host 140 may have a plurality of buffers allocated based on a plurality of outstanding requests to the storage device 150.
However, the plaintext data written to the buffer 142 by the transfer unit 120 may not be the data requested by the host 140 via the request. Instead, the plaintext data may simply be data which the device 200 seeks to write back to the storage device 150 in encrypted form. Thus, the transfer unit 120 may, for example, read plaintext from the storage device 150 that the device 100 seeks to encrypt, in response to the request, such as the read or sense type request. For example, in
In one embodiment, the plaintext data may be read sequentially or iteratively from a disc of a storage volume (not shown) of the storage device 150. As the host 140 may only allocate the buffer 142 when the host 140 expects to receive data in response to the request, the host 140 may not allocate the buffer 142 when sending a write request. Thus, the device 100 may not send the plaintext data to the host 140 for the write request. Nonetheless, the device 100 may still process the write request by writing data from the host 140 to the storage device 150.
The encryption unit 130 may encrypt the plaintext data and may write the encrypted data back to the storage device 150. As shown in
Encryption may refer to a process of encoding data in such a way that unauthorized parties may not decipher the data while authorized parties may decipher the data. In an encryption scheme, the plaintext may be encrypted using a cryptographic algorithm, turning it into an unreadable ciphertext. This is usually done with the use of an encryption key, which specifies how the message is to be encoded. For instance, the key may be a piece of information or parameter that determines a functional output of a cryptographic algorithm. The cryptographic algorithm may be a symmetric or asymmetric key algorithm. Examples of symmetric algorithms include Twofish, Serpent, AES (Rijndael), Blowfish, CAST5, Rivest Cipher 4 (RC4), Triple Data Encryption Algorithm (3DES), International Data Encryption Algorithm (IDEA) and the like. Examples of asymmetric algorithms include Diffie-Hellman key exchange protocol, Digital Signature Standard (DSS), ElGamal, Paillier cryptosystem, RSA encryption algorithm and Cramer-Shoup cryptosystem, and the like. These algorithms may include a procedure for performing encryption or decryption.
As shown in
The encryption unit 130 is located at the device 100, and not the host 140 or the storage device 150. Further, the encryption unit 130 may only be able to encrypt data received externally via the interface unit 110. The host 140 may only be connected to the storage device 150 via the device 100. Thus, the device 100 may encrypt the plaintext data after reading the plaintext data from the buffer 142 of the host 140 and before writing the plaintext data to the storage device 150.
The device 200 of
The determination unit 210 may include, for example, a hardware device including electronic circuitry for implementing the functionality described below, such as control logic and/or memory. In addition or as an alternative, the determination unit 210 may be implemented as a series of instructions encoded on a machine-readable storage medium and executable by a processor. The determination unit 210 may determine which of the requests received by the interface unit 110 include the at least one of read and sense type request and forward this determination to the transfer unit 220. The transfer unit 220 may carry out the above operations described in
Here, the transfer unit 220 may further store a progress 222 of the encrypted data written back to the storage device 150 at a non-volatile memory (not shown). For example, the progress 222 may be a percentage number indicating what percent of the storage device 150 or a volume thereof is encrypted or remains to be encrypted. Alternatively or additionally, the progress 222 may be a log recording each logical block address (LBA) after the encrypted data has been written to that LBA.
The transfer unit 220 may reference the stored progress 222, for instance, if a power failure occurs at the device 200 before all of the encrypted data at the buffer 142 is written back to the storage device 150. In this case, the device 200 may be also to resume transferring the encrypted data from the buffer 142 to the storage device 150 from a current point at which the device 200 previously stopped. Thus, the device 200 may be able to reduce or prevent redundant encryption of plaintext data and/or redundant transfer of encrypted data.
The transfer unit 220 may send a complete message after the requested data is written to the buffer 154, to indicate to the host 140 that the request has been completed. The host 140 may then be free to reallocate the buffer 142 and/or overwrite the buffer 142 after the complete message is received. The complete message may be sent from the transfer unit 220 to the host 140 via the interface unit 110.
The computing device 300 may be, for example, a secure microprocessor, a notebook computer, a desktop computer, an all-in-one system, a server, a network device, a wireless device, or any other type of user device capable of executing the instructions 321, 323, 325, 327 and 329. In certain examples, the computing device 300 may include or be connected to additional components such as memories, sensors, displays, etc.
The processor 310 may be, at least one central processing unit (CPU), at least one semiconductor-based microprocessor, other hardware devices suitable for retrieval and execution of instructions stored in the machine-readable storage medium 320, or combinations thereof. The processor 310 may fetch, decode, and execute instructions 321, 323, 325, 327 and 329 to implement encrypting the data of the storage device. As an alternative or in addition to retrieving and executing instructions, the processor 310 may include at least one integrated circuit (IC), other control logic, other electronic circuits, or combinations thereof that include a number of electronic components for performing the functionality of instructions 321, 323, 325, 327 and 329.
The machine-readable storage medium 320 may be any electronic, magnetic, optical, or other physical storage device that contains or stores executable instructions. Thus, the machine-readable storage medium 320 may be, for example, Random Access Memory (RAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a storage drive, a Compact Disc Read Only Memory (CD-ROM), and the like. As such, the machine-readable storage medium 320 can be non-transitory. As described in detail below, machine-readable storage medium 320 may be encoded with a series of executable instructions for encrypting the data of the storage device.
Moreover, the instructions 321, 323, 325, 327 and 329 when executed by a processor (e.g., via one processing element or multiple processing elements of the processor) can cause the processor to perform processes, such as, the process of
The encrypt instructions 327 may be executed by the processor 310 encrypt and write the second data back from the buffer to the storage device after the second data is transmitted. The write first data instructions 329 may be executed by the processor 310 write the first data to the buffer after the encrypted data is written back to the storage device. The second data may be read from the buffer before the second data is encrypted and written to the storage device. Further, the second data may be encrypted at the device 300.
At block 410, the device 200 determines if a request received from a host 140 requests data of the storage device 150 to be sent to the host 140, such as read and sense type requests. Next at block 420, if the request does not request for data of the storage device 150 to be sent to the host 140, the method 400 flows back to block 410. However, the request, such as a write request, is still processed by the device 200 via a separate process (not shown).
Otherwise, if the request does request for data of the storage device 150 to be sent to the host 140, the method 400 proceeds to block 430. At block 430, the device 200 writes first data of the storage device 150 to a buffer 142 of the host 140 associated with the request.
For example, the buffer 142 may be memory space allocated by the host 140 for data to be returned from the storage device 150 in response to the request. The first data may include iteratively read blocks of plaintext data of a disk of a storage volume of the storage device 150. Then, at block 440, the device 200 reads the first data from the buffer after the first data has been written to the buffer 142. Next, at block 450, the device 200 encrypts and writes the read first data back to the storage device 150. For example, the device 200 may overwrite the first data at the storage device 150 with the encrypted data.
Lastly, at block 460, the device 200 may write second data of the storage device 150 to the buffer 142 after the encrypted data has been written back to the storage device 150. The second data may be associated with the requested data of the request while the first data may not be associated with requested data of the request. The request may still be active or pending at the host 140 while the device 200 is writing and reading the first data to and from the buffer 142. The request may be not active or completed at the host 140 after the second data is written to the buffer 142.
According to the foregoing, embodiments provide a method and/or device for dynamically borrowing the host's buffer to store plaintext data of the storage device and then writing back the plaintext data from the buffer to the storage device in encrypted form. Thus, embodiments may allow for existing data of the storage device to be encrypted by a storage device controller that is limited to encrypting only data to be written to the storage device, at a low cost and/or latency.
Number | Name | Date | Kind |
---|---|---|---|
5412780 | Rushton | May 1995 | A |
5638299 | Miller | Jun 1997 | A |
5790828 | Jost | Aug 1998 | A |
6405256 | Lin et al. | Jun 2002 | B1 |
7434069 | Nessler et al. | Oct 2008 | B2 |
8484720 | Mardiks | Jul 2013 | B2 |
8798312 | Kiyoshige | Aug 2014 | B2 |
20080040536 | Juang et al. | Feb 2008 | A1 |
20140040639 | Raam | Feb 2014 | A1 |
Entry |
---|
Dyer, K.P. et al., Format-transforming Encryption: More Than Meets the DPI, (Research Paper), Aug. 28, 2012. |
Number | Date | Country | |
---|---|---|---|
20140325242 A1 | Oct 2014 | US |