Security management method for solid state disk and solid state disk

By generating an SM2 key pair in the solid-state drive and using the SM3 hash algorithm to encrypt the PIN code, combined with the public and private key exchange of the SM4 key, the problems of poor versatility and low security of the solid-state drive encryption scheme are solved, and data efficiency and security are achieved. Security protection provides flexible access control.

CN118761107AInactive Publication Date: 2024-10-11SHENZHEN FUXIANGRUI ELECTRONICS CO LTD

Patent Information

Application Number
CN202411093906.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing solid-state drive encryption solutions have poor versatility and low security encryption strategies, leading to business risks caused by data leaks and internal and external attacks.

Method used

Generate an SM2 key pair inside the USB Key and the SSD main control chip, exchange the public key through the secure channel, set the PIN code for authentication, and use the SM3 hash algorithm to encrypt the storage; generate the SM4 key and transmit it through the secure channel, using The public and private key mechanisms are used for encryption and decryption, and the SM2 and SM4 algorithms are combined to achieve secure management of keys.

Benefits of technology

It enhances the security of solid-state drives. Through the generation and exchange of public and private key pairs, it realizes the secure management of keys, ensures the efficient and safe protection of data, and provides a flexible access control mechanism to meet the needs of different user scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761107A_ABST
    Figure CN118761107A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of information security, and particularly discloses a security management method of a solid state disk and the solid state disk, an SM2 key pair is generated in a usb key and a main control chip of the solid state disk, the key pair comprises a private key and a public key, the private key is stored in equipment, the public key is interacted between the usb key and the solid state disk through a secure channel, and the public key is stored in the equipment. Pairing is completed, a PIN code for identity verification is set after pairing, and the PIN code is encrypted through an SM3 hash algorithm and then stored in a usb key; and after the USB key and the solid state disk are paired and the identity is confirmed, the solid state disk generates an SM4 key, encrypts the SM4 key by using a public key of the solid state disk, transmits the encrypted SM4 key to the USB key through a secure channel, and decrypts and stores the encrypted SM4 key in the USB key by using a private key of the USB key. According to the method, safe pairing, key management and data transmission between the usb key and the solid state disk are realized, and powerful safety guarantee is provided for storage and access of sensitive data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a security management method for a solid state hard disk and a solid state hard disk. Background Art

[0002] A self-encrypting drive (SED) refers to a solid-state drive (SSD) that has a hardware encryption engine integrated into the hard drive's main control circuit. To protect data security, the number of solid-state drives with built-in self-encryption functions is increasing, and the data encryption engine is usually integrated into a single chip of the hard drive. Seagate Secure series self-encrypting hard drives (SEDs) use the AES-256 algorithm to encrypt data written to the hard drive in real time. The 256-bit AES data encryption key (DEK) is solidified inside the chip when the hard drive is produced, and there is no external access interface. Use the supporting software SeaTools to set user access passwords and quickly erase disks.

[0003] The SM2 algorithm is a public key encryption algorithm based on the elliptic curve cryptography. Its key length is 256 bits and it has high security. The SM2 algorithm can be used in scenarios such as digital signatures and key negotiation. The SM3 algorithm is a symmetric encryption algorithm used in scenarios such as message digests and digital signatures. Its key length is 256 bits and it has high security. The SM3 algorithm works with the SM2 algorithm to improve the overall security performance. The SM4 algorithm is a symmetric encryption algorithm used to replace the DES and 3DES algorithms. The key length of the SM4 algorithm is 128 bits, and the encryption process includes 128-bit grouping and 8 rounds of encryption operations. The SM4 algorithm has strong anti-quantum computing performance and is suitable for big data and cloud computing scenarios.

