Security logging of data storage device events
By using the public key and private key in the data storage device to encrypt the log data, and using the authorized device unlocking mechanism, the problem of log access security of external data storage devices in different operating systems and role user environments is solved, achieving Security management and access control of data.
Patent Information
- Application Number
- CN202080007099.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-09
- Filing Date
- 2020-06-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-06-24
AI Technical Summary
Among existing data storage devices, external data storage devices such as USB drives are difficult to securely manage log access, especially when connected to host computer systems with different operating systems and users with different roles.
A data storage device is designed, using non-transitory storage media and data storage libraries, using the first and second public keys and private keys to encrypt log data, and unlocking it through authorized devices, using elliptic curve encryption technology to ensure Data security.
It implements secure management and access control of data storage device logs, ensuring that only authorized devices can unlock and access data stored on the device, enhancing data security and user experience.
Smart Images

Figure CN113383335B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to secure logging of events in data storage devices. Background Art
[0002] Data storage devices such as solid state drives (SSDs) and hard disk drives (HDDs) provide functionality beyond just data storage. Some of these data storage devices provide self-monitoring, analysis and reporting technology (SMART) and self-encryption. In addition, the operating system of the host computer system (to which the data storage device is connected) provides a complex logging system to record events that occur within the operating system. This enables system administrators to view events later and determine the cause of errors or failures. For example, commands that comply with the Small Computer System Interface (SCSI) standard or the Advanced Technology Attachment (ATA) standard can generate exceptions, which are then recorded as events in the system log. In addition, the connection and count of universal serial bus (USB) data storage devices can be recorded. Further, the SMART log can be accessed by diagnostic software tools that retrieve SMART information from data storage devices via ATA or SCSI commands.
[0003] Access to the system log or SMART logging ATA / SCSI commands is usually managed by an operating system that provides a role-based access model, where certain users have administrator roles or permissions that enable these users to access these logs. However, it is difficult to use such a role-based model for external data storage devices, such as USB drives, because these external data storage devices can be connected to many different host computer systems with different operating system installations and different users with different roles. Therefore, it is difficult to securely manage access to logs associated with data storage devices. Summary of the invention
[0004] The present disclosure relates to a data storage device, such as but not limited to a block data storage device that can be connected to a host computer system via a USB cable, so that the data storage device is registered with the operating system of the host computer system as a large capacity data storage device. The data storage device is locked so that the host computer system cannot access data stored on the data storage device. However, a user can unlock the data storage device by using an authorization device that is configured to unlock the data storage device.
[0005] A data storage device is disclosed herein, which includes: a non-transitory storage medium, which is configured to store user content data; and a non-transitory data repository, which is configured to store: a first log entry, which includes: first log data encrypted using a first public key and a corresponding first private key; a second public key, which is different from the first public key; and a second log entry, which includes: the first public key, and second log data encrypted using a second public key and a corresponding second private key.
[0006] In some embodiments, the data storage device also includes a controller configured to create the first log entry and the second log entry.
[0007] In some embodiments, the controller is further configured to generate a second public key and a corresponding second private key; encrypt the second log data using the second private key; store the second public key; and discard the second private key.
[0008] In some embodiments, the data repository is further configured to store a single logging public key for the first log entry and the second log entry, the logging public key being accessible in response to an authorized device being connected to the data storage device, and the controller is further configured to encrypt the second log data using the logging public key and the second private key.
[0009] In some embodiments, encrypting the second log data includes determining a secret based on elliptic curve cryptography using the logging public key and the second secret key.
[0010] In some embodiments, the data repository is further configured to store a logging secret key corresponding to the logging public key.
[0011] In some embodiments, the logging secret key is encrypted and accessible in response to a manager device connecting to the data storage device.
[0012] In some embodiments, the logging secret key is encrypted using a manager key.
[0013] In some embodiments, the controller is further configured to decrypt the second log data using a logging secret key and a second public key stored on the data repository.
[0014] In some embodiments, the controller is further configured to decrypt the first log data using the logging secret key and the first public key stored in the second log entry.
[0015] In some embodiments, decrypting the second log data includes determining a secret based on elliptic curve cryptography using the logging secret key and the second public key.
[0016] In some embodiments, the first log entry is encrypted using the first private key; and the second log entry is encrypted using the second private key.
[0017] In some embodiments, the first private key and the first public key are unique to the first log entry; and the second private key and the second public key are unique to the second log entry.
[0018] In some embodiments, the second public key is stored separately from the first log entry and the second log entry.
[0019] In some embodiments, the data repository is further configured to store: a next log entry pointer indicating a storage location of the second log entry; and an initial log entry pointer indicating a storage location of the initial log entry.
[0020] In some embodiments, the initial log entry pointer is encrypted and accessible in response to a manager device connecting to the data storage device.
[0021] In some embodiments, the first public key is encrypted along with the second log data.
[0022] In some embodiments, the data storage device includes: a data path, the data path including: a data port, the data port is configured to transfer data between a host computer system and the data storage device, the data storage device is registered as a block storage device with the host computer system; an encryption engine, the encryption engine is connected between the data port and the storage medium, and is configured to use an encryption key to decrypt the encrypted user content data stored on the storage medium in response to a request from the host computer system; and an authorization data repository, the authorization data repository is configured to store a plurality of entries including authorization data associated with a corresponding plurality of devices; and an access controller, the access controller is configured to receive a public key associated with a private key stored on one of the plurality of devices from one of the plurality of devices; determine a role of a manager device or an authorization device based on the public key; in response to determining the role of the authorization device, allow creation of log entries and restrict reading of log entries; and in response to determining the role of the manager device, allow reading of log entries.
[0023] The present invention also discloses a method for logging on a data storage device. The method includes: creating first log data; encrypting the first log data using a first public key and a corresponding first private key; storing a first log entry, the first log entry including the first log data encrypted using the first public key and the corresponding first private key; storing a second public key different from the first public key; creating second log data; encrypting the second log data using the second public key and the corresponding second private key; and storing a second log entry, the second log entry including: the first public key, and the second log data encrypted using the second public key and the corresponding second private key.
[0024] A data storage device is disclosed herein, which includes: a device for creating first log data; a device for encrypting the first log data using a first public key and a corresponding first private key; a device for storing a first log entry, the first log entry including the first log data encrypted using the first public key and the corresponding first private key; a device for storing a second public key different from the first public key; a device for creating second log data; a device for encrypting the second log data using the second public key and the corresponding second private key; and a device for storing a second log entry, the second log entry including: the first public key, and the second log data encrypted using the second public key and the corresponding second private key. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Non-limiting examples will now be described with reference to the following drawings:
[0026] Figure 1 A data storage device according to one embodiment is shown.
[0027] Figure 2 According to one embodiment, Figure 1 A portion of the configuration memory of a data storage device.
[0028] Figure 3 According to one embodiment, Figure 1 The control flow between the authorization device and the access controller.
[0029] Figure 4 A certificate issued by a data storage device and sent by an authorization device to the data storage device to unlock the data storage device is shown according to one embodiment.
[0030] Figure 5 A method for accessing data on a data storage device according to one embodiment is shown.
[0031] Figure 6 A log header storing information of all log entries is shown according to one embodiment.
[0032] Figure 7 A log entry table according to one embodiment is shown.
[0033] Figure 8 A method for logging events on a data storage device according to one embodiment is shown. DETAILED DESCRIPTION
[0034] Figure 1 1 shows a data storage device (DSD) 100 including a data path 101 and an access controller 102 according to one embodiment. The data path 101 includes a wired data port 103, which is connected to the Figure 1 104 and DSD 100. In other embodiments, the data path 101 includes a wireless data port (not shown) for wirelessly transmitting data between the host computer system 104 and the DSD 100. The DSD 100 is registered with the host computer system 104 as a large-capacity data storage device that provides functionality to the operating system of the host computer system 104 of a block data storage device. The DSD 100 also includes a non-transitory storage medium 105 for storing encrypted user content data, noting that user content data is data that a user typically wants to store on the DSD, such as files including image files, documents, video files, etc. The storage medium can be a solid-state drive (SSD), a hard disk drive (HDD) with a rotating disk, or other non-volatile storage medium. In addition, the storage medium can be a block data storage device, which means that the user content data is written to the storage medium 105 in the form of blocks and read from the storage medium 105 in the form of blocks.
[0035] Command Set
[0036] In one example, the storage medium 105 includes an encryption engine 106 in the form of an application specific integrated circuit and / or a programmable integrated circuit that encrypts data to be stored on the storage medium 105 and decrypts data to be read from the storage medium 105. In such examples, the storage medium may provide a Small Computer System Interface (SCSI) or Advanced Technology Attachment (ATA) command set in accordance with the optical specification of the Trusted Computing Group (TCG).
[0037] Program code stored on the cryptographic engine 106 enables the cryptographic engine 106 to receive, interpret, and execute commands received from the host computer system 104. For example, the cryptographic engine 106 may be configured to implement a standard ATA or Serial ATA (SATA) and / or ATA Packet Interface (ATAPI) command set, which is available from Technical Committee T13, noting that the same functionality may be implemented within TCG Opal, SCSI, and other proprietary architectures. The command set includes a READ SECTORS command, with the command input being a count of sectors and a starting sector (note that "sector" is used synonymously with "block" herein). Thus, there is a corresponding write command. It should be noted that a data storage device driver is installed on the host computer system 104. The data storage device driver (not shown) uses the command set to provide advanced services to the operating system, such as file read functions. In some examples, the data storage device driver is a generic driver provided as part of the operating system, and does not support device-specific cryptographic commands, because the cryptographic functionality is hidden from the host computer system 104 and is handled internally within the DSD 100, as described below. This means that no additional driver needs to be installed to use the full functionality disclosed herein.
[0038] The command set provided by the encryption engine 106 to the data port 103 (but not forwarded to the host computer system 104) may include a command set from the ATA SECURITY feature set. Specifically, the command set may include the command SECURITY SETPASSWORD or a corresponding command from TCG Opal to set a password for reading user content data and writing user content data to the storage medium 105.
[0039] In this sense, the encryption engine 106 is connected between the data port 103 and the storage medium 105, and is configured to use the encryption key to encrypt the user content data to be stored on the storage medium 105 and decrypt the encrypted user content data stored on the storage medium 105 in response to a request from the host computer system 104. In some examples, the ATASECURITY feature set is only used by the data port 103, and not by the host 104. That is, the access controller 102 provides the necessary input for the data port 103 to issue the ATASECURITY command to the encryption engine 106. For example, the access controller 102 can provide the key to the data port 103, and then the data port 103 forwards the key to the encryption engine 106 via the SECURITY SET PASSWORD command. The interface between the access controller 102 and the data port 103 can be an inter-integrated circuit (I2C) bus, which is particularly useful in the case where the bus has been implemented in an existing chip. However, many other communication architectures can be used, including bus architectures, point-to-point architectures, serial architectures, parallel architectures, memory-based architectures, and other architectures.
[0040] Please note that Figure 1 The separation of functions in the dedicated chip shown is only one possible exemplary implementation. Therefore, functions can be further combined or split. For example, the data port 103 can be integrated with the access controller 102 into a single chip with a single core. In other cases, the data port 103 and the access controller 102 can be integrated with the encryption engine 106 into a single dedicated chip with a single core. Of course, all chips can have multiple cores.
[0041] In one example, the following components are used:
[0042] Data port 103: USB 3.1 Gen 2 10 Gigabit per second (Gb / s) interface
[0043] Access Controller 102: nRF52840 System-on-Chip (SoC) from Nordic Semiconductor
[0044] Note that for the functionality disclosed herein, the access controller 102 plays a primary role and will be described in more detail below, again noting that in other examples, tasks may be split into separate chips. When reference is made to the "configuration" of the access controller 102 or the access controller 102 is "configured" to perform a certain step, this should be understood to refer to program code stored on a program memory (not shown for clarity) on a non-volatile memory in the DSD 100 and executed by the access controller 102.
[0045] In other examples, some or all of the steps disclosed herein may be performed by hardware circuits without program code. Specifically, for performance and security reasons, cryptographic primitives may be implemented by dedicated hardware circuits. For example, particularly computationally demanding commands (such as elliptic curve multiplication or exponentiation) may be implemented by an arithmetic logic unit (ALU) specifically designed for that calculation, so that the calculation can be performed in a single or fewer number of processor cycles than using a sequential program in a general-purpose microcontroller. It should also be noted that the chips included in the DSD 100 are microcontrollers, which means that in this context, they do not run under an operating system that provides a hardware abstraction layer, but rather program code acts directly on hardware circuits. Although elliptic curve encryption is used as an example in this article for computational efficiency and security reasons, it should be noted that other public key cryptographic systems, such as the Rivest-Shamir-Adelman (RSA) cryptographic system, may also be used.
[0046] return Figure 1 In addition to the host computer system 104, there are multiple devices located external to the DSD 100 and that play a role in unlocking the DSD 100 and providing keys to the encryption engine 106, so that the plaintext decrypted data can ultimately be provided to the host computer system 104.
[0047] Specifically, there is a first manager device 110, which in most examples is a mobile phone. An application (app) installed on the manager device 110 performs the following steps. As such, the following steps may be implemented in software by the manufacturer of the DSD 100 and distributed to the manager devices 110 via a commonly accessible application store (such as Apple's App Store or Google Play). The application installed on the manager device 110 performs the steps of acquiring ownership of the DSD 100, at which point all data on the DSD 100 is erased or otherwise rendered inaccessible. For example, the data may be cryptographically erased by securely deleting all encryption keys stored on the DSD 100.
[0048] For simplicity, the present disclosure describes the steps as being simply performed by the manager device 110 if they are implemented by an application. The manager device 110 sets up the DSD 100, which means generating various different keys to support the processes disclosed herein. The manager device 110 registers the user device 111 with the DSD, so that the user device 111 is subsequently referred to as an "authorized device" 111. In most examples, the authorized device 111 is also a mobile phone, which has an application installed that implements the steps described as being performed by the authorized device 111. However, other types of devices can be used as authorized devices, which will be explained below with respect to beacons and key cards.
[0049] Taking Ownership
[0050] After purchase, unpacking, and powering up, the first step in using the DSD 100 is to install the application on the manager device 110 and register the device as a manager device 110. For this process, the manager device 110 obtains a unique identifier for the DSD from the DSD. This unique identifier is called an identity key (IDK). Figure 1 In the example shown, the identity key is encoded as a quick response (QR) code 112 that is attached to the outer surface of the DSD 100. An application installed on the manager device 110 has access to the camera and has a software module that extracts the encoded information from the image of the QR code 112. The manager device 110 captures the image of the QR code 112 using the camera and decodes the identity key of the DSD 100 from the QR code. In one example, the QR code encodes a uniform resource locator (URL). In this case, a universal application can capture the QR code, which then automatically directs the phone to an application store where the application can be downloaded. The URL also includes the identity key so that once the application is installed, the application can decode the identifier.
[0051] In another example, the manager device 110 may read another tag or NFC chip attached to or integrated with the DSD 100 to obtain the identity key. Using the identity key, the manager device 110 may then initiate communication with the DSD 100 and, in particular, the access controller 102, such as wirelessly (e.g., via Bluetooth).
[0052] Recovery Key
[0053] Upon taking ownership of DSD 100, access controller 102 generates a recovery key and provides the recovery key to manager device 110. The recovery key may then be stored on secure storage 113 or printed and locked away. Finally, backup manager device 114 may use the recovery key to assume the administrator role previously held by manager device 110.
[0054] Registration of authorized devices
[0055] Once the DSD 100 is initially configured during the acquisition process, the manager device 110 registers the authorized device 111... Typically, there may be multiple authorized devices registered with a single DSD 100, so the manager device 110 registers the authorized device as one of the multiple authorized devices. More specifically, the access controller 102 receives a public key associated with a private key stored on the user device 111 from the manager device 110. The manager device 110 itself may have received the public key from the user device 111 via email, by scanning a QR code displayed on the user device 111, or in any other manner. At this point, the device 111 is not yet authorized and is therefore referred to simply as "user device 111". Once the user device 111 is authorized, it is referred to as "authorized device 111". The access controller 102 creates authorization data indicating that the user device 111 is an authorized device (described below) and stores the authorization data associated with the public key on the configuration memory 115 to register the user device 111 as one of the multiple authorized devices. This means that keys and other data associated with the authorizing device 111 are created and stored as described below. The user can then use the authorizing device 111 to unlock the DSD 100 simply by placing the authorizing device 111 within wireless communication range (e.g., Bluetooth range). Again, the steps performed by the authorizing device 111 are encoded in an application installed on the authorizing device 111. Depending on configuration parameters, the user may be required to unlock the authorizing device 111 before the DSD 100 can be unlocked.
[0056] More specifically, the access controller 102 has access to a non-volatile configuration data repository, such as configuration memory 115, which may be flash memory external to the access controller 102 (but may equally be integrated into the access controller 102). The configuration memory 115 may also store program code that implements the steps described herein as being executed by the access controller 102. It is noted that some of the examples herein are configured to assume that an attacker may easily isolate and read out the contents of the configuration memory 115, but should not be able to use that information to decrypt user content data. That is, in those examples, no keys are permanently stored in plain text on the configuration memory 115 or elsewhere on non-volatile memory in the DSD 100.
[0057] Once the encryption keys are provided in plain text, they are stored only in volatile memory (not shown). This means that powering down the DSD 100 erases all encryption keys stored in plain text. Additional circuitry may be provided to reset all residual charge upon power down, power up, or external reset, making it physically impossible to recover any information from the volatile memory in practice. In many cases, a user disconnecting the USB cable from the host computer system 104 results in a power down and erase of all volatile memory. In other examples, a secondary power supply is used that requires disconnection to power down the DSD 100 to delete the volatile memory.
[0058] Challenge-Response
[0059] The configuration memory 115 has data stored thereon that is specific to the registered authorization device 111. This data may be referred to as an identifier of the authorization device 111 or as a public key associated with a corresponding private key stored on the authorization device 111. The public key may be a "transmission public key" (TPK) and is generated by the authorization device 111 when the application is first started by executing the elliptic curve cryptography (ECC) primitive ECC-Pub ({transmission private key}). (Recall that, although elliptic curve cryptography is used as an example in this article for reasons of computational efficiency and security, it should be noted that other encryption techniques may also be used.) The corresponding private key is stored on the authorization device 111. The access controller 102 is configured to use an identifier (e.g., a transmission public key) or to generate and store an additional public key to generate a challenge to the authorization device 111. It should be noted here that the challenge is unique because each challenge is different, so that subsequent challenges are different from any previous challenges. As described below, this is achieved by multiplying the stored data by a random blinding factor. The access controller 102 then sends the challenge to the authorization device 111 over a communication channel that is different from the data path. For example, the data path may include a wired USB connection, while the communication channel between the access controller 102 and the authorization device 111 is a wireless (eg, Bluetooth) connection.
[0060] In one example, a re-registration process is performed in response to the authorization device first connecting to the DSD 100 after the authorization data is created and stored on the configuration memory 115 in association with the public key of the authorization device 111 received from the manager device 110. During the re-registration process, the DSD 100 updates the authorization data and, as described below, may request that the authorization device 111 generate an unlock public key (and a corresponding unlock private key) in addition to transmitting the public key. The authorization device 111 then provides the unlock public key to the access controller 102.
[0061] This has the following advantages: two corresponding private keys (transmission private key and unlocking private key) can be stored separately on the authorization device, and the two keys can have different access policies. For example, even if the authorization device 111 is locked (e.g., by screen lock or timeout), the transmission public key can be accessed at any time to allow continuous communication between the authorization device 111 and the DSD 100. However, in order to unlock the DSD 100, the access policy of the unlocking private key may require the user to unlock the authorization device 111, enter a personal identification number (PIN), provide biometrics or other authentication. In this way, a stolen authorization device cannot unlock the DSD 100. Since unlocking the DSD 100 is only performed once when the DSD 100 is powered on, the increased security does not significantly reduce user convenience.
[0062] Authorized device 111 may calculate a response to the challenge that cannot be calculated by any other device not registered with the DSD. More specifically, a device that does not have access rights to the data corresponding to the identifier stored on configuration memory 115 cannot calculate the correct response. For example, authorized device 111 calculates the response to the challenge using a stored unlock private key associated with a corresponding unlock public key stored on configuration memory 115.
[0063] The access controller 102 receives a response to the challenge from the authorization device 111 via the communication channel. It should be noted here that if the access controller 102 simply verifies the response to the challenge and, upon success, reads the encryption key from the configuration memory 115, the encryption key will be stored in plain text, which is undesirable because it will enable an attacker to deassemble the DSD 100 and read the key from the configuration memory 115 to access the user content data stored on the storage medium 105.
[0064] Calculate the key
[0065] Therefore, instead, the access controller 102 computes the encryption key based at least in part on the response from the authorization device 111. This means that the encryption key is not a pure function of the response, but involves other values as described in more detail below. In summary, the encryption key is stored in encrypted form on the configuration memory 115, and the calculation of the secret to decrypt the encryption key is enabled based on the response of the private key stored on the authorization device.
[0066] Throughout this disclosure, reference may be made to the "encapsulation" of a key, which simply means that a key is encrypted by another key (i.e., by a "secret"). In many cases of "encapsulation", the encryption is symmetric, such that there is a single secret (key) that can decrypt the encrypted key (there is no public key associated with the secret). In one example, the symmetric encryption uses Advanced Encryption Standard (AES) primitives.
[0067] Finally, the access controller 102 provides the encryption key to the encryption engine 106 (via the data port 103 in this example) to decrypt the encrypted user content data stored on the storage medium 105 of the DSD 100. As described above, once the access controller 102 has calculated the encryption key, the access controller 102 provides the encryption key in plain text to the data port 103, and the data port 103 issues a SECURITY SET PASSWORD command including the encryption key to the encryption engine 106.
[0068] Note that where reference is made to "unlocking" the device, this may refer to the entire process described above, including the challenge, the response to the challenge, and the sending of the encryption key to the encryption engine 106 to allow a plain text read command issued by the host computer system. In other examples, the challenge and the response to the challenge are considered part of a separate "connection" step. During the following "unlock" step, the access controller 102 then sends the encryption key to the data port 103 to allow access to the user content data.
[0069] It is worth noting that, in addition to this, it is possible for an attacker to eavesdrop on the transmission of the key from the access controller 102 to the data port 103 and then to the encryption engine 106. However, the transmission of the key is not over a public network, so such eavesdropping would require gaining access to and disassembling the unlocked DSD without removing power from the DSD 100. This scenario can be discarded as a threat because in this scenario, the user content data is available on the host computer system 104 anyway. In other words, while the DSD 100 is connected and unlocked, the data is available to both the legitimate user and the attacker. But once the user disconnects the DSD from the host computer system 104, such an eavesdropping attack is no longer possible. Therefore, this attack will not be considered further.
[0070] For the sake of completeness, it is noted that once the encryption engine 106 has received the encryption key, the host computer system 104 can issue a normal READ SEGMENT command and transparently access the encrypted data without any perceptible difference to accessing an unencrypted device. This is particularly true if the encryption engine has a hardware encryption module to achieve encryption and decryption at or above the read and write speeds of the storage medium 105 and / or data port 103. However, the user can disconnect the DSD 100 to lock it. In this way, the DSD 100 can be carried by the user through an unsecured location where the DSD 100 may be lost or stolen, but it is difficult for others to decrypt the encrypted user content data stored on the storage medium 105. If the user has the DSD, the user can connect it to the second host computer system 116, conveniently unlock the DSD 100 using the user's authorized device 111 (e.g., a phone), and easily access the encrypted user content data stored on the storage medium 105.
[0071] For user convenience, data port 103 may be configured so that if the DSD is locked, it registers with host computer system 104 as a large-capacity data storage device with no storage media present, similar to an SSD card reader with no card inserted. Once an authorized device 111 is connected to DSD 100 and DSD 100 is unlocked, data port 103 switches to the storage media present, similar to a card reader with an SSD card inserted. Such a configuration will prevent the host computer system 104 operating system from generating any warnings about data being inaccessible or access being denied. Instead, all user interactions will be performed by an application installed on the authorized device, which is fully controlled by the manufacturer of the DSD, so the user experience can be optimized. Figure 1 As shown, there may also be mobile phones acting as authorization devices 117 and 118.
[0072] Beacons and key fobs
[0073] Consider Again Figure 1, it can be seen that there are additional devices, such as beacons 120 and key fobs 121. These devices may also be considered "authorized devices" because they may operate substantially the same as the authorized device 111. Prior to initial registration by the manager device 110, these devices are referred to as "devices to be authorized." When reference is made to "user devices" herein (primarily describing the mobile phone 111 prior to initial registration), this also applies to the beacons 120 and key fobs 121, unless otherwise noted, such as where user input is required. The beacons 120 and key fobs 121 also have their own securely stored private keys so that they can respond to challenges specific to one beacon or key fob. However, since there is no user input for the beacons 120 and key fobs 121, the initiation of communication may be slightly different. More specifically, the beacons 120 and key fobs 121 may periodically send announcements to broadcast their presence, and the DSD 100 then initiates communication with the beacons 120 and / or key fobs 121, which prompts them to send their transmission public keys. This is in contrast to the authorization device 111 which sends the transport public key to the DSD 100 to initiate communication.
[0074] In another example, the beacon 120 is in a deactivated state when it is powered on and needs to be activated by the manager device 110 or the authorization device 111. This activation may follow a similar process to unlocking the DSD 100. That is, the manager device 110 or the authorization device 111 or both register with each beacon 120 using its transmission public key and respond to a challenge as described herein. Thus, a device may register with one of the beacons 102 and / or the key fob 121 as a manager device or an authorization device without registering with the DSD 100 itself. If the response to the challenge is valid, the beacon 120 unlocks the DSD 100. In yet another example, the beacons 120 register with each other such that the manager device 110 and / or the authorization device 111 need only activate one of the beacons 120 and the remaining beacons automatically activate. In other words, the activation is "propagated" through the beacon network as long as the beacons are within range of each other.
[0075] Note that the only information that authorized devices 111, 117, 118, 120, and 121 provide to manager device 110 for registration is a public key for each device. In other words, each device provides its own public key that corresponds to a private key securely stored on that device. Therefore, if an attacker intercepts the initial communication between one of devices 111, 117, 118, 120, and 121 and manager device 110, the only information the attacker can obtain is the public key. As the name implies, the public key is not a secret and can be well known. Therefore, the attacker does not gain any advantage. In addition, manager device 110 cannot use the public key to access anything else related to the authorized device. For example, a manager device cannot decrypt or unlock any other data storage device with which other manager devices have registered the authorized device.
[0076] The access controller 102 receives the public key of the authorized device from the manager device 110 and generates authorization data. The access controller 102 stores the authorization data on the configuration memory 115 and waits for the authorized device to connect for the first time. At the first connection, the access controller 102 performs a challenge-response to the authorized device and, upon success, updates the authorization data to indicate that the authorized device is now fully registered. This first connection process is referred to herein as "re-registration," and details of generating authorization data and re-registration are provided below.
[0077] Elliptic Curve Cryptography
[0078] In one example, the challenge generated by the DSD 100 and sent to the authorization device 111 is based on elliptic curve cryptography. This has the advantage of shorter keys, resulting in more efficient communication and storage. In addition, a large number of phones currently on the market provide dedicated elliptic curve cryptographic functions within a secure hardware module. The secure hardware module securely stores the user's private keys and executes cryptographic primitives within the secure hardware module without the keys leaving the secure hardware module and being sent to a general-purpose processor core, where the keys may be subject to unauthorized retrieval attacks. In one embodiment, the secure hardware module includes an independent processor that executes its own microkernel that cannot be directly accessed by the operating system or any program running on the phone. The secure hardware module may also include a non-volatile storage device for storing a 256-bit elliptic curve private key. In one embodiment, the secure hardware module is a Secure Enclave coprocessor available on some Apple devices.
[0079] Authorized device data record
[0080] Figure 2 1 shows a portion of configuration memory 115 according to one embodiment. More specifically, Figure 2 A record 201 in the configuration memory 115 is shown, which is associated with one of the multiple authorized devices and is referred to herein as "authorization data". Additional data records for additional authorized devices are schematically indicated as empty dashed boxes, but details are not considered when they operate in a similar manner to record 201. Specifically, each additional data record includes authorization data, which is generated by the access controller 102 in response to receiving a public key of a user device from the manager device 110, and then updated during the first connection of the user device (hereinafter referred to as "authorized device"). For convenience, the data structure of the configuration memory 115 is referred to as a "table" including one or more "records", each of which relates to a registered authorized device and each record has multiple fields. However, it should be noted that other data structures can be used, such as JavaScript Object Notation (JSON), Extensible Markup Language (XML), binary format, etc. In one example, each entry has a fixed length, and the table has a fixed number of rows (i.e., entries). In the present disclosure, a "record" may also be referred to as a "row" or "entry".
[0081] Record 201 includes a field for a pre-authorization key 202, which is used in response to the first connection of the authorized device 111 to the DSD 100. During this first connection, the access controller 102 performs a number of steps referred to as "re-registration," as described in more detail below. The pre-authorization key 202 is generated by an identifier of the authorized device 111 (e.g., a transmission public key). For example, the access controller 102 can generate the pre-authorization key 202 by applying a key derivation function together with an authorized device slot key to the derivation function, the key derivation function using the x-coordinate of the transmission public key as an input parameter, the authorized device slot key as a salt value. The authorized device slot key can be a pseudo-random number (e.g., 16 bytes) stored on the configuration memory 115, and can be used to encrypt data in an authorized device certificate so that only the issuing DSD 100 can recover the information.
[0082] At this point, it can be said that the records stored on the configuration memory 115 are indexed by the pre-authorization key 202 based on the identifier of the authorized device (e.g., the transmission public key). Figure 4 As described, during re-registration, the index of record 201 may be stored as a slot number in the certificate and the pre-authorization key 202 may be replaced with a random value at this time to make the configured DSD indistinguishable from a new device leaving the factory even in possession of the transport public key.
[0083] Record 201 also includes fields for a first copy of a metadata encapsulation key (MWK) 203 and a pre-authorization metadata encapsulation key (PMWK) 214. Some of the fields in record 201 are encrypted, which are indicated by double-line boxes, where a single solid box within the double-line box indicates a "payload", such as metadata encapsulation key 203 and pre-authorization metadata encapsulation key 214. The corresponding encryption key used to encrypt the payload is noted at the bottom of the double-line box. Thus, for example, metadata encapsulation key 203 is encrypted by authorized device metadata key (ADMK) 204. It should be noted that each encrypted box may include an additional random number concatenated with the payload data. This ensures that even possession of encrypted data (such as the transmission public key of an authorized device) cannot distinguish the encrypted entry from the random data.
[0084] The record 201 also includes a field for authorized device metadata (ADM) 205, which is a concatenation of a device type 206 (e.g., recovery key, key fob, beacon, phone, computer, watch, etc.), a role of the device 207 (e.g., administrator or user), a name of the device 208 (e.g., "John's phone"), a transport public key 209, unlock key metadata 210 (e.g., whether a fingerprint, PIN, or key restriction is required for unlocking), a temporary public key 211, and an unlock public key 212. In one embodiment, the temporary public key 211 is an elliptic curve public key generated from a random temporary private key (EPK) using an elliptic curve cryptography (ECC) primitive ECC-Pub (EUK). The temporary private key is not stored on the configuration memory 115 or on the authorized device 111, but is discarded after the temporary public key is created. This means that the temporary private key is not stored on non-volatile memory, but only on volatile memory. Therefore, a power failure to the memory results in a complete and irrecoverable loss (e.g., destruction) of the temporary private key. The unlock public key 212 corresponds to the unlock private key stored on the authorizing device 111 , and is generated by the authorizing device 111 and provided to the access controller 102 .
[0085] The authorized device metadata (concatenated with an additional random number) is encrypted by a metadata wrapping key (MWK) 213, which is also stored in encrypted form at 203. The primary purpose of storing the encrypted metadata wrapping key 203 in entry 201 is to allow a manager user with access rights to the authorized device metadata key 204 to access the encrypted authorized device metadata 205. If the manager does not have access to the metadata wrapping key, the manager will not be able to retrieve any information from the DSD 100 about which authorized devices are currently registered. In one example, the authorized device metadata key 204 is a single key for all authorized devices and is stored encrypted by the manager key. The manager key can be a pseudo-random value (e.g., 32 bytes) and is generated by the access controller 102 in response to the storage medium 105 being erased. The manager key is encrypted and stored for each paired manager device 110 / 114.
[0086] Record 201 also includes a field for a second copy of the device role 220 concatenated with a second copy of the user key 221 and the metadata encapsulation key 222. Note that the roles 207 / 220 and metadata encapsulation keys 203 / 222 are stored in two copies that are identical but encrypted using different keys. The purpose of storing two copies of the roles 207 / 220 is to enable the access controller 102 to verify the roles during connection (in response to the authorization device metadata being decrypted) and during unlocking (in response to the user key 221 being decrypted). The purpose of storing the first copy of the metadata encapsulation key 203 is to provide it to manager devices that have access rights to the authorization device metadata keys. The purpose of the second copy of the metadata encapsulation key 222 is to provide it to pre-authorized devices during the first connection. The concatenated values 220, 221, 222 are encrypted together by a temporary unlocking secret (EUS) 223, which is initially generated by the Diffie-Hellman method using a temporary private key corresponding to the temporary public key 211 and the unlocking public key 212. The temporary unlocking secret 223 can be recovered using the temporary public key 211 and the associated unlocking private key stored on the authorized device 111 and corresponding to the unlocking public key 212. In other words, the temporary unlocking secret 223 can be generated when the authorized device 111 is first connected to the DSD 100 using the temporary private key and the unlocking public key 212. Note that the temporary private key itself is not stored, but the temporary unlocking secret 223 can still be recovered as described above. This means that the user key 221 can be decrypted based on the response from the authorized device. Note that the user key 221 is the same for all authorized devices and can be used to decrypt user content data. This does not necessarily mean that the user key itself decrypts the user content data. There may also be a key that the user key decrypts and the final key decrypts the user content data. The terms "decrypting user content data using a key" and "enabling decryption of user content data" refer to indirect encryption via multiple keys in a chain. In contrast, "key decryption data" refers to directly decrypting data using a key, such as modular multiplication of encrypted data with a key. Here, user key 221 is used to indirectly decrypt data and can be the starting point of a chain of keys that are decrypted in sequence until, at the end, the chain ends at the key that decrypts the user content data. Although in most examples disclosed herein, temporary unlocking secret 223 decrypts user key 221, encryption keys can also be derived from responses to challenges in other ways. For example, responses to challenges can be used directly as encryption keys to decrypt user content data.
[0087] This distribution of keys and metadata enables configuration in which the entire configuration information about authorized devices, manager devices, and other aspects is stored on the DSD 100 itself. However, the authorized devices require the keys stored on the corresponding authorized devices to unlock the DSD 100. If an unregistered user who does not have access to any keys wants to access the entire configuration of the device, such as retrieving a list of registered devices, the unregistered user will only need the recovery key to register as a manager device and gain access to the manager key. The DSD 100 can then use the manager key to provide the entire contents of the configuration memory 115 to the new manager device. In addition, there may be two manager devices, and both can register or remove authorized devices. Other manager devices will be able to obtain configuration updates by synchronizing their own records with the data stored on the configuration memory 115. In some examples, the DSD 100 is configured to erase the records 201 of all authorized devices (but not delete the user content data or user keys 221, which may be stored in encrypted form on the configuration memory 115, separate from the entries 201 and other entries) if the recovery key is used to gain access but this is a policy decision.
[0088] Figure 3 The control flow 300 between the authorization device 111 and the access controller 102 according to one embodiment is shown. First, the authorization device 111 initiates the connection method by sending 301 its transmission public key. This step can be easily replayed by an attacker. The access controller 102 then replies 302 with a request for a certificate, and in response to the request, the authorization device 111 sends 303 the certificate previously obtained from the access controller 102 through the re-registration process.
[0089] Certificate
[0090] Figure 4 A certificate 400 is shown that is issued by a data storage device 100 and sent to the data storage device by an authorization device 111 to unlock the data storage device, according to one embodiment. In this example, the certificate 400 includes a plurality of type-length-value (TLV) fields, where the type value indicates the kind of field that is part of the certificate, the length is the size of the value field (usually in bytes), and the value is a variable-sized series of bytes that contains the data for that portion of the certificate.
[0091] The certificate 400 begins with a TLV atom which indicates the type of certificate that follows. This is called the certificate role 401 and has a 2-byte value to indicate that this is an authorized device certificate.
[0092] The certificate 400 belongs to a certificate chain. The access controller 102 uses the chain to verify and authenticate the certificate 400. In order to indicate which chain the certificate 400 belongs to, the certificate 400 has a 4-byte root certificate identifier (ID) 402. The certificate identifiers of each certificate in the certificate chain are the same. Unmatched certificate identifiers indicate invalid certificates. In one example, the root certificate identifier indicates whether the certificate chain is a production or development certification chain. In other examples, other groups may be indicated by corresponding certificate identifiers.
[0093] Certificate 400 also includes a 1-byte indicator of certificate depth 403. The depth of a certificate is defined as its distance from the root certificate within the certificate chain. The root certificate is defined to have a depth of zero. When processing a given certificate chain, the depth field is verified to ensure the integrity of the chain.
[0094] The certificate 400 also includes a 64-byte certificate transport public key 404 (e.g., according to the National Institute of Standards and Technology (NIST) P-256 elliptic curve). Each certificate is represented / indexed via the transport public key. Each type of public key will have its own dedicated tag type. That is, the tag type will represent the cipher suite used to generate the transport public key, such as the P-256 cipher suite.
[0095] The certificate 400 also includes a data field 405 (explained below) and is authenticated via a signature 406. The access controller 102 receives the certificate 400 and verifies the signature before trusting or using any of the contents of the certificate. To enable signature verification, a 64-byte signer public key 407 is provided as part of the certificate. The signature 406 itself is 64 bytes in length and is calculated over all previous TLVs 401-405, 407 encountered within the certificate, regardless of whether they are recognized by the specific implementation. More specifically, the signature 406 is derived from a hash of the certificate data. The specific data of the signature is certificate-related, but contains all TLVs used to represent the certificate, including unrecognized TLVs. The key used to generate the signature is a logical identity key and is associated with the signer public key 407.
[0096] Data field 405 includes slot number 410, which indicates the index of record 201 within configuration memory 115. Data field 405 also includes another copy of metadata encapsulation key 411 (in addition to Figure 2 The data field 405 is encrypted using the Authorized Device Slot Key (ADSK) 412, which is a 16-byte pseudo-random value stored in the configuration memory 115 and is used to encrypt the data in the Authorized Device Certificate so that only the issuing DSD 100 can recover the information.
[0097] Unlocking data storage devices
[0098] return Figure 3 If the authorizing device 111 wishes to unlock the DSD 100, the authorizing device 111 sends 303 a certificate 400 including an encrypted metadata wrapping key (MWK) 213 / 411 to the access controller 102. The certificate 400 also includes a slot number 410, which is an index of the record 201 in the configuration memory 115.
[0099] The access controller 102 decrypts 304 the data field 405 using the authorized device slot key stored in the configuration memory 115 and extracts the slot number and the metadata encapsulation key. The access controller 102 then queries the configuration memory 115 to read 305 the appropriate record 201 from the configuration memory 115 and decrypts 306 the authorized device metadata 205 using the metadata encapsulation key. This generates a temporary public key 211, which may also be referred to as an identifier of the authorized device, which uniquely identifies the authorized device because the temporary public key 211 is cryptographically associated with an unlocking private key stored only on the authorized device 111. The access controller 102 may perform additional checks 307, such as verifying that the transport public key 209 included in the authorized device metadata 205 matches the transport public key 404 provided in the certificate 400. In addition, the access controller 102 verifies the role 401 against a set of valid values and associates the role with the connection. This means that the access controller 102 knows the current role (authorized device or manager device) for the duration of the connection. For example, the access controller 102 stores a parameter value indicating the role 401 provided in the certificate on a volatile memory. If any of the foregoing checks fail, the authorized device is considered revoked and an error is issued to that effect. Otherwise, the connection attempt is successful and the access controller 102 sends 308 a connection confirmation message to the authorized device 111.
[0100] At this stage, the authorization device 111 is connected and the unlocking process begins 319 by the authorization device 111 sending 320 an unlock request to the access controller 102. The unlock request includes an unlock public key associated with a private key stored on the secure hardware module of the authorization device. The access controller 102 matches 321 the received unlock public key with the unlock public key 212 stored in the authorization device metadata record 205. Next, the access controller 102 generates 322 a new blind value (also called an unlock blind key (UBK)), which is essentially a temporary private scalar and is randomly generated.
[0101] The access controller 102 then generates a challenge based on the identifier of the authorized device (e.g., the temporary public key 211) multiplied by the unlocking blind key (UBK). More specifically, the access controller 102 multiplies 323 the temporary public key 211 by the unlocking blind key, returning the complete X and Y coordinates of the result, noting that this operation is performed on an elliptic curve. The access controller 102 then sends 324 the X and Y coordinates to the authorized device 111 as a challenge. Note here that the challenge is based on the identifier of the authorized device 111 because the temporary public key is a factor of the multiplication that derives the challenge. Note also that for each unlock request (i.e., 320), a different unlocking blind key is generated to avoid man-in-the-middle attacks.
[0102] In addition, the access controller 102 calculates 325 the inverse of the unlocking blinding key (UBK -1 ). The access controller 102 may calculate the inverse of the unlocking blind key while waiting for a response from the authorization device 111.
[0103] The authorization device 111 calculates a response to the challenge by multiplying 326 the challenge by an unlock private key that is stored in a secure hardware module of the authorization device and corresponds to the unlock public key 212 stored on the configuration memory 115. This may involve the execution of a cryptographic primitive that may be executed entirely within a secure hardware module within the authorization device 111. The authorization device 111 then sends the result back in a response message 327. The access controller 102 multiplies 328 the returned result by the inverse of the unlock blinding key to calculate a temporary unlock secret (EUS) 223.
[0104] In mathematical notation, P represents the temporary public key, and k represents the Figure 3 The access controller 102 calculates 323 the product k*P and sends it 324 to the authorization device 111. The authorization device 111 multiplies 326 the challenge with the unlocking private key j to calculate j*k*P and returns 327 the result to the access controller 102. The access controller 102 compares the response 238 with the inverse k of the unlocking blind key. -1 Multiply to calculate k -1 *j*k*P, which is equal to j*P (i.e., k -1 *j*k*P=k*k -1 *j*P=j*P).
[0105] The access controller 102 then decrypts 329 the user key 221 using j*P as a temporary unlocking secret (i.e., key). That is, the access controller 102 uses the temporary unlocking secret to decrypt the user key 221 stored on the DSD 100, which was encrypted using the temporary unlocking secret. More specifically, the access controller 102 decrypts 329 the user key, which then decrypts 330 the "user drive key", which is then ultimately sent 331 to the encryption engine 106 via a TCG command. That is, the user drive key can be generated by the access controller 102 using a key derivation function based on the user key. The user drive key is a TCG credential used to unlock the DSD 100, and can be equivalent to the "encryption key" described herein. In the case of Opal, this is the User2 credential.
[0106] Note that a temporary unlock secret is generated during the re-registration process by deriving a symmetric key from the results of an Elliptic Curve Diffie-Hellman process using an unlock private key and an unlock public key 212 stored on the authorized device 111. The resulting key is used to encrypt the user key 221, but is not stored in the DSD 100. Instead, the key is regenerated each time an authorized device requests unlocking of the DSD 100, as described above.
[0107] In another example, in the above formula, the unlock private key j can be replaced by the product of the unlock private key and a value derived from the pass code. The unlock private key will still be stored in the secure hardware module of the authorized device, but the unlock private key alone will not be able to decrypt the user content data stored on the DSD 100. Instead, the user needs to enter the pass code to calculate the response to the challenge and send 327 the response. This will simply replace j with the product of the pass code value and j above. The DSD will ignore this change because the temporary unlock secret 223 will be generated in the same manner as above from the perspective of the access controller 102.
[0108] Registration and Re-registration
[0109] Please note that Figure 2 The data record 201 shown is shown after the authorization device 111 has completed the re-registration process and is allowed to decrypt the encrypted user content data. Again, there are three steps in general: First, the manager device 110 registers the user device 111 once, making it one of the multiple authorization devices. Second, when connecting to the access controller 102 for the first time, the authorization device 111 re-registers once to complete the generation of the keys involved. Third, the authorization device 111 subsequently connects to the access controller 102 to unlock the DSD 100. This third step can occur multiple times.
[0110] During an (initial) registration step initiated by the manager device 110, the access controller 102 receives from the manager device 110 a public key corresponding to a private key stored on the user device 111. In response, the access controller 102 creates authorization data similar to Figure 2 1, except that the unlock public key 212 field holds the transmission public key 209 (as received from the manager device 110) since the unlock public key has not yet been generated. The access controller 102 generates a pre-authorization key 202, which is essentially an index used to locate the record 201. The pre-authorization key is generated by a key generation function using the x-coordinate of the received transmission public key 209 and a salt value. The salt value may be an authorized device slot key, which may be a 16-byte pseudo-random value generated during the "take ownership" process, stored on the configuration memory 115, and not shared with the authorized device. In this way, the salt may be different after each "factory reset", such as each time a manager device takes ownership of the DSD 100.
[0111] Creating the authorization data stored in record 201 also includes generating a metadata encapsulation key 222, such as by generating a 16-byte pseudo-random value. Access controller 102 stores the metadata encapsulation key in field 222. In addition, access controller 102 generates a temporary unlocking secret 223 and encrypts role 220 (e.g., "authorized device"), user key 221, and new metadata encapsulation key 222 using temporary unlocking secret 223. Access controller 102 then generates temporary public key 211 from temporary unlocking secret 223 and discards temporary unlocking secret 223.
[0112] Recall that during the (initial) registration step initiated by the manager device 110, the access controller 102 creates a Figure 2 Authorization data in data record 201. Figure 2 In contrast, the authorized device metadata 205 is not encrypted by a new metadata encapsulation key, but by a pre-authorized metadata encapsulation key, because the actual metadata encapsulation key 222 is not yet available to the authorized device 111. The pre-authorized metadata encapsulation key may be the same as the pre-authorized key 202 at this stage or generated separately. It should be noted that the pre-authorized metadata encapsulation key that now encrypts the authorized device metadata 205 may only be generated by the access controller 102, and not provided by the authorized device 111, because the authorized device 111 does not have access to the authorized device slot key used to generate the pre-authorized metadata encapsulation key.
[0113] Thus, in response to the authorization device 111 first connecting with the access controller 102, the authorization device 111 sends its transport public key to the access controller 102. The access controller 102 uses the transport public key and the stored authorization device slot key to generate the pre-authorization key 202. The access controller 102 may then search the configuration memory 115 for the pre-authorization key 202 to retrieve the record 201. The access controller 102 may also use the pre-authorization key as a pre-authorization metadata encapsulation key to decrypt the authorization device metadata 205.
[0114] As described above, the access controller 102 generates a challenge using the temporary public key 211 and the unlock blind key. The access controller 102 then creates the temporary unlock secret 223 from the response. Note that only the authorized device 111 with the private key corresponding to the transmission public key 209 can create a valid response. This means that even if an attacker disassembles the configuration memory 115 and reads the authorized device slot key to generate the pre-authorization metadata encapsulation key to decrypt the temporary public key 211, the attacker will still not be able to generate the temporary unlock secret 223.
[0115] The access controller 102 verifies the response by checking that the response acts as a temporary unlocking secret 223, and in response, updates the authorization data in the record 201. More specifically, the access controller 102 checks whether the field 212 for the unlocking public key is the same as the transmission public key 209. In response to the two being the same (as described above), the access controller 102 requests a new unlocking public key from the authorization device 111 and stores the returned key as the unlocking public key 212.
[0116] The access controller further decrypts the metadata encapsulation key 222 generated during registration by the manager device 110. At this stage, the access controller 102 may regenerate the temporary unlocking secret 223, the encryption role 220, the user key 221, and the metadata encapsulation key 222, regenerate and store the temporary public key 211, and discard the temporary unlocking secret 223. Finally, the access controller encrypts the authorized device metadata 205 using the metadata encapsulation key 222, and overwrites the pre-authorization key 202 with a random value so that the configuration memory 115 cannot be distinguished from random data even when holding the transmission public key and / or the unlocking public key. This ends the update and registration process of the authorization data stored in the record 201. Therefore, the authorized device 111, as one of the multiple authorized devices, is now allowed to decrypt the encrypted user content data through the above-mentioned unlocking step.
[0117] The above process involving creation and updating of authorization data enables multiple authorized devices to register using only their public keys during a first step of registration by manager device 110. In this way, there is no need to share secret information that could be intercepted and used to maliciously unlock the user's other devices.
[0118] Figure 5 A method 500 for accessing data on a DSD 100 according to one embodiment is shown, as performed by the DSD 100 and corresponding to Figure 3 The method 500 includes generating 501 a challenge ( Figure 3 Then, the DSD 100 sends 502 the challenge to the authorization device ( Figure 3 The communication channel is distinct from a data path connecting the storage medium 105 of the DSD 100 to the host computer system 104 through the encryption engine 106. The DSD 100 then receives 503 a response to the challenge from the authorization device 111 over the communication channel and then calculates 504 an encryption key ( Figure 3 Finally, the DSD 100 provides 505 the calculated encryption key to the encryption engine 106 to decrypt the encrypted user content data stored on the storage medium 105 of the DSD 100 ( Figure 3 331 in step 331).
[0119] Registering a Data Storage Device
[0120] Data port 103 registers as a block data storage device with host computer system 104. For example, a Universal Serial Bus (USB) device provides information in the form of a USB device descriptor. The USB device descriptor contains relevant information about the device. Therefore, in an embodiment where the data storage device is connected to the host computer system via a USB connection, the data storage device registers as a block data storage device with the host computer system by configuring its USB device descriptor to indicate that the data storage device is a block data storage device.
[0121] The USB device descriptor provides structured information about the USB device, such as the device class, supported protocols, device type, manufacturer, and other configuration parameters. The operating system of the host computer can obtain the USB device descriptor of the data storage device by sending various standard control requests (e.g., GET_DESCRIPTOR requests) to the data storage device. In response to receiving these requests, the data storage device provides the USB_DEVICE_DESCRIPTOR to the host computer system, thereby registering the data storage device as a block data storage device to the host computer system. The host computer interprets the USB_DEVICE_DESCRIPTOR to determine the configuration and capabilities of the data storage device. The host computer system can then store information about the data storage device in a register of the operating system of the host computer system.
[0122] Manager Key
[0123] refer to Figure 2 Note that the above description refers to an authorized device that is so registered by storing authorization data including the device's shipping public key 209 and unlocking public key 212 on the configuration memory 115. A successful challenge-response method then enables decryption of the single user key 221, which is then used to decrypt the user content data.
[0124] refer to Figure 2 Similar data structures as described above can also be used to register a device as a manager device. Compared to the entry for an "authorized device", the differences will be:
[0125] a) the role fields 207 and 220 will hold "Manager Device" instead of "Authorized Device" (encoded in the corresponding bits or bytes); and
[0126] b) The user key 221 will be replaced by the manager key.
[0127] The manager key is a symmetric (private) key that can unseal (i.e., decrypt) or derive various other keys and data stored in the configuration memory 115 as described herein. For example, the access controller 102 can perform a key generation function to derive the authorized device metadata key 204 from the manager key, thereby decrypting the metadata encapsulation key 203 for a particular authorized device entry, and then decrypting the authorized device metadata 205 for that authorized device. Note that there is only a single manager key, so in the event that multiple manager devices are registered, they use the same manager key.
[0128] Log header
[0129] Figure 6A log header 600 according to one embodiment is shown, which stores information for all log entries described below. This means that the log header 600 is stored separately from the log entries, and there is only a single log header. The log header 600 may also be stored on the configuration storage 115, or there may be a separate logging storage, or the log header 600 may be stored on the storage medium 105.
[0130] The log header 600 includes a next log pointer 601, an initial log pointer 602, a log header entry public key 604, a log record public key 605, and a corresponding log record private key 606 encrypted by a manager key 607. In one example, there are 256 predefined maximum log entries, and the next log pointer 601 indicates the next entry to be written. Therefore, the next log pointer 601 is a number from 0 to 255, which can be represented by an 8-bit unsigned integer. However, one example uses a 32-bit unsigned integer as the next log pointer 601 so that the wraparound can be detected in the event that more than 255 log entries have been written and the next log pointer 601 wraps around to return to the starting point. In one example, the next log pointer 601 is initially generated as a pseudo-random value (at factory reset or "take ownership"), which has the advantage of making the header 600 indistinguishable from random data even if the next log pointer 601 is stored in plain text (i.e., unencrypted) form. It should be noted that this is actually irrelevant to the writing of log entries, and the pointer value is the starting point when the next log pointer 601 naturally wraps around.
[0131] The initial log pointer 602 is also stored so that the access controller 102 can easily calculate the difference between the initial log pointer 602 and the next log pointer 601 to determine the number of log entries written to the configuration memory 115. It is noted that the initial log pointer 602 can be a random value that is the value initially created for the first log entry (i.e., the first next log pointer 601) when restoring factory settings or "taking ownership". In this example, the initial log pointer 602 is encrypted using a symmetric initial log pointer encapsulation key 603 derived from the manager key through a key derivation function. In this case, no further information is required to derive the initial log pointer encapsulation key 603. Therefore, in response to the manager key becoming available, the initial log pointer 602 can be decrypted.
[0132] The log header entry public key 604 is the public key associated with the most recent log entry (at the next log pointer minus 1), as described below. Of course, the next log pointer 601 may point to the most recent log entry, and the next entry is calculated by adding 1.
[0133] Log entries
[0134] Figure 7 A log entry table 700 is shown including a first log entry 710 and a second log entry 720 according to one embodiment. The log entry table 700 may also be stored on the configuration memory 115 or on a separate logging memory storage, or the log entry table 700 may be stored on the storage medium 105.
[0135] The first log entry 710 includes a previous log entry public key 711 and first log data 712. The log data 712 defines an "event" and may include one or more of a timestamp, a public transport key of a connecting device (manager device 110, an authorization device 111, 117, 118, 120, or 121), an action performed, geographic location ("geolocation") data, or any other information that may be used for later investigation of the event. For the first log entry after a factory reset or "take ownership", the previous log entry public key 711 may be a random value. This first log entry may record the occurrence of a "take ownership" data storage device event. Additional data storage device events may include connection (manager device to user device / key card / beacon), unlocking, pre-registration, re-registration (by an authorization device), or other events.
[0136] The log data 712 and the previous log entry public key 711 are encrypted. In other examples, only the log data 712 is encrypted and the log entry public key 711 is stored in plain text. In one example, the log data 712 can be stored in a plain text format using a public key that can be stored in a file. Figure 6 The RSA public key in field 604 in is used to encrypt the log entry public key 711 and the log data 712.
[0137] However, in other examples described herein, elliptic curve encryption is used. In this case, the access controller 102 randomly generates a private log header entry key (LHEK) and uses it with the logging public key 605 to generate a secret by using the result of the elliptic curve Diffie-Hellman method as an argument to the key derivation function. The access controller 102 uses the secret (based on the private log header entry key) to encrypt the log entry 710 including the log data 712 and the previous log public key 711. The access controller 102 then generates the corresponding public key ECC-Pub (LHEK) and stores it in the header 600 as the log header entry public key 604. Finally, the access controller 102 discards the generated private key, which may include storing it only on volatile memory so that it is lost when power is lost, deleting or overwriting it, or storing it in a location where the next private key will overwrite it.
[0138] The resulting log entry 710 is indistinguishable from random data due to the encryption step, and cannot be decrypted by an authorized device because the private key has been discarded (such as after a power-down, power-up, and / or reset).
[0139] For simplicity, the following description refers to steps performed by the manager device 110 and the authorization device 111, noting that these steps may include actions performed by the access controller 102 in response to the respective devices being connected as described above. The manager device 110 has access to the manager key 607 and can therefore decrypt the logging private key (LK) 606. The manager device 110 can also read the public log header entry key (ECC-Pub (LHEK)) 604 stored in plain text in the header 600. This enables the manager device 110 to derive the secret, such as by performing the Elliptic Curve Diffie-Hellman method again using the public log header entry key 604 and the logging private key 606 as arguments, and then deriving the secret from the result through a key generation function. Therefore, the manager device 110 can use the secret to decrypt the log entries 710, 720.
[0140] In formula form, the authorizing device 111 will
[0141] ECC-Pub(LHEK) is calculated as G*LHEK,
[0142] Where G is the public generator value. ECC-PUB(LK) has been previously calculated as G*LK. Then, the authorization device 111 calculates
[0143] LHEK*ECC-Pub(LK)=LHEK*G*LK
[0144] and uses the result to derive the secret and discard LHEK. Manager device 110 accesses public key ECC-Pub(LHEK) 604, which is G*LHEK. Manager device 110 also unseals LK 606 and calculates
[0145] ECC-Pub(LHEK)*LK=G*LHEK*LK,
[0146] This happens to be the secret calculated by the above-mentioned authorizing device.Thus, the manager device 110 can decrypt the log entries 710, 720 immediately preceding the next log entry pointed to by the next log pointer 601.
[0147] Re-reference Figure 7, it is noted that each log entry 710, 720 is encrypted using a separate unique encryption key. That is, the access controller 102 randomly generates a LHEK each time a new log entry is to be written. Of course, this also means that the corresponding public key for each log entry is different. Therefore, the access controller 102 also stores the public key in each log entry. More specifically, each log entry includes the public key for the previous log entry. Therefore, for Figure 7 , second log entry 720 includes public key 721 that corresponds to the private key used to encrypt first log entry 710 in the derivation of secret 713 .
[0148] Using the data structure, the access controller 102 can select from the most recent entry ( Figure 7 720 in the first log entry 720) to sequentially read and decrypt all log entries. More specifically, the access controller 102 first reads the next log pointer 601, subtracts 1, and reads the encrypted second log entry 720. The access controller then decrypts the logging private key 606 using the manager key and reads the public log header entry key 604. Using these two keys, the access controller 102 derives the secret 723 and decrypts the second log entry 720. This provides the first public log header entry key 721, which the access controller 102 can use with the logging private key 606 to derive the secret 713 to decrypt the first log entry 710, and so on, until all log entries are read. The determination of whether all entries have been read can be achieved by counting the number of entries read until the count equals the difference between the initial log pointer 602 and the next log pointer 601. If the difference is greater than 256, the access controller 102 can simply read all 256 entries.
[0149] In some cases, it may be useful to be able to delete specific log entries. For example, when a manager device is connected, all log entries may be transmitted to the manager device 110, and the transmitted log entries may be deleted from the configuration memory 115 in the DSD 100. However, deleting and / or overwriting the entry with random data also deletes the public key of the previous entry, so all previous entries become unreadable. Therefore, there may be a log randomization bitmap, which is a 256-bit array, in which each bit corresponds to a log entry. During initialization, all bits are set to "0". In response to a log entry being written, the corresponding bit (which is also at the position indicated by the next log pointer 601) is set to "1". In response to the log entry being selected for deletion, the bit is set to "0" again. Therefore, the read operation also includes checking the log randomization bitmap, whether the corresponding bit is "1" for reading the log entry or "0" for indicating that the log entry has been deleted. The log randomization bitmap can also be encrypted by a log randomization bitmap encapsulation key derived from the manager key to make the log randomization bitmap indistinguishable from random data without the manager key.
[0150] Logging methods
[0151] Figure 8 A method 800 for logging of data storage device events performed by an access controller 102 or any other chip, module, software, etc. integrated into a data storage device 100 is shown according to one embodiment. The access controller 102 creates 801 first log data 712 (by collecting relevant information, such as a public key of an authorization device or manager device, a timestamp, a geographic location, an event type, etc.) and encrypts 802 the first log data 712 using one of a first public key and a corresponding first private key. This means that the access controller 102 can encrypt the first log data 712 using a public key according to RSA or a private key according to elliptic curve cryptography (ECC). The access controller 102 then stores 803 a first log entry 710, which includes the first log data 712 encrypted using one of the first public key and the corresponding first private key. The access controller 102 also stores 804 a second public key 604 different from the first public key on a log header 600, which is separate from the log entry table 700 because the header 600 is not arranged in sequence with the other log entries.
[0152] The access controller 102 then creates 805 second log data 722, encrypts 806 the second log data 722 using one of the second public key and the corresponding second private key (again, RSA or ECC), and stores 807 the second log entry 720. The second log entry 720 includes the first public key. The first public key 721 is the public key corresponding to the encryption of the first log data. Therefore, there is an encryption link between the second log entry 720 and the first log entry 710 because the first public key 721 stored in the second log entry 720 can be used to obtain the encryption secret of the first log entry 710 (the asymmetric private RSA key held by the manager device or the ECC secret as described above). Therefore, the log entry table 700 can also be referred to as a "linked list". The second log data 722 is encrypted using one of the second public key and the corresponding second private key.
[0153] It will be appreciated by those skilled in the art that many variations and / or modifications may be made to the above-described embodiments without departing from the broad general scope of the present disclosure. The embodiments of the present invention are therefore to be considered in all aspects as illustrative and not restrictive.
Claims
1. A data storage device comprising: a non-transitory storage medium configured to store user content data; and a non-transitory data repository configured to store: a first log entry, the first log entry comprising: first log data encrypted using one of a first public key and a corresponding first private key; a second public key, the second public key being different from the first public key; and A second log entry, the second log entry comprising: the first public key, and Second log data encrypted using one of the second public key and a corresponding second private key. 2 . The data storage device of claim 1 , further comprising a controller configured to create the first log entry and the second log entry.
3. The data storage device according to claim 2, wherein the controller is further configured to: generating the second public key and the second private key; encrypting the second log data using the second private key; storing the second public key; and The second private key is discarded.
4. The data storage device according to claim 2, wherein: The non-transitory data repository is further configured to store a single logging public key for the first log entry and the second log entry; The logging public key is accessible in response to an authorized device being connected to the data storage device, and The controller is further configured to encrypt the second log data using the logging public key and the second private key. 5 . The data storage device of claim 4 , wherein encrypting the second log data comprises determining a secret based on elliptic curve cryptography using the logging public key and the second private key. 6 . The data storage device of claim 5 , wherein the non-transitory data repository is further configured to store a logging private key corresponding to the logging public key.
7. The data storage device of claim 6, wherein the logging private key is encrypted and accessible in response to a manager device connecting to the data storage device.
8. The data storage device of claim 7, wherein the logging private key is encrypted using a manager key. 9 . The data storage device of claim 6 , wherein the controller is further configured to decrypt the second log data using the logging private key and the second public key stored on the data repository.
10. The data storage device of claim 9, wherein the controller is further configured to decrypt the first log data using the logging private key and the first public key stored in the second log entry. 11 . The data storage device of claim 9 , wherein decrypting the second log data comprises determining a secret based on elliptic curve cryptography using the logging private key and the second public key.
12. The data storage device of claim 1, wherein: The first log entry is encrypted using the first private key; and The second log entry is encrypted using the second private key.
13. The data storage device of claim 1, wherein: The first private key and the first public key are unique to the first log entry; and The second private key and the second public key are unique to the second log entry.
14. The data storage device of claim 1, wherein the second public key is stored separately from the first log entry and the second log entry.
15. The data storage device of claim 1 , wherein the non-transitory data repository is further configured to store: a next log entry pointer indicating a storage location of the second log entry; and An initial log entry pointer indicates a storage location of an initial log entry.
16. The data storage device of claim 15, wherein the initial log entry pointer is encrypted and accessible in response to a manager device connecting to the data storage device.
17. The data storage device of claim 1, wherein the first public key is encrypted together with the second log data.
18. The data storage device of claim 1, further comprising: A data path, the data path comprising: a data port configured to transfer data between a host computer system and the data storage device, the data storage device being registered with the host computer system as a block storage device; and an encryption engine connected between the data port and the storage medium and configured to decrypt encrypted user content data stored on the storage medium using an encryption key in response to a request from the host computer system; an authorization data repository configured to store a plurality of entries including authorization data associated with a corresponding plurality of devices; and An access controller, the access controller being configured to: receiving, from one of the plurality of devices, a public key associated with a private key stored on the one of the plurality of devices; determining a role of a manager device or an authorization device based on the public key; In response to determining the role of the authorized device, allowing creation of log entries and restricting reading of log entries; and Responsive to determining the role of the manager device, reading log entries is permitted.
19. A method for performing logging on a data storage device, the method comprising: Creating first log data; encrypting the first log data using one of a first public key and a corresponding first private key; storing a first log entry, the first log entry comprising the first log data encrypted using one of the first public key and the corresponding first private key; storing a second public key different from the first public key; Creating second log data; encrypting the second log data using one of a second public key and a corresponding second private key; as well as A second log entry is stored, the second log entry comprising: the first public key, and The second log data is encrypted using one of the second public key and the corresponding second private key.
20. A data storage device comprising: means for creating first log data; means for encrypting said first log data using one of a first public key and a corresponding first private key; means for storing a first log entry, the first log entry comprising the first log data encrypted using one of the first public key and the corresponding first private key; means for storing a second public key different from said first public key; means for creating second log data; means for encrypting said second log data using one of a second public key and a corresponding second private key; and means for storing a second log entry, the second log entry comprising: the first public key, and The second log data is encrypted using one of the second public key and the corresponding second private key.
Citation Information
Patent Citations
Protected device management
CN102884535A
Storage device, information processing apparatus, and information processing method
CN105245491A
Event data structure to store event data
CN105308609A
System and method for verification of a secure erase operation on a storage device
CN110045919A
I / O memory device capable of restoring enciphered data correctly
CN1433210A