[0004] In order to ensure the data security in SSDs, various data encryption technologies have emerged. These technologies mainly use cryptographic technology to encrypt and decrypt data. Data encryption and decryption involves key management. If the key is stolen, all data encryption and decryption will be useless. In addition, the plaintext storage in ordinary SSDs causes data leakage, external hacker attacks that break through boundary protection, and data theft from internal unauthorized users. Therefore, a security management method for SSDs is urgently needed to fundamentally solve the business risk problems caused by sensitive data leakage. Summary of the invention

[0005] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a security management method for solid-state hard disks, which is used to solve the problems of poor versatility of solid-state hard disk encryption schemes and low security of encryption strategies in the prior art.

[0006] To achieve the above-mentioned object and other related objects, the present invention provides a security management method for a solid state hard disk.

[0007] Generate an SM2 key pair inside the USB key and the SSD main control chip. The key pair includes a private key and a public key. The private key is stored inside the device. The public key is exchanged between the USB key and the SSD through a secure channel to complete pairing. After pairing, set a PIN code for identity authentication. The PIN code is encrypted by the SM3 hash algorithm and stored in the USB key. After the USB key and the SSD are paired and their identities are confirmed, the SSD generates an SM4 key, which is then encrypted by the SSD's public key and transmitted to the USB key through a secure channel. The private key is then used to decrypt and store the key inside the USB key.

[0008] Optionally, the method for detecting whether the USB key and the solid state drive are paired includes: When USB Key tries to access the SSD, the SSD uses its stored public key to encrypt the information sent by USB Key, and then USB Key uses its private key to decrypt and return a response. If the response is correct, it indicates that USB Key and SSD have been successfully paired.

[0009] Optionally, for the paired USB key and SSD, a PIN code verification operation is performed, including: The PIN code is passed into the USB key to calculate the SM3 hash value, which is compared with the hash value stored in the USB key initialization phase. If they are consistent, the verification is passed.

[0010] Optionally, after the SM4 key is transmitted to the USB key through a secure channel, the USB key uses its private key to decrypt and restore to the original SM4 key. The USB key injects the original SM4 key into itself for subsequent use. To ensure that each communication is unique and unpredictable, the USB key is authenticated during the injection phase. The authentication process includes: The solid state drive generates a random number and sends the random number to the USB key, which signs the random number using its private key and then sends the signed random number back to the solid state drive; After the solid state drive receives the signed random number, it uses the public key stored in it to verify the signature. If the signature verification is successful, the USB key identity authentication is successful.

[0011] Optionally, during the pairing stage of exchanging the public key between the USB key and the solid state drive, a first backup code is set in the decryption hard drive, and the first backup code encrypts the SM4 key for the first time. The USB key self-generates a second backup code in the mass production stage, and the solid state drive copies the second backup code, and the second backup code encrypts the SM4 key for the second time.

[0012] Optionally, the private key, the first backup code, and the second backup code are always stored in a USB key or a solid state drive, and there is no external read / write interface.

[0013] Optionally, the hidden area is used to store the boot operating system, the user area is used to store the user operating system, the boot operating system uses the key information of the paired USB key to decrypt the user operating system, the user operating system that has not performed the decryption operation has a user login function, supports user login and logout operations and disk space within access permissions, and the user operating system that has performed the decryption operation can access the encrypted disk space.

[0014] Optionally, the interface functions of the solid-state drive include: local key management based on key hierarchical protection; user identity authentication; true random number collection; data encryption / decryption based on SM4 algorithm; digital signature / verification based on SM2 algorithm; generation and verification of message authentication code.

[0015] Optionally, the solid state drive has multiple data destruction modes, including touch-sensitive destruction, software destruction and hardware destruction.

[0016] As described above, the security management method of a solid state drive and the solid state drive proposed by the present invention have the following beneficial effects: The security management method of the present invention completes the initialization pairing of the USB key and the solid-state hard disk through the production and pairing of the SM2 key pair, and sets the PIN code for identity authentication. The PIN code is encrypted by the SM3 hash algorithm and stored in the USB Key, thereby enhancing security. The encrypted SM4 key is used for decryption, and the security management of the key is realized through the generation of public-private key pairs, public key exchange, private key confidentiality and other mechanisms.

[0017] The solid-state hard disk provided by the present invention designs an innovative security architecture, which realizes efficient and secure protection of the user's operating system and data through the close cooperation of the hidden area, the boot operating system and the USB key. At the same time, it also provides a flexible access control mechanism to meet the needs of different user scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 Shown is a flow chart of a solid state hard disk security management method according to an embodiment of the present invention; Figure 2 Shown is a structural schematic diagram of a solid state hard disk according to an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0020] It should be noted that the diagram provided in the present embodiment only illustrates the basic concept of the present invention in a schematic manner, so the diagram only shows the components related to the present invention rather than drawing according to the number, shape and size of the components during actual implementation. The type, quantity and ratio of each component during actual implementation can be a random change, and the component layout type may also be more complicated. The structure, ratio, size, etc. illustrated in the drawings of the present specification are only used to match the content disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions that the present invention can implement, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effect that the present invention can produce and the purpose that can be achieved. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of narration, and are not used to limit the scope of the present invention. The change or adjustment of its relative relationship should also be regarded as the scope of the present invention without substantially changing the technical content.

[0021] See also Figure 1 , Figure 1 A flowchart of a method for securely managing a solid state drive is provided in an embodiment of the present application. Figure 1 As shown, this embodiment discloses a security management method for a solid-state hard disk. After the whole machine is powered on, the USB key and the solid-state hard disk are connected to the USB and SATA interfaces of the PC motherboard respectively, and the solid-state hard disk is guided to use the USB key for security management operations. In order to ensure the security of the data in the encrypted disk and ensure that only the unique USB key can decrypt the data in the disk, a security pairing mechanism is required, including the following steps: Through interface calls, both the USB key and the SSD main control chip generate an SM2 key pair. The key pair includes a private key and a public key. The private key is stored inside the device. The USB key and the SSD exchange the public key through a secure channel to complete pairing. After pairing, the PIN code for identity authentication is set. The PIN code is encrypted by the SM3 hash algorithm and stored in the USB key. Specifically, after pairing, both the USB key and the SSD generate an initialization mark. To prevent the generated SM2 key pair from being overwritten, both the USB key and the SSD will only generate and store the SM2 key pair when they are not paired, that is, when there is no initialization mark. Before using the PIN code for identity authentication, it should be detected that the USB key and the SSD have been paired. The specific detection method is: When USB Key tries to access the SSD, the SSD uses its stored public key to encrypt the information sent by USB Key, and then USB Key uses its private key to decrypt and return a response. If the response is correct, it proves that the public key stored in the SSD is the public key generated in USB Key, indicating that USB Key and SSD have been successfully paired.

[0022] If both are not initialized, the user will be asked whether to start the initialization pairing of the USB key and the SSD; if only one side is initialized, it means that the USB key and the SSD are definitely not in a one-to-one pairing relationship; only when both are initialized can the user PIN code verification be performed. For the paired USB key and SSD, the firmware program will no longer respond to the SM2 key pair generation request and perform the PIN code verification operation, including: The PIN code is passed into the USB key to calculate the SM3 hash value, which is compared with the hash value stored in the USB key initialization phase. If they are consistent, the verification is passed.

[0023] In one embodiment, the user enters the PIN code into the system through some input method, such as a keyboard, touch screen, etc. The input PIN code is transmitted to the USB key for calculation. The USB key uses the SM3 hash algorithm to hash the input PIN code to generate a hash value. The generated hash value is compared with the hash value stored in the USB key during the initialization phase. The stored hash value is obtained after the original PIN code is SM3 hashed when the USB key sets the PIN code for the first time, and is securely stored in the USB key. If the two hash values ​​are consistent, it means that the PIN code entered by the user is correct and the verification is successful; if the hash values ​​are inconsistent, it means that the PIN code is entered incorrectly and the verification fails.

[0024] By comparing the hash values ​​to ensure the correctness of the PIN code, it can prevent the USB key from being physically obtained, and it is difficult for attackers to recover the original PIN code through reverse engineering and other means. The PIN code verification process is fast and automated, and users can complete the verification without performing complicated operations.

[0025] After successful pairing, all key transfers (such as session keys, data keys, etc.) should be encrypted using the established public key encryption mechanism to ensure the security of communication.

[0026] After the PIN code verification and USB key identity authentication are successful, the SSD obtains the SM4 key for real-time encryption and decryption of data.

[0027] Among them, after the SM4 key is transmitted to the USB key through a secure channel, the USB key uses its private key to decrypt and restore to the original SM4 key. The USB key injects the original SM4 key into it for subsequent use. To ensure that each communication is unique and unpredictable, the USB key is authenticated during the injection phase. The authentication process includes: The SSD generates a random number and sends it to the USB key. The USB key signs the random number using its private key and sends the signed random number back to the SSD. After the SSD receives the signed random number, it uses the stored public key to verify the signature. If the signature verification is successful, it means that the signature is indeed generated by the USB key with the corresponding private key, and the USB key identity authentication is successful. Since each communication uses a different random number, even if the attacker intercepts the previous signature and random number, it cannot be used for the subsequent verification process because the signature and random number are one-to-one corresponding.

[0028] Since the digital signature is generated by the private key of the USB key, and the private key is kept secret, once the signature is successfully verified, the USB key cannot deny that it has generated this signature, thus ensuring the non-repudiation of communication. The digital signature also ensures the integrity of the message. If the random number is tampered with during transmission, the signature verification will fail because the tampered random number cannot match the original signature; since each communication uses a different random number, and the signature corresponds to the random number one by one, even if the attacker intercepts the previous signature and random number, it cannot be used for the subsequent verification process. This effectively prevents replay attacks.

[0029] After the USB key and the SSD are paired and their identities are confirmed, the SSD generates an SM4 key, which is then encrypted by the SSD's public key and transmitted to the USB key through a secure channel. The private key is then used to decrypt and store the key inside the USB key.

[0030] Specifically, the main control chip of the solid-state drive has a true random number generator, which intercepts 128 bits as the SM4 key, ensuring the randomness and unpredictability of the key, which is the basis of secure encryption. Since the public key has been exchanged during the pairing process, the SM4 key is encrypted inside the encrypted disk through the USB key public key. The encryption process uses a public key encryption algorithm, such as RSA, ECC, etc., to ensure that only the USB key with the corresponding private key can decrypt.

[0031] Among them, in the pairing stage of exchanging public keys between the USB key and the solid-state drive, a first backup code is set in the solid-state drive, and the first backup code encrypts the SM4 key for the first time. The USB key self-generates a second backup code in the mass production stage, and the solid-state drive copies the second backup code. The second backup code encrypts the SM4 key for the second time. The second backup code is a 128-bit SM4 backup key generated by the solid-state drive in the mass production stage; The SM4 key is double-encrypted by the first backup code and the second backup code, which greatly improves the security of the key. Even if one of the backup codes is leaked, the attacker still cannot directly decrypt and obtain the SM4 key.

[0032] After the USB key is lost, the internal firmware program of the encryption disk uses the key provided by the user to restore the first backup code and the second backup code in the USB key from the supplier's key. At the same time, the supplier uses the reserved key in the mass production stage of the solid-state drive to restore the SM4 key, and decrypts the SM4 key using the first backup code and the second backup code. After the SM4 key is restored to normal, it can be paired with a new USB key, and the restored SM4 key is directly stored in the newly paired USB key.

[0033] Among them, the private key, the first backup code, and the second backup code will never leave the USB key or solid-state drive under any circumstances, and there is no external read-write interface. Only authorized internal mechanisms or protocols can access these keys, thereby preventing external attackers from obtaining the keys through direct read-write interfaces.

[0034] like Figure 2As shown, an embodiment of the present application also provides a solid-state hard disk, including a hidden area and a user area, the hidden area is used to store a boot operating system, the user area is used to store a user operating system, the boot operating system uses the key information of a paired USB key to decrypt the user operating system, has a user login function for user operating systems that have not performed decryption operations, supports user login and logout operations and disk space within access permissions, and can access encrypted disk space for user operating systems that have performed decryption operations.

[0035] When the system starts, the boot operating system in the hidden area is loaded first. The boot operating system checks whether the USB key is inserted and attempts to perform pairing verification. If the USB key verification is successful, the boot operating system reads the key information in the USB key and uses the key information to decrypt the user operating system. The specific decryption operation is the same as the above-mentioned security management method for a solid-state hard drive, which will not be described in detail.

[0036] The solid-state hard disk provided by the present invention designs an innovative security architecture, which realizes efficient and secure protection of the user's operating system and data through the close cooperation of the hidden area, the boot operating system and the USB key. At the same time, it also provides a flexible access control mechanism to meet the needs of different user scenarios.

[0037] Specifically, the interface functions of the solid state drive include: Local key management based on key hierarchical protection: SSDs implement hierarchical key management, with different levels of keys used to protect data and operations at different sensitivity levels. This hierarchical structure helps reduce the risk of key leakage and makes key management more flexible and efficient. The local key management function allows the SSD to autonomously generate, store, update, and destroy keys without the need for external devices or networks.

[0038] User identity authentication: Before accessing the SSD, users need to verify through an identity authentication mechanism, such as username, password, etc. User identity authentication is a key step to ensure that only authorized users can access data in the SSD, effectively preventing unauthorized access and data leakage.

[0039] True random number collection: The SSD has a built-in true random number generator to generate high-quality random numbers. These random numbers have the advantages of unpredictability and uncertainty in encryption, key generation, and authentication, enhancing system security.

[0040] Data encryption / decryption based on the SM4 algorithm: The encryption process uses a key to encrypt sensitive data and generate ciphertext; the decryption process uses the same key to restore the ciphertext to the original data.

[0041] Digital signature / verification based on SM2 algorithm; the digital signature is generated by the data sender using the private key to encrypt the hash value of the data. The receiver can verify the digital signature using the sender's public key to ensure the integrity of the data and the authenticity of the source.

[0042] Generation and verification of message authentication code: Message authentication code (MAC) is a technology used to verify data integrity. SSDs can generate MAC values ​​and attach them to messages for transmission. After receiving the message, the receiver recalculates the MAC value and compares it with the received MAC value. If the two are consistent, it indicates that the message has not been tampered with during transmission; if they are inconsistent, it indicates that the message may have been tampered with.

[0043] The above interface functions together constitute the security system of the solid-state drive, providing users with comprehensive data security protection. By integrating these functions, the solid-state drive can ensure the confidentiality, integrity and availability of data in various application scenarios, meeting users' high requirements for data security.

[0044] This SSD has multiple data destruction methods, including touch-sensitive destruction, software destruction, and hardware destruction.

[0045] Touch-sensitive destruction automatically triggers destruction when access to a file or address in the SSD is triggered, allowing users or administrators to selectively erase or destroy specific data blocks or partitions on the SSD; After obtaining the permission, the software destruction user can trigger the destruction through the command word to erase or overwrite all the data on the storage device; Hardware destruction triggers destruction by triggering the destruction pin external to the controller, physically destroying the SSD so that it can no longer be used or data can no longer be recovered.

[0046] In the event of sensitive data leakage, equipment replacement and upgrade, security vulnerability or virus infection, choose the above destruction method to destroy the data in the SSD.

[0047] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A method for secure management of a solid state drive, characterized in that: include: Generate an SM2 key pair inside the USB key and the SSD main control chip. The key pair includes a private key and a public key. The private key is stored inside the device. The public key is exchanged between the USB key and the SSD through a secure channel to complete pairing. After pairing, set a PIN code for identity authentication. The PIN code is encrypted by the SM3 hash algorithm and stored in the USB key. After the USB key and the SSD are paired and their identities are confirmed, the SSD generates an SM4 key, which is then encrypted by the SSD's public key and transmitted to the USB key through a secure channel. The private key is then used to decrypt and store the key inside the USB key.

2. A method for secure management of a solid state drive according to claim 1, characterized in that: Methods for detecting whether the USB key and the solid state drive are paired include: When the USB key tries to access the SSD, the SSD uses its stored public key to encrypt the information sent by the USB key, and then the USB key uses its private key to decrypt and return a response. If the response is correct, it indicates that the USB key and the SSD have been successfully paired.

3. A method for secure management of a solid state drive according to claim 2, characterized in that: For the paired USB key and SSD, perform PIN code verification operations, including: The PIN code is passed into the USB key to calculate the SM3 hash value, which is compared with the hash value stored in the USB key initialization phase. If they are consistent, the verification is passed.

4. A method for secure management of a solid state drive according to claim 3, characterized in that: After the SM4 key is transmitted to the USB key through a secure channel, the USB key uses its private key to decrypt and restore the original SM4 key. The USB key injects the original SM4 key into it for subsequent use. To ensure that each communication is unique and unpredictable, the USB key is authenticated during the injection phase. The authentication process includes: The solid state drive generates a random number and sends the random number to the USB key, which signs the random number using its private key and then sends the signed random number back to the solid state drive; After the solid state drive receives the signed random number, it uses the public key stored in it to verify the signature. If the signature verification is successful, the USB key identity authentication is successful.

5. A method for secure management of a solid state drive according to claim 4, characterized in that: During the pairing stage of exchanging the public key between the USB key and the solid state drive, a first backup code is set in the decryption hard drive, and the first backup code encrypts the SM4 key for the first time. The USB key self-generates a second backup code in the mass production stage, and the solid state drive copies the second backup code, and the second backup code encrypts the SM4 key for the second time.

6. A method for secure management of a solid state drive according to claim 5, characterized in that: The private key, the first backup code, and the second backup code are always stored in a USB key or a solid-state hard disk, and there is no external read-write interface.

7. The solid state drive according to any one of claims 1 to 6, characterized in that: It includes a hidden area and a user area, the hidden area is used to store a boot operating system, the user area is used to store a user operating system, the boot operating system uses the key information of a paired USB key to decrypt the user operating system, the user operating system has a user login function for a user that has not performed a decryption operation, supports operations such as user login and logout, and disk space within access permissions, and the user operating system that has performed a decryption operation can access the encrypted disk space.

8. The solid state drive according to claim 7, characterized in that: The interface functions of the solid-state hard disk include: local key management based on key hierarchical protection; user identity authentication; true random number collection; data encryption / decryption based on SM4 algorithm; digital signature / verification based on SM2 algorithm; and generation and verification of message authentication code.

9. The solid state drive according to claim 7, characterized in that: The solid state drive has multiple data destruction methods, including touch-sensitive destruction, software destruction and hardware destruction.

Citation Information

Patent Citations

  • Solid state disk data encryption method and system

    CN107315966A

  • Computer hard disk data encryption system and method

    CN115455497A

  • Identity authentication method and system capable of resisting timing attack

    CN116032655A

  • Key processing method, system and device and storage medium

    CN116436617A

  • Data processing method and device, computer equipment and medium

    CN117235772A

Cited By

  • Ultra-low power consumption high performance SSD memory

    CN119556867A

  • Data processing method and device in solid state disk, electronic equipment and storage medium

    CN120724468A